Four Texas cities land on Niche's 20 best places to live in America 2018 ranking

Niche best cities to live in America 2018

1. Ann Arbor, Michigan

Overall score: A+ Public Schools score: A+ Housing score: B "Good for families" score: A+ Crime and safety score: B- Nightlife score: A Diversity score: A less Niche best cities to live in America 2018

1. Ann Arbor, Michigan

Overall score: A+ Public Schools score: A+ Housing score: B "Good for families" score: A+ Crime and safety score: B- Nightlife score: A Diversity ... more 1. Ann Arbor, Michigan Photo: Photograph By Geoffrey George/Getty Images Photo: Photograph By Geoffrey George/Getty Images Image 1 of / 30 Caption Close Four Texas cities land on Niche's 20 best places to live in America 2018 ranking 1 / 30 Back to Gallery

Texas and California have the most cities in the top 20 places to live in America, according to ranking and review site Niche.

A total of four cities in each state made the top 20. For Texas, the cities making the top 20 include Plano, The Woodlands, Richardson, and Round Rock. California's cities are Berkeley, Irvine, San Francisco, and Sunnyvale.

While California and Texas were tied for number of cities in the top 20, Texas came out on top when looking only at the top ten, with three Texas cities - Plano, The Woodlands, and Richardson - landing in the top ten.

The rankings are calculated by a number of metrics, including "quality of local schools, crime rates, housing trends, employment statistics, and access to amenities." Each city is given a letter grade in the following categories: public schools, housing, "good for families," crime and safety, nightlife and diversity. The city is given an overall grade based on the subcategory scores.

To see the scores of the top 20 cities - including those in Texas and California - go through the photos in the gallery above.

Heather Leighton is a digital reporter at Chron.com. She considers herself a Jack(ie) of all trades and covers various topics from entertainment to politics. You can read more of her stories here and follow her on Twitter at @loveheathernoel.