Santa Maria da Serra is a municipality in the state of São Paulo in Brazil. The population is 5,902 (2015 est.) in an area of 253 km². The elevation is 495 m.