Ayer station is an MBTA Commuter Rail station located off Main Street (Route 2A/111) in the Ayer Main Street Historic District of Ayer, Massachusetts. It serves the Fitchburg Line. There are three tracks through the station, two of which are served by a pair of low-level side platforms, which are not accessible. There is a shelter on the inbound platform.
Ayer has been a major railroad interchange since the Fitchburg Railroad opened through South Groton in 1845, followed by the Stony Brook Railroad, Worcester and Nashua Railroad, and Peterborough and Shirley Railroad in 1848. The original depot was replaced with a union station with a large trainshed in 1848. Land speculation and industrial development spurred by the railroad access expanded the tiny farm village into the independent town of Ayer.
A new station was constructed in 1896. By 1900, the town was served by five lines all controlled by the Boston and Maine Railroad, with service to Boston, Worcester, and Lowell plus New York, New Hampshire, and Maine. Passenger service ended on all of the lines except the Fitchburg mainline between 1931 and 1961. After a brief disruption in early 1965, the Massachusetts Bay Transportation Authority began subsidizing commuter rail service to Ayer as part of what would become the Fitchburg Line. The station and part of the line was closed in 1975, but reopened in 1980. CSX Transportation also runs freight trains through the town to various destinations.
Planning began in 2003 for a parking structure to serve park-and-ride commuters at the station. After delays caused by disagreements with a property owner, the property to ensure a public access route to the station was acquired by the town in June 2016, allowing the parking expansion to proceed. The garage opened in 2019, with improvements to the station entrance constructed in 2020–21.