Affordability stands in the way for millennials as one of the main barriers to homeownership.

But not all housing markets are created equal, and many cities offer this generation plenty of options within a price range they can afford.

"Millennials who dream of owning a home will have better luck if they move inland to places like St. Louis, Columbus and Pittsburgh," Redfin chief economist Daryl Fairweather said in a press release. "These cities used to have economies that relied heavily on manufacturing, and during the recession a lot of young people moved away in search of jobs."

With home price growth currently plateauing, the time for millennial buyers to strike could be now before that changes.

"However, now these cities have more diverse economies based on education, healthcare and technology, and there are open jobs with salaries that are high relative to cost of living. But millennials may want to move as quickly as possible because even in most inland cities the share of homes affordable to the typical millennial is shrinking as housing prices go up," Fairweather said.

From the gateway to the West to just below the Mason-Dixon Line, here's a look at the 12 housing markets with the highest percentage of homes affordable to millennial purchasers with median incomes.

Redfin calculated the share of homes in each housing market that were affordable during 2018 to households making the median income for millennials in that metro area, assuming a 20% down payment, an interest rate of 4.64% and a monthly mortgage payment no more than 30% of gross income.
NMN02122019-Redfin.png

12. Baltimore, Md.

Median list price: $308,595
Median millennial salary: $85,562
Homes affordable to millennials: 81.3%
NMN021219-baltimore.jpg
Colorful row houses along Guilford Avenue in Charles Village, Baltimore, Maryland.

11. Raleigh, N.C.

Median list price: $298,081
Median millennial salary: $76,729
Homes affordable to millennials: 81.4%
NMN021219-raleigh.jpg

10. Oklahoma City, Okla.

Median list price: $198,000
Median millennial salary: $60,462
Homes affordable to millennials: 82.8%
NMN021219-oklahoma-city.jpg
A pool stands where the terrorist attack took place in Oklahoma

9. Indianapolis, Ind.

Median list price: $190,000
Median millennial salary: $62,054
Homes affordable to millennials: 83.5%
NMN021219-indianapolis.jpg
Indianapolis, Indiana, USA skyline over Monument Circle.

8. Cleveland, Ohio

Median list price: $164,900
Median millennial salary: $56,151
Homes affordable to millennials: 84%
8-Cleveland
Columbus, Ohio beyond The Ohio State University

7. Minneapolis, Minn.

Median list price: $284,900
Median millennial salary: $83,933
Homes affordable to millennials: 85.1%
NMN021219-minneapolis.jpg
Minneapolis, MN, river and bridge near downtown

6. Kansas City, Mo.

Median list price: $225,000
Median millennial salary: $71,313
Homes affordable to millennials: 85.2%
NMN021219-kansas-city.jpg
The Kansas City skyline continues to grow, but the recognizable Western Auto building and recently renovated Union Station have dominated the landscape for many years.

5. Hartford, Conn.

Median list price: $249,900
Median millennial salary: $76,235
Homes affordable to millennials: 85.7%
NMN021219-hartford.jpg
Hartford, CT- OCTOBER 15: The Mark Twain House and Museum on October 15, 2014. It was the home of Samuel Langhorne Clemens (a.k.a. Mark Twain) from 1874 to 1891 in Hartford, Connecticut.

4. Cincinnati, Ohio

Median list price: $199,900
Median millennial salary: $68,511
Homes affordable to millennials: 85.9%
NMN021219-cincinnati-adobe.jpg

3. Columbus, Ohio

Median list price: $215,500
Median millennial salary: $71,181
Homes affordable to millennials: 87.1%
3-columbus
Columbus, Ohio beyond The Ohio State University

2. Pittsburgh, Pa.

Median list price: $179,900
Median millennial salary: $70,169
Homes affordable to millennials: 87.5%
NMN021219-pittsburgh.jpg
Panorama of downtown Pittsburgh skyline at twilight

1. St. Louis, Mo.

Median list price: $189,900
Median millennial salary: $68,805
Homes affordable to millennials: 88.1%
NMN021219-st-louis.jpg
St. Louis, Missouri.
MORE FROM NATIONAL MORTGAGE NEWS