When buying your first home, you want to choose a place you love — and also one you can afford.

To determine the best cities for first-time buyers, personal finance site SmartAsset evaluated U.S. cities with populations of 300,000 or more across seven metrics: value per square foot, number of mortgage lenders, loan funding rate, market volatility, home price fluctuations, housing affordability and homeowner stability.