Cities across the UK were rated for numerous criteria, including schools, green spaces, crime rates, air quality and childcare and housing costs to determine their ranking.
According to the new study by Kaybridge Residential, Glasgow is the best place in the UK for families to live, with an overall score of 100 out of 100.
It scored particularly well for affordability, with an average house price of £157,900 and a monthly childcare cost of £867.
Glasgow was also rated particularly highly for green spaces, achieving the joint highest green spaces index score, of 1.18, and for air quality.
Kevin Barzegar, founder and CEO of Kaybridge Residential, said: “Glasgow proves that you don't need to spend a fortune to give your family a great quality of life.
“Affordable housing combined with good schools, safe streets, and clean air makes it an attractive option for families planning their next move.”
Aberdeen was second in the table, while York is the third best city in the UK in which to raise a family, according to the findings.
London is the UK’s worst city in which to raise a family, the study found, with a score of 0, followed by Manchester (31.92) and Birmingham (31.94).
Leeds (6th), Nottingham (8th) and Belfast (9th) were also in the bottom 10.
The study rated 21 major UK cities for eight different criteria. Those scores were then weighted based on their importance to family life, to give an overall family-friendliness tally.
Below are the 9 best cities in the UK in which to raise a family, according to the study, listed in reverse order.
For more property news, check out this list of the UK’s 18 ‘best’ cities, ranked among the top 100 in Europe.

1. Liverpool
Liverpool is the 9th best UK city in which to raise a family, according to a new study by Kaybridge Residential, with an overall score of 64.49 out of 100. It scored highly for childcare costs, which at £800 a month are among the lowest in the UK, and for healthcare. | Heritage Images via Getty Images Photo: Historic England Archive

2. Portsmouth
Portsmouth is the 8th best UK city in which to raise a family, according to a new study by Kaybridge Residential, with an overall rating of 65.76 out of 100. It scored highly for green spaces and air quality. | Getty Images Photo: Finnbarr Webster
.jpeg?trim=0,1335,0,0&crop=&width=800)
3. Sheffield
Sheffield is the 7th best UK city in which to raise a family, according to a new study by Kaybridge Residential, with an overall rating of 70.95 out of 100. It scored highly for affordable housing, with an average price of £176,400, and for childcare costs, coming in at an average of £856 a month. | teamjackson - stock.adobe.com

4. Leicester
Leicester is the 6th best UK city in which to raise a family, according to a new study by Kaybridge Residential, with an overall rating of 73.01 out of 100. It scored highly for the monthly cost of living, which at £1,918 for a family is among the lowest in the country. | Getty Images Photo: Ross Kinnaird