Everyone wants to live well, but that often comes down to what city you live in.
In fact, the best places to live are likely the ones where you can find a job, earn a good salary and buy a nice home. The labor market research firm Glassdoor calculated the spots where your pay will go furthest, based on salaries and home values. To do so, it came up with a cost of living ratio — a city's median base salary divided by its median home value.
"Though there are certainly other financial factors to consider when taking into account the total cost of living, this data reinforces that pay typically goes further in mid-sized cities versus big metropolitan areas where there is often tighter competition for housing," said Andrew Chamberlain, Glassdoor's chief economist.
While you can earn more in cities like New York and San Francisco, many people can't afford to buy a house or an apartment there. So here are the top places where an average paycheck goes a very long way and the quality of life is great. Think lakefront homes, bike trails to work and live music.
— By CNBC's Jessica Dickler
Posted 12 Sept. 2016