Gnesta is a bimunicipal locality and the seat of Gnesta Municipality, Södermanland County, Sweden with 6,376 inhabitants in 2020. Gnesta is located in Södermanland, on the border to Stockholm County. As situated near the county boundary Gnesta is served by Stockholm commuter rail which has a terminus here.