Guest, Sign inJoin
St Andrews - Market Street view eastwardsPhoto: Rob Farrow · CC BY-SA 2.0
23.9Median age
Who lives here · Scotland’s Census 2022

St Andrews is younger than 99% of UK towns: a median age of 23.9

24% of adults are married or in a civil partnership, against 42% across Scotland’s towns. Still, households without a car or van are more common here than in 98% of UK towns. Census day 2021: 16,465 residents and 5,720 households in St Andrews. Residents who describe themselves as Christian: just over a third of the total.

What stands out · In brief

What the Census says about St Andrews’s people

A student town

The 2022 Census counted 8,706 full-time students aged 16 and over, 57% of adults, against 9.4% across Scotland’s towns: more than in 99% of UK towns. That shows in the ages: 51% of residents are 15 to 24. Students & newcomers ↓

Younger than most towns

Half of St Andrews’s residents are under 23.9 and half over, against 44.4 in the typical UK town. 51% are 15 to 24 and 17% are 65 or over. Ages ↓

More born abroad than anywhere else in Fife

30% of residents were born outside the UK, against 8.4% across Fife’s towns and 11% across Scotland’s towns. The largest groups were born in the Americas, Oceania and elsewhere (12%) and in the Middle East and Asia (8.1%). Where people were born ↓

A mix of backgrounds

31% of residents described their ethnic group as something other than White British at the 2022 Census, more than in 93% of UK towns. The largest groups after White British are Other White (17%), Chinese (4.3%) and Mixed or multiple (3.2%). Ethnicity & religion ↓

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

Ages

51% of residents are aged 15 to 24, a share 99% of UK towns don’t reach

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

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

No age band is larger than 20–24: 32% of residents, 4.7 times the share across Scotland’s towns. In St Andrews, 17% of residents are 65 or over.

Median age of UK towns of 2,500+

2535455565

■ St Andrews, 23.9. The typical town is 44.4.

Broad ages · share of residents

Under 156%
15 to 2451%
25 to 4413%
45 to 6413%
65 and over17%
St AndrewsFife’s townsScotland’s towns

Women and men · all residents

56% women, 44% men

St Andrews
Scotland
WomenMen

About 79 men for every 100 women. Across Scotland, 51% of residents are women. A large institution, such as a prison, barracks, boarding school, university or care home, can tilt a town’s split: the census counts the people living there as residents.

Students & newcomers

In St Andrews, 57% of adults are full-time students, more than in 99% of UK towns

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

Adults by occupation class · residents 16 and over

Full-time students57%
Higher managerial and professional9.2%
Lower managerial and professional11%
Intermediate4.2%
Small employers and self-employed3.9%
Supervisory and technical2.7%
Semi-routine4.1%
Routine5.6%
Never worked or long-term unemployed2.7%
St AndrewsFife’s townsScotland’s towns

Leave the students aside and St Andrews’s other adults differ from Scotland’s: 47% are in managerial and professional jobs, against 36%. Across Scotland’s towns, the share of full-time students is 9.4%.

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

Households

St Andrews ranks below 99% of UK towns on households with dependent children: 12%

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

Living alone, 66+ 16%Living alone, under 66 18%Families with dependent children 12%Couples and families, no young children 29%Shared houses and other 25%

Against Fife’s towns and Scotland’s towns

St Andrews
Fife’s towns
Scotland’s towns

People per household

1 person34%
2 people40%
3 people12%
4 people9.4%
5 or more4.1%

Scotland’s towns.

A household here has 2.1 people on average; across Scotland’s towns, 2.1. Across Scotland’s towns, the share of households with dependent children is 24%. The census found that a quarter of households are unrelated adults sharing a home in St Andrews. The town has more one-person households than 83% of UK towns, at 34%.

Homes & cars

37% of households live in a flat or apartment, more than in 98% of UK towns

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

Type of home

St Andrews
Fife’s towns
Scotland’s towns
DetachedSemi-detachedTerracedFlat or maisonetteCaravan or other

Cars or vans · share of households

No car or van36%
One44%
Two17%
Three or more4.4%
St AndrewsFife’s townsScotland’s towns

By its share of households in detached houses (23%), St Andrews is below 67% of UK towns. Households in flats make up 39% across Scotland’s towns. Here, 16% of households live in a terraced house.

Where people were born

In St Andrews, 30% of residents were born outside the UK, more than in 98% of UK towns

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 35%

