By train
Dunfermline has two stations on the line to Edinburgh: Dunfermline City (formerly Dunfermline Town), a short walk from the High Street, and Dunfermline Queen Margaret, next to the hospital. Trains call at Rosyth, Inverkeithing, North Queensferry, Dalmeny, Edinburgh Gateway and Haymarket before reaching Edinburgh.
In ScotRail's timetable for 28 September to 12 December 2026, trains from Dunfermline City take between 30 and 41 minutes to reach Edinburgh. Most take 33 to 38 minutes. Some trains run the Fife Circle, which continues to Edinburgh via Kirkcaldy. ScotRail says it has removed peak fares for good.
Dunfermline City's ticket office opens 06:40 to 19:45 Monday to Saturday and is closed on Sundays. The station has a car park, ticket machines, toilets and wifi. Check ScotRail (opens in a new tab) for live departures and engineering work.
By express bus
Stagecoach lists the X55 as its Dunfermline to Edinburgh service, via Rosyth and Ferrytoll Park & Ride. From Halbeath Park & Ride, the X56, X59 and X61 also run to Edinburgh via Ferrytoll.
Stagecoach's DayReturn from Dunfermline, Rosyth, Halbeath P&R or Ferrytoll P&R to Edinburgh costs £7.40 for adults and £3.70 for children (prices valid from 3 May 2026). Under-22s living in Scotland and over-60s travel free on the bus with a valid National Entitlement Card, and under-22s can also use a Young Scot card.
Halbeath Park & Ride
Halbeath Park & Ride is at M90 junction 3, just outside the city. Transport Scotland says it opened in November 2013 as part of the Forth Replacement Crossing project, and it is run as a partnership between Fife Council and Stagecoach.
- 1,124 car parking spaces, including 48 disabled bays and 20 electric vehicle charging bays.
- Parking is free with no maximum stay.
- Six stances and an indoor waiting room with toilets, open 6am to midnight Monday to Saturday and 9am to 7pm on Sunday.
- Stagecoach says 13 services use the site, including express coaches to Edinburgh and Glasgow.
To Edinburgh Airport
Stagecoach's Jet 747 runs from Halbeath Park & Ride to Edinburgh Airport. Check the current Jet 747 timetable with Stagecoach before you travel.
Driving over the Forth
General traffic, including cars and HGVs, crosses the Forth on the Queensferry Crossing (M90). Transport Scotland says the crossing opened on 30 August 2017 and became a motorway on 1 February 2018. The Forth Road Bridge is now a dedicated public transport corridor for buses, taxis, cyclists and pedestrians. There are bus lanes on the southbound M90 in Fife. You can walk or cycle across the Forth Road Bridge on its footway and cycleway.
Around town and beyond
Dunfermline Bus Station is on Queen Anne Street, beside the Kingsgate Centre. Stagecoach lists its Dunfermline city services as 1, 1A, 2, 2A, 3, 4, 5 and 84. For Glasgow, the X24 and X27 express services both call at Dunfermline and Halbeath P&R. For Livingston, the X51 runs from Dunfermline via Rosyth and Ferrytoll. Stagecoach publishes current timetables for every route.
In the directory
Questions people actually ask
How long does the train from Dunfermline to Edinburgh take?
Between 30 and 41 minutes from Dunfermline City in ScotRail's 28 September to 12 December 2026 timetable. Most trains take 33 to 38 minutes.
Is parking at Halbeath Park & Ride free?
Yes. Stagecoach says parking at Halbeath is completely free with no maximum stay. There are 1,124 spaces, including 48 disabled bays and 20 EV charging bays.
Is there a bus from Dunfermline to Edinburgh Airport?
Yes. Stagecoach's Jet 747 runs from Halbeath Park & Ride to Edinburgh Airport.
Can I cycle or walk across to Edinburgh?
You can cross the Forth on foot or by bike using the Forth Road Bridge's footway and cycleway. Pedestrians and cyclists cannot use the Queensferry Crossing.
How much is a bus day return to Edinburgh?
Stagecoach's DayReturn between Dunfermline and Edinburgh costs £7.40 for adults and £3.70 for children (prices valid from 3 May 2026).
Sources and last checked
We last checked every fact on this page against the official sources below on . Services and dates change, so follow the links before you rely on anything here. Spotted something out of date? Tell us.
- ScotRail: Dunfermline City station (opens in a new tab)
- ScotRail: Dunfermline Queen Margaret station (opens in a new tab)
- ScotRail timetable: Edinburgh – Fife, Perth & Dundee, 28 September – 12 December 2026 (PDF) (opens in a new tab)
- Stagecoach: East Scotland Express routes and timetables (opens in a new tab)
- Stagecoach: Fife buses, routes and DayReturn fares (opens in a new tab)
- Stagecoach: Park and Rides (Halbeath and Ferrytoll) (opens in a new tab)
- Fife Council: Halbeath Bus Park and Ride (opens in a new tab)
- Fife Council: Dunfermline Bus Station (opens in a new tab)
- Transport Scotland: Forth Replacement Crossing project details (opens in a new tab)
- The Forth Bridges: Access restrictions (opens in a new tab)