The following railroads operate in the U.S. state of Massachusetts.

Common freight carriers

Connecticut Southern Railroad (CSO) (Genesee and Wyoming) CSX Transportation (CSXT) East Brookfield & Spencer Railroad (EBSR) Fore River Transportation Corporation (FRVT) Grafton and Upton Railroad (GU) Housatonic Railroad (HRRC) Massachusetts Central Railroad (MCER) Massachusetts Coastal Railroad (MC) New England Central Railroad (NECR) (Genesee and Wyoming) Pan Am Railways (PAR) Pan Am Southern (PAS) (Operated by Pan Am Railways) Pioneer Valley Railroad (PVRR) (Pinsly) Providence and Worcester Railroad (PW) (Genesee and Wyoming)

Passenger carriers

Amtrak (AMTK) Berkshire Scenic Railway (BRMX) Cape Cod Central Railroad (CCCR) Edaville Railroad Massachusetts Bay Transportation Authority (MBTX) Hartford Line (CNDX)

Defunct railroads