Guest, Sign inJoin
High Street, DunfermlinePhoto: Richard Webb · CC BY-SA 2.0
41.3Median age
Who lives here · Scotland’s Census 2022

Residents with no religion make up 62% in Dunfermline, more than in 99% of UK towns

28% of households live in a flat or apartment, against 39% across Scotland’s towns. Dunfermline had 56,053 residents and 24,911 households at the 2022 Census, with a median age of 41.3 (younger than 73% of UK towns). The share of one-person households stands at 34%. Compared with other places, households without a car or van are common here: 21%, more than in just over three quarters of UK towns.

What stands out · In brief

What the Census says about Dunfermline’s people

More with no religion than most

62% of residents answered “no religion” in 2021 and 30% Christian, against 51% and 39% across Scotland’s towns. Ethnicity & religion ↓

Written from the data on this page: Scotland’s Census 2022 (output areas summed to the 2022 locality).

Ages

Half of Dunfermline is under 41.3, younger than 73% of UK towns

Share of residents in each five-year age band, Census 2022.

DunfermlineScotland’s towns
0–410–1420–2430–3440–4450–5460–6470–7480–84

One in ten residents are aged 15 to 24 (Scotland’s towns: 12%). In Dunfermline, 17% of residents are 65 or over.

Median age of UK towns of 2,500+

2535455565

■ Dunfermline, 41.3. The typical town is 44.4.

Broad ages · share of residents

Under 1518%
15 to 2410%
25 to 4427%
45 to 6428%
65 and over17%
DunfermlineFife’s townsScotland’s towns

Women and men · all residents

51% women, 49% men

Dunfermline
Scotland
WomenMen

About an even split. Across Scotland, 51% of residents are women.

Students & newcomers

Full-time students make up 5.9% in Dunfermline, more than in 82% of UK towns

What adults did at the 2022 Census (the NS-SEC classes).

Adults by occupation class · residents 16 and over

Full-time students5.9%
Higher managerial and professional14%
Lower managerial and professional24%
Intermediate13%
Small employers and self-employed6.6%
Supervisory and technical7%
Semi-routine11%
Routine13%
Never worked or long-term unemployed5.8%
DunfermlineFife’s townsScotland’s towns

Across Scotland’s towns, 33% of adults are in managerial and professional jobs and 25% in routine or semi-routine work; Dunfermline has 38% and 24%. The wider picture: 9.4% of adults are full-time students across Scotland’s towns.

The Census was taken on 20 March 2022, in term time, so students were counted at their term addresses.

Households

Households here average 2.2 people, below 66% of UK towns

Household make-up at the 2022 Census. Each square is 1% of households.

Living alone, 66+ 12%Living alone, under 66 21%Families with dependent children 28%Couples and families, no young children 37%Shared houses and other 2.1%

Against Fife’s towns and Scotland’s towns

Dunfermline
Fife’s towns
Scotland’s towns

People per household

1 person34%
2 people33%
3 people16%
4 people13%
5 or more4.6%

Scotland’s towns.

The share of shared households of unrelated adults is 2.1%, against 3.5% across Scotland’s towns. 28% of households have dependent children.

Homes & cars

A larger share of households in detached houses than 58% of UK towns: 32%

Accommodation type and cars or vans per household, Census 2022. Owning and renting are on Cost of living.

Type of home

Dunfermline
Fife’s towns
Scotland’s towns
DetachedSemi-detachedTerracedFlat or maisonetteCaravan or other

Cars or vans · share of households

No car or van21%
One44%
Two28%
Three or more6.8%
DunfermlineFife’s townsScotland’s towns

With households in terraced houses at 18%, Dunfermline is behind three fifths of UK towns on that count.

Where people were born

Dunfermline ranks above 69% of UK towns on residents born outside the UK: 8.8%

Country of birth, year of arrival and main language, Census 2022.

Born outside the UK, by region · share of all residents; the bar runs to 15%

Dunfermline
8.6%
Fife’s towns
8.4%
Scotland’s towns
11%
EU countriesRest of EuropeMiddle East and AsiaAfricaAmericas, Oceania, other

When those born abroad arrived

DunfermlineScotland’s towns
Before 19711971–801981–901991–20002001–102011–132014–162017–192020–21

Main language · residents aged 3 and over

English is main language96%
DunfermlineFife’s townsScotland’s towns

Born abroad and arrived since 2017: nearly a quarter of that group, against 34% across Scotland’s towns. The wider picture: just over one in ten residents were born outside the UK across Scotland’s towns. 96% of residents have English as their main language.

Ethnicity & religion

30% of residents describe themselves as Christian, fewer than in 99% of UK towns

How residents described themselves at the 2022 Census. Lines join the lowest and highest of the three figures.

Ethnic groups other than White British · all residents

DunfermlineFife’s townsScotland’s towns
Other White5.5%
Asian3.1%
Mixed1%
Black0.8%
Other0.6%
0%4%8%

White British, not charted: 89% of Dunfermline · Fife’s towns 90% · Scotland’s towns 86%.

Religion · all residents

DunfermlineFife’s townsScotland’s towns
No religion62%
Christian30%
Muslim1.7%
Hindu, Sikh, Jewish, Buddhist0.9%
Other religion0.5%
Didn’t answer5.3%
0%35%70%

