HSH.com has determined the yearly salary needed to afford a median-priced home in 27 metro areas.

Using data from the National Association of Realtors, the publisher of mortgage and consumer loan information determined what the monthly mortgage payment -- including principal, interest, taxes and insurance -- would be to purchase a home in these cities across the U.S.

HSH.com subtracted a 20 percent down payment and used the area's average interest rate for a 30-year, fixed-rate mortgage to determine the payments.

The following 10 cities are the most affordable, with No. 1 requiring the lowest yearly salary to purchase a home.

No. 10
San Antonio

Salary $45,374.30
Home price $185,500
Mortgage rate 4.09 percent
Monthly payment $1,058.73

 

No. 9
Orlando

Salary $42,143.30
Home price $180,000
Mortgage rate 4.07 percent
Monthly payment $983.34


 

 

No. 8
Phoenix

Salary $40,658.08
Home price $200,300
Mortgage rate 4.06 percent
Monthly payment $948.69

 

No. 7
Tampa

Salary $37,732.20
Home price $160,000
Mortgage rate 4.13 percent
Monthly payment $880.42

 

 

No. 6
Atlanta

Salary $35,800.11
Home price $157,700
Mortgage rate 4.09 percent
Monthly payment $835.34

 

No. 5
Detroit

Salary $35,521.47
Home price $135,800
Mortgage rate 4.18 percent
Monthly payment $828.83

 

No. 4
Cincinnati

Salary $33,485.23
Home price $138,100
Mortgage rate 4.09 percent
Monthly payment  $781.32

 

No. 3
St. Louis

Salary $33,323.09
Home price $138,400
Mortgage rate 4.03 percent
Monthly payment  $777.54

 

No. 2
Cleveland

Salary $32,010.41
Home price $121,200
Mortgage rate 4.05 percent
Monthly payment $746.91

 

No. 1
Pittsburgh

Salary $31,716.32
Home price  $135,000
Mortgage rate 3.98 percent
Monthly payment $740.05

Click HSH.com to read the full report.