home for saleReal estate or stock market: Which is the better investment?Joe Raedle/Getty Images

  • Owning real estate is often the biggest financial commitment someone will make, while investing in stocks is generally a key component of building wealth.
  • Using data from the Federal Housing Finance Agency and Yahoo Finance, we compared how housing prices and stock prices have developed over the last couple decades.
  • In that time, stocks have clearly had higher returns — but there are a few caveats.
  • This is a simplified comparison meant to reflect on past performance. The best decision for your money depends on your individual circumstances and needs.

Home ownership is one of the biggest financial commitments most Americans will make, while investing in stocks is widely seen as a key component of building wealth.

We decided to take a look at how housing prices and stock prices have fared over the years.

Using house price indexes from the Federal Housing Finance Agency and prices for the S&P 500 from Yahoo Finance going back to 1991, we took a look at how the two compared starting at various times in the last 27 years, as well as how housing prices in some of the biggest cities in the US fared against stocks.

In most cases, stocks have outperformed housing prices over the decades, as a nine-year long bull market continues to roar.

It’s worth noting that this is a very simplified comparison. Stocks and houses are of course two very different types of investments with their own special costs and investments. Home ownership comes with property taxes and upkeep costs, but also provides the key service of being a place for someone to live that stocks clearly do not. Stock ownership can involve brokerage and other fees.

Further, stock prices tend to be more volatile over time than housing prices. While it is possible to accrue great riches in the stock market, it’s also quite possible to lose it all. Housing prices have tended to rise more steadily over time, but as the mid-2000s housing bubble and subsequent bust showed, that increase is far from guaranteed.

Given those caveats, here’s how two of the most important financial markets for ordinary Americans have evolved over the last three decades.