After White British, the largest groups are Other White (5.5%), Pakistani (1.4%) and Mixed or multiple (1%). Nearly nine in ten residents describe themselves as White British, a lower share than in 68% of UK towns. Set beside that, 39% of residents describe themselves as Christian across Scotland’s towns.

Relationships & caring

More adults who have never married than 67% of UK towns: 35%

Legal partnership status (residents 16 and over) and unpaid care (residents 3 and over), Census 2022.

Partnership status · residents 16 and over

Never married or in a civil partnership35%
Married or civil partnership47%
Separated2.5%
Divorced9.1%
Widowed6.1%
DunfermlineFife’s townsScotland’s towns
6,161residents give unpaid care to someone with an illness, disability or old age: 11%, against 12% in Scotland’s towns

Unpaid care given · share of residents 3 and over

Up to 19 hours a week6.5%
20 to 49 hours2.2%
50 hours or more2.7%

Heavy unpaid care, 50 hours a week or more, falls to 1,470 residents. Across the comparison, two in five adults have never married or formed a civil partnership across Scotland’s towns. Compared with other places, unpaid carers are common here: 11%, more than in 91% of UK towns. Where 42% of adults are married or in a civil partnership across Scotland’s towns, Dunfermline has 47%.

Qualifications

Among adults, 34% hold a degree-level qualification

Highest qualification, residents 16 and over, Census 2022.

Highest qualification · residents 16 and over

No qualifications13%
Apprenticeship7.4%
Highers or similar11%
Degree level34%
DunfermlineFife’s townsScotland’s towns

Against 32% across Scotland’s towns, 34% of adults here have a degree-level qualification, while 13% hold no qualification (17%).

Towns its size

54th oldest of 127 UK towns of 39,000 to 76,000 people

Median age, Census 2022. Hover a dot for its students and residents born abroad; click for its page.

Dunfermline 41.3
CanterburyLytham St Anne'sHereford
264156

At the ends of the range sit Canterbury (27.5), the youngest, and Lytham St Anne's (54.4), the oldest. Nearest to Dunfermline in age: Wrexham (41.2), Folkestone (41.3), Beeston (41.4) and Trowbridge (41.4).

Neighbours

The towns around Dunfermline are all older

Nearby towns coloured by median age, Census 2022. Tap a town for its page.

RosythCrossgatesInverkeithingDalgety Bay and HillendCairneyhillCowdenbeath and LumphinnansKeltyDunfermline
under 3838–4444–5050–5656+
TownPeopleAwayMedian age65+Homes with children
Dunfermline56,053—41.317%28%
Rosyth13,3092.3 mi41.517%27%
Crossgates2,9932.6 mi4520%27%
Inverkeithing5,2733 mi42.318%23%
Dalgety Bay and Hillend9,4523.7 mi50.427%24%
Cairneyhill2,6573.9 mi45.223%27%
Cowdenbeath and Lumphinnans11,9794.1 mi43.320%25%
Kelty6,8985 mi43.120%26%
More about Dunfermline’s residents

Health, work and homes have their own pages

How to read these numbers

What this data can and can’t tell you

  • The Census was taken in term time. 20 March 2022 fell in term time, and students were asked to give their term-time address, so most were counted where they study. Some may have been living with family that day.
  • “Fife’s towns” and “Scotland’s towns” mean their towns. Census comparisons pool every locality in Fife (or Scotland), summed the same way as Dunfermline’s figures, so households in open countryside are left out.
  • Small counts are blurred. National Records of Scotland adjusts small Census counts to protect privacy, so the same total differs a little between tables, and the shares of a small town can move by a point or two.

Questions about Dunfermline’s residents

What is the population of Dunfermline?

The 2022 Census counted 56,053 people in Dunfermline’s locality.

What is the average age in Dunfermline?

The median age was 41.3 at the 2022 Census, younger than 73% of UK towns. 10% of residents were 15 to 24 and 17% were 65 or over.

How diverse is Dunfermline?

89% of residents described themselves as White British in 2022, against 86% across Scotland’s towns and 90% across Fife’s towns. 8.8% were born outside the UK.

What religion are people in Dunfermline?

62% said they had no religion and 30% that they were Christian at the 2022 Census; 1.7% were Muslim and 5.3% didn’t answer.

Is Dunfermline good for families?

28% of households had dependent children in 2022, against 24% across Scotland’s towns. Schools are on Dunfermline’s schools page.

Sources: Scotland’s Census 2022 (National Records of Scotland), output areas summed to the NRS 2022 locality (UV101b, UV103, UV104, UV113, UV201, UV204b, UV205, UV212, UV301, UV402, UV405, UV406, UV501, UV607, UV801). Open Government Licence v3.0.

Contains public sector information licensed under the Open Government Licence v3.0. Contains HM Land Registry data © Crown copyright and database right 2026. Contains OS data © Crown copyright and database right 2026 (ONS boundaries). Northern Ireland: Source: NISRA; contains Land & Property Services data and Ordnance Survey of Northern Ireland information, © Crown copyright, licensed under the Open Government Licence v3.0. Scotland: contains National Records of Scotland data, Registers of Scotland data and SEPA data, © Crown copyright / © SEPA 2025, licensed under the Open Government Licence v3.0.