St Andrews
30%
Fife’s towns
8.4%
Scotland’s towns
11%
EU countriesRest of EuropeMiddle East and AsiaAfricaAmericas, Oceania, other

When those born abroad arrived

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

Main language · residents aged 3 and over

English is main language90%
St AndrewsFife’s townsScotland’s towns

Here 90% of residents have English as their main language, where the figure across Scotland’s towns is 94%. The usual figure: 11% of residents were born outside the UK across Scotland’s towns.

Ethnicity & religion

69% of residents describe themselves as White British, below 93% 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

St AndrewsFife’s townsScotland’s towns
Other White17%
Asian8.6%
Mixed3.2%
Black0.7%
Other1.8%
0%10%20%

White British, not charted: 69% of St Andrews · Fife’s towns 90% · Scotland’s towns 86%.

Religion · all residents

St AndrewsFife’s townsScotland’s towns
No religion52%
Christian34%
Muslim1.4%
Hindu, Sikh, Jewish, Buddhist2.8%
Other religion1%
Didn’t answer8.7%
0%35%70%

Besides White British, the main groups are Other White (17%), Chinese (4.3%) and Mixed or multiple (3.2%). As a reference point, 86% of residents describe themselves as White British across Scotland’s towns. St Andrews has more residents with no religion than 96% of UK towns, at 52%.

Relationships & caring

67% of adults have never married or formed a civil partnership, a share 99% of UK towns don’t reach

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 partnership67%
Married or civil partnership24%
Separated0.9%
Divorced3.9%
Widowed5%
St AndrewsFife’s townsScotland’s towns
1,162residents give unpaid care to someone with an illness, disability or old age: 7.1%, against 12% in Scotland’s towns

Unpaid care given · share of residents 3 and over

Up to 19 hours a week4.4%
20 to 49 hours1.2%
50 hours or more1.3%

214 residents give 50 hours or more of unpaid care each week. The usual figure: 40% of adults have never married or formed a civil partnership across Scotland’s towns. Compared with other places, unpaid carers are scarce here: 7.1%, fewer than in 96% of UK towns.

Qualifications

37% of adults are qualified to degree level

Highest qualification, residents 16 and over, Census 2022.

Highest qualification · residents 16 and over

No qualifications6.2%
Apprenticeship2.6%
Highers or similar33%
Degree level37%
St AndrewsFife’s townsScotland’s towns

Degree-level qualifications are held by 37% of St Andrews’s adults, against 32% across Scotland’s towns; 6.2% have no qualification (17%). For 33%, Highers are the highest qualification so far, many of them students still working towards a degree.

Towns its size

Among 323 UK towns of 12,000 to 22,000 people, the 1st youngest

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

St Andrews 23.9
SidmouthClitheroe
224262

At the ends of the range sit St Andrews (23.9), the youngest, and Sidmouth (60.4), the oldest. Nearest to St Andrews in age: Aberystwyth (25) and Bangor (26.4).

Neighbours

Every neighbour of St Andrews has an older population

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

CuparTayportAnstrutherNewport-on-Tay and WormitMonifiethDundeeCarnoustieSt Andrews
under 3838–4444–5050–5656+
TownPeopleAwayMedian age65+Homes with children
St Andrews16,465—23.917%12%
Cupar8,8358.2 mi48.927%21%
Tayport3,9678.2 mi4821%22%
Anstruther3,9438.7 mi48.426%22%
Newport-on-Tay and Wormit4,1198.9 mi50.728%25%
Monifieth9,35610.3 mi49.829%26%
Dundee147,36511.4 mi38.418%22%
Carnoustie11,37311.9 mi48.726%24%
More about St Andrews’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 St Andrews’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 St Andrews’s residents

What is the population of St Andrews?

The 2022 Census counted 16,465 people in St Andrews’s locality.

What is the average age in St Andrews?

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

Is St Andrews a student town?

Yes: 57% of adults were full-time students at the 2022 Census (8,706 people), against 9.4% across Scotland’s towns.

How diverse is St Andrews?

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

What religion are people in St Andrews?

52% said they had no religion and 34% that they were Christian at the 2022 Census; 1.4% were Muslim and 8.7% didn’t answer.

Is St Andrews good for families?

12% of households had dependent children in 2022, against 24% across Scotland’s towns. Schools are on St Andrews’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.