Take a look at our deep dive into determining the most and least affordable cities for homebuyers in the U.S.
This study examined data at the metropolitan statistical area level for 507 cities. To determine the affordability of home purchases, we used average home price data for each city for homes with one to five bedrooms. We used census data to determine the distribution of households in homes of different sizes for each city and combined this data with the home price data to create a weighted average housing price for each city.
Additionally, our study considered the purchasing power available to households as measured by median household income. This factor for each city provides insight into the ability of home buyers to earn income that will allow them to afford their homes. Our study calculated the price-to-income ratio, which is the average cost of a home as a multiple of the median household income in a city.
The price-to-income ratios in this study ranged from as low as 1.5 in the nation’s most affordable city, Danville, Illinois, up to as high as 9.7 in San Francisco, California, the nation’s most expensive city. Nationwide, the average price-to-income ratio was 4.0. The top five least affordable cities were all in California, with San Francisco, Santa Cruz, San Jose, San Luis Obispo, and Los Angeles leading the way. The most affordable homes were mainly found in small midwestern cities.
Most Affordable Cities for Homebuyers by City Size
AdvisorSmith examined the most affordable cities in the country for homebuyers segmented by city size. We segmented the cities into small (population less than 150,000), midsize (population 150,000 to 500,000), and large (population above 500,000) cities to provide a comparison of cities with more similar characteristics.

Top 3 Most Affordable Cities for Homebuyers
1. Danville, IL
Danville, Illinois is a small city located in eastern Illinois near the Indiana border. Historically, Danville was a major industrial city and coal town. President Abraham Lincoln also practiced law in the city for 18 years, so there are many historical sites in the city related to Lincoln that tourists can visit.
Danville’s median household income is $43,655, but the weighted average home price is just $67,527. The city is the nation’s most affordable city for homebuyers with a price-to-income ratio of only 1.5.
2. Pottsville, PA
Located in Pennsylvania’s Coal Region, Pottsville is a small city that sits along the banks of the Schuylkill River in eastern Pennsylvania. The city is known as the home of the Yuengling beer brewery, which is the oldest brewery in America and the second-largest American-owned brewer.
The median household income in Pottsville is $48,458, while the weighted average home price is $78,454, leading to a price-to-income ratio of just 1.6. This makes Pottsville the second most affordable city in the nation for homebuyers.
3. Johnstown, PA
Johnstown, Pennsylvania is a small city in Pennsylvania located just east of Pittsburgh. Early in the city’s history, the city served as a port along the Pennsylvania Main Line Canal. Later, the city became a railroad stop on the Pennsylvania Railroad and went through a period of industrial revolution, as the city produced coal, steel, and iron. In 1889, a major flood hit the city, bursting a dam upstream of the city, killing thousands of residents, which led to major changes in liability laws in the United States.
Today, households in Johnstown earn a median income of $45,084, and the average home price is $74,083. The price-to-income ratio for homes in the city is only 1.6, making Johnstown the 3rd most affordable city in the country.
Least Affordable Cities for Homebuyers by City Size
In addition to the most affordable cities, we also found the least affordable cities in the country by city size.

