Dunfermline vs Edinburgh
Which is better to live in? Distance: 12.0 miles apart.
The verdict
When it comes to cost of living, Dunfermline wins on house prices with a 41% gap. Edinburgh has the lower crime rate of the two. For families, Dunfermline edges ahead on school quality.
Avg House Price
Dunfermline
£170,439
Edinburgh
£290,946
Crime Rate
Dunfermline
395.3
Edinburgh
103.1
Top-Two School Inspection Bands
Dunfermline
81.8%
Edinburgh
74.3%
Avg Download Speed
Dunfermline
406.5
Edinburgh
434.3
EPC Rating
Dunfermline
60.8
Edinburgh
57.6
Median Income
Dunfermline
£34,867
Edinburgh
£33,529
House Prices (2025)
Most affordable in ScotlandProperty in Edinburgh commands an average of £290,946, compared with £170,439 in Dunfermline – a difference of 41%. The most affordable entry point in Dunfermline is a flat at £107,206, while in Edinburgh it is a flat at £238,069.
Average Price by Property Type (2025)
Biggest gap: terraced homes are 57% pricier in Edinburgh (£362,527 vs £154,290).
Price Trend (23 Years)
Over the last 21 years, Dunfermline prices grew faster — 127% vs 113%.
Crime & Safety
Safest in ScotlandResidents of Edinburgh experience less crime overall, with a rate of 103.1 per 1,000 versus 395.3 per 1,000 in Dunfermline. The most common crime category in Dunfermline is other-crime, while in Edinburgh it is other-crime.
Crime Rate by Category (per 1,000 residents)
Both towns share the same top crime category: other crime.
Schools & Education
Best for schools in ScotlandFamilies may prefer Dunfermline, where 81.8% of schools are in the top two inspection bands versus 74.3% in Edinburgh. There are 159 schools in Dunfermline and 39 in Edinburgh.
Dunfermline School Inspection Breakdown
81.8% of 159 schools (142 primary, 17 secondary) sit in the top two inspection bands.
Edinburgh School Inspection Breakdown
74.3% of 39 schools (33 primary, 6 secondary) sit in the top two inspection bands.
| Metric | Dunfermline | Edinburgh |
|---|---|---|
| Total Schools | 159 | 39 |
| Primary | 142 | 33 |
| Secondary | 17 | 6 |
| % Top two bands | 81.8% | 74.3% |
Broadband & Connectivity
Average broadband speeds are 434.3 Mbps in Edinburgh and 406.5 Mbps in Dunfermline. Superfast coverage (30 Mbps+) reaches 97.1% of premises in Dunfermline and 95.7% in Edinburgh. Gigabit availability stands at 78% in Dunfermline and 84.2% in Edinburgh.
Edinburgh is the faster of the two by 7% on average download speed (434 vs 407 Mbps).
Energy Efficiency & Running Costs
Energy efficiency favours Dunfermline, scoring 60.8 on average (band D) compared to 57.6 (band D) in Edinburgh. Estimated annual energy costs average £1,533 in Dunfermline and £1,717 in Edinburgh. 38.6% of homes in Dunfermline have an EPC rating of C or above, compared to 26.9% in Edinburgh.
Dunfermline has more energy-efficient housing — 38.6% reach band C or above, vs 26.9% in the other.
Demographics & Economy
Median household income is £34,867 in Dunfermline and £33,529 in Edinburgh. The median age is 42.4 in Dunfermline and 41.2 in Edinburgh. Employment rates stand at 72.2% in Dunfermline and 71.9% in Edinburgh. Owner-occupancy is 55.7% in Dunfermline versus 60.4% in Edinburgh. Dunfermline has a population of 74,380 and Edinburgh has 512,150.
| Indicator | Dunfermline | Edinburgh |
|---|---|---|
| Population | 74,380 | 512,150 |
| Median Age | 42.4 | 41.2 |
| Median Household Income | £34,867 | £33,529 |
| Employment Rate | 72.2% | 71.9% |
| Owner Occupied | 55.7% | 60.4% |
| Degree-Level Qualified | 25.5% | 20.1% |
Location
Common questions
Frequently asked questions
How far apart are Dunfermline and Edinburgh?
Which is cheaper to buy a house in, Dunfermline or Edinburgh?
Is Dunfermline or Edinburgh safer?
Which has better schools, Dunfermline or Edinburgh?
Which has faster broadband, Dunfermline or Edinburgh?
Keep exploring
Related comparisons
Compare Dunfermline with other towns
- Ballingry, Lochore and Crosshill vs Dunfermline
- Bathgate vs Dunfermline
- Bo'ness vs Dunfermline
- Broxburn vs Dunfermline
- Burntisland vs Dunfermline
- Cardenden and Auchterderran vs Dunfermline
- Clackmannan vs Dunfermline
- Cowdenbeath, Lochgelly and Lumphinnans vs Dunfermline
- Dunfermline vs East Calder
- Dunfermline vs Falkirk