The rent-versus-buy question has a single honest answer: it depends on where you live, how long you stay, and what you do with the money you don't sink into a down payment. National averages hide the truth. In San Jose, buying wins big for long-term owners. In Memphis, renting and investing the difference beats buying for almost anyone who moves within a decade.

This guide gives you the actual math, city by city, so you can run your own numbers instead of guessing. We use two tools professionals rely on: the price-to-rent ratio and the break-even horizon. Both are simple. Both will change how you think about a mortgage.

The Two Numbers That Decide Everything

The price-to-rent ratio divides a home's median sale price by the annual rent for a similar home. A ratio under 15 favors buying. A ratio above 20 favors renting. Between 15 and 20, it's a coin flip that depends on your timeline.

Take Atlanta. The median home price sits near $400,000, and the median rent for a comparable house runs about $2,000 a month, or $24,000 a year. That's a ratio of 16.7. Buying is reasonable if you plan to stay seven years or more. Move in two years and the transaction costs eat you alive.

Now take San Francisco. Median home prices hover around $1.3 million. Median rent for a similar place runs roughly $4,500 a month, or $54,000 a year. That ratio is 24. Renting is the mathematically superior choice for anyone who isn't certain they'll stay a decade or longer.

The break-even horizon is the second number. It's the point where the money you save by renting, minus what you pay in rent, finally exceeds the money you'd have built in home equity minus what you paid in ownership costs. Closing costs alone typically run 2% to 5% of the purchase price. Selling costs run 6% to 10% once you factor in agent commissions, title fees, and repairs. On a $400,000 home, you're looking at $32,000 to $60,000 in round-trip transaction costs before you've earned a dime of equity.

The break-even horizon in most US metros falls between four and seven years. Move before that, and renting usually wins.

City-by-City: Where Buying Wins and Where It Doesn't

Let's walk through the biggest metros using current median prices and rents. These figures shift, but the ratios hold steady enough to guide decisions.

Buying Favored: Midwest and Sun Belt Cities

Detroit. Median home price around $95,000. Median rent around $1,200 a month, or $14,400 a year. Price-to-rent ratio: 6.6. Buying is a slam dunk if you have stable income and any intention of staying put. You can buy a house for less than two years of rent.

Memphis. Median home price near $180,000. Median rent around $1,400, or $16,800 annually. Ratio: 10.7. Buying wins for almost anyone staying three years or more.

Pittsburgh. Median home price around $210,000. Median rent near $1,500, or $18,000 a year. Ratio: 11.7. Strong buy territory.

St. Louis. Median home price near $230,000. Median rent around $1,600, or $19,200 annually. Ratio: 12. Buying beats renting for most buyers with a five-year horizon.

Atlanta, Dallas, Houston, Phoenix. These Sun Belt metros cluster in the 15 to 18 range. Buying makes sense if you stay five to seven years. Shorter than that, you're gambling on appreciation.

Renting Favored: Coastal and High-Cost Metros

San Jose. Median home price around $1.4 million. Median rent near $4,200 a month, or $50,400 a year. Ratio: 27.8. Renting is the clear financial winner unless you're staying 15 years or more.

San Francisco. Ratio near 24. Same conclusion.

Los Angeles. Median home price around $900,000. Median rent near $3,500, or $42,000 a year. Ratio: 21.4. Renting wins for anyone with a timeline under a decade.

New York City. Median home price near $800,000 (condos and co-ops). Median rent around $3,800, or $45,600 annually. Ratio: 17.5. Buying can work, but only with a long horizon and a willingness to handle co-op boards, maintenance fees, and closing costs that run higher than most cities.

Seattle, Boston, San Diego, Washington DC. All sit in the 20 to 24 range. Renting and investing the difference typically beats buying for anyone who moves within seven to ten years.

Coin Flip: The Middle Ground

Denver, Portland, Austin, Miami, Chicago. These metros land between 16 and 19. The decision comes down to your personal timeline, tax situation, and whether you value the stability of a fixed housing payment.

What the Price-to-Rent Ratio Misses

The ratio is a starting point, not the final answer. Several factors push the math in one direction or the other.

Mortgage rates. At 6.5%, a $400,000 mortgage with 20% down costs about $2,020 a month in principal and interest. Add property taxes, insurance, and maintenance, and you're near $2,900. If rent for the same house is $2,200, you're paying $700 more each month to own. That gap has to be recovered through equity and appreciation.

Tax deductions. The mortgage interest deduction only helps if you itemize. After the standard deduction jumped to $29,200 for married couples filing jointly, most homeowners take the standard deduction anyway. Run the numbers before assuming the tax break matters.

Maintenance. Budget 1% of the home's value annually for repairs and upkeep. On a $400,000 house, that's $4,000 a year, or $333 a month. Renters don't pay this. Landlords do.

Opportunity cost. A $80,000 down payment invested in an S&P 500 index fund has historically returned around 10% annually before inflation. Over ten years, that's roughly $207,000. Home equity in a typical market might grow at 3% to 4% annually. The stock market has beaten home price appreciation in most decades.

Rent increases. Rents rise over time, often 3% to 5% a year in growing cities. A fixed-rate mortgage payment doesn't. This is the strongest argument for buying in markets with rising rents and moderate home prices.

How to Run Your Own Rent vs Buy Math

Forget rules of thumb. Here's a practical process you can complete in an afternoon.

  • Get real numbers. Pull the median sale price and median rent for the specific neighborhood you're considering, not the whole metro. Zillow, Redfin, and the Census Bureau's American Community Survey all publish this data.
  • Calculate your total monthly ownership cost. Add principal, interest, property tax, insurance, HOA fees, and 1% of home value for maintenance. Compare that to rent for a similar home.
  • Estimate your break-even year. Use a rent vs buy calculator from NerdWallet, SmartAsset, or the New York Times. Input your down payment, mortgage rate, expected rent increases, and expected home appreciation. The calculator will tell you the year buying pulls ahead.
  • Be honest about your timeline. If there's any chance you'll move, change jobs, or partner up within five years, renting usually wins. Transaction costs are brutal.
  • Invest the difference. If you rent and save $700 a month versus buying, put that money in a brokerage account. If you spend it, you've lost the math.