Prestonpans railway station is a railway station serving the town of Prestonpans, East Lothian, Scotland. It is located on the North Berwick Line, 9.75 miles (15.69 km) east of Edinburgh Waverley. It serves the town of Cockenzie and Port Seton, 1.37 miles (2.20 km) away.