21 of the most affordable zip codes to raise a family in the US

A neighborhood with high-quality schools and affordable homes sounds like the ideal place to raise a family, but it's not easy to come by.

Luckily, HomeUnion, an online real estate investment management firm, recently dug into its database of more than 200,000 neighborhoods to find out which US zip codes fit the bill.

To compile its list, HomeUnion analyzed the 50 largest US metros to find the one zip code in each with the lowest median sale price for single-family homes sold between late 2016 and early 2017. From there, they sourced Maponics, which ranks public schools based on average math and reading scores, to find the most affordable zip codes that also have an average school rating in the 80th percentile or higher. Metros with zip codes that had no school ratings above 80 were eliminated entirely, including New York City.

"As home prices continue to increase in many coastal markets, particularly in the Western US, we are seeing the best opportunities for first-time home buyers with families in the center of the country," said Steve Hovland, director of research for HomeUnion, of the company's findings.

Below, check out 21 of the best places to raise a family, ranked by median home sale price. Each zip code's metro and average school rating are included as well.

All photos feature the metro area the zip code is a part of.

23 PHOTOS
The most affordable zip codes in America
See Gallery
The most affordable zip codes in America

21. 97035: Lake Oswego, Oregon

Metro: Portland

School rating: 87.9

Median home sale price: $417,500

Photo credit: Getty

20. 80122: Centennial, Colorado

Metro: Denver

School rating: 83.3 

Median home sale price: $380,000

Photo credit: Getty 

19. 78717: Williamson, Texas

Metro: Austin

School rating: 84.9 

Median home sale price: $375,000

Photo credit: Getty

18. 37179: Thompson's Station, Tennessee

Metro: Nashville

School rating: 90.3

Median home sale price: $372,500

Photo credit: Getty

17. 28104: Matthews, North Carolina

Metro: Charlotte

School rating: 87.7

Median home sale price: $336,500

Photo credit: Getty

Charlotte, North Carolina, USA uptown cityscape.

16. 95677: Rocklin, California

Metro: Sacramento

School rating: 81.5

Median home sale price: $330,500 

Photo credit: Getty 

15. 78255: Cross Mountain, Texas

Metro: San Antonio

School rating: 85.2

Median home sale price: $317,100

Photo credit: Getty

14. 32259: St. John's, Florida

Metro: Jacksonville

School rating: 81.6

Median home sale price: $297,000 

Photo credit: Getty 

13. 89144: Summerlin neighborhood, Nevada

Metro: Las Vegas

School rating: 81.9

Median home sale price: $295,000 

Photo credit: Getty 

12. 16066: Cranberry Township, Pennsylvania

Metro: Pittsburgh

School rating: 83.9

Median home sale price: $274,00 

Photo credit: Getty 

11. 77450: Katy, Texas

Metro: Houston

School rating: 81.2

Median home sale price: $239,500 

Photo credit: Getty 

10. 43065: Powell, Ohio

Metro: Columbus

School rating: 86.1

Median home sale price: $229,500 

Photo credit: Getty 

9. 30519: Buford, Georgia

Metro: Atlanta

School rating: 86.5 

Median home sale price: $220,000  

Photo credit: Getty 

8. 19044: Horsham, Pennsylvania

Metro: Philadelphia

School rating: 84.2

Median home sale price: $217,500

Photo credit: Getty

7. 44147: Broadview Heights, Ohio

Metro: Cleveland

School rating: 87.1

Median home sale price: $200,000 

Photo credit: Getty 

6. 46112: Brownsburg, Indiana

Metro: Indianapolis

School rating: 86.3

Median home sale price: $184,100 

Photo credit: Getty 

5. 60503: Aurora, Illinois

Metro: Chicago

School rating: 81.9 

Median home sale price: $168,000 

Photo credit: Getty 

4. 33496: Boca Raton, Florida

Metro: Palm Beach

School rating: 87.9

Median home sale price: $167,500 

Photo credit: Alamy

3. 63026: Fenton, Missouri

Metro: St. Louis

School rating: 81.1

Median home sale price: $167,000 

Photo credit: Getty

2. 73170: Tuttle, Oklahoma

Metro: Oklahoma City

School rating: 89.6

Median home sale price: $165,000 

Photo credit: Getty

1. 64014: Blue Springs, Missouri

Metro: Kansas City

School rating: 88.5

Median home sale price: $159,700 

Photo credit: Getty 

HIDE CAPTION
SHOW CAPTION
of
SEE ALL
BACK TO SLIDE

More from Business Insider:
The 13 dumbest things to do with your money in your 20s
7 stupid things people do with their money that feel smart at the time
The best banks in the US for your money

SEE ALSO: The 15 US cities where it's easiest to save money

DON'T MISS: Here's how big a home you can buy for $400,000 in the 25 biggest cities in America

Read Full Story

How much is your home worth?

See if your home increased in value since you bought it

Value Your Home

Can't get enough real estate news?

Sign up for Finance Report by AOL and get everything from celebrity homes to renovation tricks delivered directly to your inbox daily!

Subscribe to our other newsletters

Emails may offer personalized content or ads. Learn more. You may unsubscribe any time.