Top 3 Least Affordable Cities for Homebuyers
1. San Francisco, CA
As one of the most prominent cities on the West Coast, San Francisco is a major world city located in Northern California. The city is known for its dense fog, steep hills, cable cars, and the Golden Gate Bridge. San Francisco is home to many major technology businesses, such as Salesforce and Uber, and also hosts a large financial services sector.
San Francisco was the nation’s least affordable city for home buyers, with the average home costing 9.7 times the median household income. While household incomes were $107,898, far above the national average, weighted average home prices were over $1 million, at $1,047,516.
2. Santa Cruz, CA
Located on the northern side of Monterey Bay on the Pacific Ocean, Santa Cruz is a midsize city just south of the San Francisco Bay Area. Besides hosting the University of California, Santa Cruz, a major research university, the city has a substantial organic agriculture economy, along with high-technology businesses and outdoor recreation tourism.
The median household income in Santa Cruz was $86,941, while the weighted average home price was $834,681, leading to a price-to-income ratio of 9.6, placing Santa Cruz as the second most expensive city for homebuyers in the nation.
3. San Jose, CA
Located along the southern portion of the San Francisco Bay is San Jose, another major city in the San Francisco Bay Area. The San Jose metro area is considered by many to be the global center of the high-tech industry, sometimes called Silicon Valley. Major global technology companies such as Cisco, eBay, Paypal, and Zoom are headquartered in San Jose. The city hosts San Jose State University, and other nearby universities include Santa Clara University and Stanford University.
San Jose had the highest median household income in the nation, with households earning $124,696. However, the city also had the nation’s highest weighted average home prices, with the average cost coming in at $1,117,917. Potential homebuyers in San Jose faced price-to-income ratios of 9.0, making it the third most expensive city for homebuyers in the United States.
Top 50 Most Affordable Cities for Homebuyers
Ranked below are the 50 most affordable cities for homebuyers, along with data on each city’s weighted average home price, median household income, and the price-to-income ratio. To qualify for the top 50 most affordable cities for homebuyers, the price-to-income ratio for homes was 2.27 or less, meaning that the average house costs 2.27 times the median household income or less in the city.
The vast majority of the most affordable cities were small cities, with 39 of the top 50 being small cities, while only two large cities made the top 50: Youngstown, Ohio (#20), and Scranton, Pennsylvania (#45). Over two-thirds of the most affordable cities were located in the Midwest.
Rank | City | City Size | Weighted Home Price | Median Household Income | Price-to-Income Ratio |
---|---|---|---|---|---|
1 | Danville, IL | Small | $67,527 | $43,655 | 1.5 |
2 | Pottsville, PA | Small | $78,454 | $48,458 | 1.6 |
3 | Johnstown, PA | Small | $74,083 | $45,084 | 1.6 |
4 | Decatur, IL | Small | $83,566 | $50,066 | 1.7 |
5 | Ogdensburg, NY | Small | $83,086 | $49,681 | 1.7 |
6 | Olean, NY | Small | $85,444 | $48,179 | 1.8 |
7 | Enid, OK | Small | $97,095 | $53,946 | 1.8 |
8 | Lawton, OK | Small | $95,443 | $52,034 | 1.8 |
9 | Roanoke Rapids, NC | Small | $67,981 | $37,027 | 1.8 |
10 | Marion, IN | Small | $83,608 | $44,839 | 1.9 |
11 | Muskogee, OK | Small | $85,398 | $45,290 | 1.9 |
12 | Weirton, WV | Small | $82,696 | $43,747 | 1.9 |
13 | Corning, NY | Small | $105,171 | $55,569 | 1.9 |
14 | Elmira, NY | Small | $101,005 | $53,005 | 1.9 |
15 | Peoria, IL | Midsize | $111,989 | $58,603 | 1.9 |
16 | Kokomo, IN | Small | $110,260 | $55,868 | 2.0 |
17 | Wichita Falls, TX | Midsize | $100,127 | $50,309 | 2.0 |
18 | Saginaw, MI | Midsize | $98,252 | $48,990 | 2.0 |
19 | Meadville, PA | Small | $103,374 | $51,502 | 2.0 |
20 | Youngstown, OH | Large | $95,516 | $47,476 | 2.0 |
21 | Shawnee, OK | Small | $98,496 | $48,776 | 2.0 |
22 | Springfield, IL | Midsize | $128,828 | $63,521 | 2.0 |
23 | Terre Haute, IN | Midsize | $102,769 | $50,256 | 2.0 |
24 | Bluefield, WV | Small | $80,941 | $39,276 | 2.1 |
25 | Rockford, IL | Midsize | $116,102 | $55,829 | 2.1 |
26 | Marinette, WI | Small | $100,744 | $48,215 | 2.1 |
27 | Muncie, IN | Small | $87,056 | $41,662 | 2.1 |
28 | Wheeling, WV | Small | $104,544 | $49,749 | 2.1 |
29 | Manitowoc, WI | Small | $114,881 | $54,393 | 2.1 |
30 | Ottawa, IL | Small | $111,208 | $52,572 | 2.1 |
31 | Owosso, MI | Small | $115,647 | $54,456 | 2.1 |
32 | Beckley, WV | Small | $83,019 | $38,917 | 2.1 |
33 | DuBois, PA | Small | $98,708 | $46,205 | 2.1 |
34 | Somerset, PA | Small | $109,460 | $50,988 | 2.1 |
35 | Hutchinson, KS | Small | $105,454 | $48,837 | 2.2 |
36 | Lima, OH | Small | $106,192 | $49,063 | 2.2 |
37 | Lumberton, NC | Small | $76,201 | $35,037 | 2.2 |
38 | Mansfield, OH | Small | $108,599 | $49,564 | 2.2 |
39 | Wisconsin Rapids, WI | Small | $121,241 | $55,273 | 2.2 |
40 | New Castle, PA | Small | $105,119 | $47,853 | 2.2 |
41 | Binghamton, NY | Midsize | $117,187 | $53,199 | 2.2 |
42 | Springfield, OH | Small | $110,983 | $49,875 | 2.2 |
43 | Bloomington, IL | Midsize | $145,161 | $64,822 | 2.2 |
44 | St. Joseph, MO | Small | $120,119 | $53,321 | 2.3 |
45 | Scranton, PA | Large | $121,971 | $54,115 | 2.3 |
46 | Jamestown, NY | Small | $102,531 | $45,479 | 2.3 |
47 | Quincy, IL | Small | $123,990 | $54,948 | 2.3 |
48 | Altoona, PA | Small | $113,295 | $49,942 | 2.3 |
49 | Pine Bluff, AR | Small | $84,649 | $37,314 | 2.3 |
50 | Sioux City, IA | Midsize | $139,753 | $61,576 | 2.3 |
Top 50 Least Affordable Cities for Homebuyers
In the table below, our study ranks the top 50 least affordable cities for homebuyers in the United States. The data below includes each city’s weighted average home price, the median household income, as well as the price-to-income ratio. Cities that had a price-to-income ratio above 5.5 were included in the top 50 least affordable cities. This ratio indicates that the average house costs 5.5 times the median household income in the city.
Over one-third (18 out of 50) of the most unaffordable cities in the nation were located in California, and the state also dominated the top ten, taking the top five positions, as well as seven of the top ten positions. San Francisco was the nation’s most unaffordable city, with a price-to-income ratio of 9.7, and other major cities in California were also among the most unaffordable, including San Jose (#3), Los Angeles (#5), and San Diego (#16). Western states also represented 38 of the 50 least affordable cities in the country.
Rank | City | City Size | Weighted Home Price | Median Household Income | Price-to-Income Ratio |
---|---|---|---|---|---|
1 | San Francisco, CA | Large | $1,047,516 | $107,898 | 9.7 |
2 | Santa Cruz, CA | Midsize | $834,681 | $86,941 | 9.6 |
3 | San Jose, CA | Large | $1,117,917 | $124,696 | 9.0 |
4 | San Luis Obispo, CA | Midsize | $618,496 | $71,148 | 8.7 |
5 | Los Angeles, CA | Large | $627,705 | $72,563 | 8.7 |
6 | Glenwood Springs, CO | Small | $650,182 | $76,184 | 8.5 |
7 | Key West, FL | Small | $611,195 | $71,973 | 8.5 |
8 | Kahului, HI | Midsize | $694,359 | $82,917 | 8.4 |
9 | Salinas, CA | Midsize | $588,103 | $70,681 | 8.3 |
10 | Santa Maria, CA | Midsize | $644,601 | $77,472 | 8.3 |
11 | Napa, CA | Small | $679,078 | $87,025 | 7.8 |
12 | Kapaa, HI | Small | $629,565 | $80,921 | 7.8 |
13 | Honolulu, HI | Large | $653,135 | $84,423 | 7.7 |
14 | Santa Rosa, CA | Midsize | $619,824 | $81,395 | 7.6 |
15 | Ukiah, CA | Small | $379,898 | $51,830 | 7.3 |
16 | San Diego, CA | Large | $563,982 | $79,079 | 7.1 |
17 | Truckee, CA | Small | $472,807 | $66,299 | 7.1 |
18 | Hilo, HI | Midsize | $388,783 | $57,571 | 6.8 |
19 | Ventura, CA | Large | $568,786 | $84,566 | 6.7 |
20 | Bozeman, MT | Small | $456,846 | $68,266 | 6.7 |
21 | Oak Harbor, WA | Small | $431,068 | $64,793 | 6.7 |
22 | Barnstable Town, MA | Midsize | $455,945 | $68,902 | 6.6 |
23 | Kalispell, MT | Small | $351,935 | $53,193 | 6.6 |
24 | Bellingham, WA | Midsize | $410,613 | $62,268 | 6.6 |
25 | Boulder, CO | Midsize | $546,622 | $83,755 | 6.5 |
26 | Prescott, AZ | Midsize | $311,265 | $48,148 | 6.5 |
27 | Ocean City, NJ | Small | $433,015 | $67,007 | 6.5 |
28 | Coeur d'Alene, ID | Midsize | $346,184 | $55,236 | 6.3 |
29 | Santa Fe, NM | Midsize | $376,690 | $60,193 | 6.3 |
30 | Grants Pass, OR | Small | $298,092 | $48,315 | 6.2 |
31 | Bend, OR | Midsize | $416,454 | $67,577 | 6.2 |
32 | Eureka, CA | Small | $306,052 | $50,294 | 6.1 |
33 | Seattle, WA | Large | $517,401 | $87,910 | 5.9 |
34 | Eugene, OR | Midsize | $311,261 | $53,172 | 5.9 |
35 | Chico, CA | Midsize | $299,368 | $51,652 | 5.8 |
36 | Missoula, MT | Small | $326,419 | $56,598 | 5.8 |
37 | St. George, UT | Midsize | $322,855 | $56,333 | 5.7 |
38 | Show Low, AZ | Small | $231,103 | $40,463 | 5.7 |
39 | Corvallis, OR | Small | $363,390 | $63,773 | 5.7 |
40 | Fort Collins, CO | Midsize | $404,094 | $71,091 | 5.7 |
41 | Wenatchee, WA | Small | $347,376 | $61,714 | 5.6 |
42 | Medford, OR | Midsize | $318,241 | $56,546 | 5.6 |
43 | Sacramento, CA | Large | $411,137 | $73,142 | 5.6 |
44 | Flagstaff, AZ | Small | $346,648 | $61,843 | 5.6 |
45 | Hilton Head Island, SC | Midsize | $355,304 | $63,723 | 5.6 |
46 | Carson City, NV | Small | $312,375 | $56,160 | 5.6 |
47 | Reno, NV | Midsize | $352,614 | $63,466 | 5.6 |
48 | Riverside, CA | Large | $363,362 | $65,671 | 5.5 |
49 | New York, NY | Large | $434,012 | $78,478 | 5.5 |
50 | Stockton, CA | Large | $353,207 | $64,119 | 5.5 |
Methodology
This study examined housing price data from Zillow’s Home Value Index, as well as household income, household composition, and population data from the U.S. Census Bureau’s American Community Survey. Data was collected at the metropolitan statistical area (MSA) level, which we call “cities” in this study. Data from Zillow was current as of the end of Q2 2020, while data from the American Community Survey was from the survey’s 2018 data release.
For each city in the study, we determined the number of households (including both households that rent or own their residences) living in 1-, 2-, 3-, 4-, and 5-plus bedroom residences. For simplicity, 0-bedroom residences were considered 1-bedroom residences and included in the 1-bedroom total. For each city, we determined the percentage of households living in each of the five possible configurations.
From the Zillow Home Value Index data, we determined the average cost of 1-, 2-, 3-, 4- and 5-plus bedroom homes in each city. To calculate the average weighted home price for each city, we multiplied the percentage of households living in 1-bedroom homes by the average price for 1-bedroom homes in the city and did the same for 2-, 3-, 4-, and 5-plus bedrooms. We summed together these 5-bedroom configurations to calculate the average weighted home price for each city.
To determine housing affordability, we used median household income data from the American Community Survey for each city. We divided the weighted average home price for each city by the city’s median household income to calculate the price-to-income ratio for each city. The higher this ratio, the less affordable a city is for homebuyers.
We divided the cities into three size categories: small, midsize, and large based on the population of the city, with small cities having populations under 150,000, midsize cities having populations from 150,000 to 500,000, and large cities having populations over 500,000. We then ranked the cities by size and affordability to determine the most and least affordable cities of small, midsize, and large sizes.
Sources
1. Zillow Home Value Index (Data Provided by Zillow Group)
2. U.S. Census Bureau, American Community Survey