Skip to content
Investment Math
Investment Math

Currency and number style

Only changes how amounts look. There is no currency conversion.

Real Estate vs Equity Comparator explained: formula, worked example and common mistakes

Would a house or the stock market have earned more? Compare property and equity investment returns side by side, with all costs included. Free, no sign-up, your numbers stay in your browser.

Updated

What is the real estate vs equity comparison?

The real estate vs equity comparison is the most common asset allocation decision individual investors face — whether to tie up capital in property (either as a primary residence or as an investment property) or invest it in stocks (typically via index funds)? Both have passionate advocates, and the right answer depends on local market conditions, tax treatment, leverage, and personal risk tolerance. The comparator does the math so you can decide based on numbers rather than tribal affiliation.

The reason this comparison is harder than it looks is that real estate and equities have fundamentally different cost structures, financing options, tax treatments, and return patterns. Naive comparisons — “stocks return 10%, real estate returns 4%” — ignore crucial factors:

Leverage: most property is bought with a loan, so the buyer’s own money is a fraction of the price. A small rise in the price of the property is a much larger rise on the cash actually put in — and a small fall works the same way in reverse. Stocks are typically purchased with little or no leverage (margin loans are expensive and risky). Leverage amplifies both gains and losses, but historically real estate leverage has been a major driver of returns.

Cash flows: Investment real estate generates rental income; primary residence generates imputed rent (the value of living there rent-free). Stocks generate dividends. Both have ongoing costs: property has maintenance, property tax, insurance, and management fees; stocks have only the expense ratio.

Tax treatment: this is where the comparison is most country-specific. A home you live in, a property you let out and a holding of shares are commonly taxed under three different sets of rules, with different reliefs, different holding periods and different treatment of the costs. Nothing about that is stored here interest is fully deductible against rental income). Property tax is deductible up to 10,000 combined with state income tax. These tax treatments significantly affect net returns.

Liquidity: Stocks can be sold in seconds at low transaction cost. Real estate takes 30-90 days to sell, with closing costs of 6-10% of the sale price. Illiquidity is a real cost — you can’t easily access your capital in an emergency.

Volatility: share prices move a great deal within a single year. House prices move less, and far less visibly, but the cost of trading property makes acting on the moves impractical anyway. Real estate’s lower volatility is partly real (price discovery is slower) and partly illusory (you don’t see daily price quotes for your house).

The comparator brings all these factors together: the leveraged appreciation on real estate, the rental income (or imputed rent), the mortgage interest cost, the property taxes and maintenance, the transaction costs, and the tax treatment — versus the simpler stock return (capital appreciation + dividends - expense ratio).

Worked example: 500,000 property purchased with 100,000 down (20% down payment) and a 400,000 mortgage at 6.5% for 30 years. Property appreciates 4% per year. Stock alternative: 100,000 invested in index funds returning 10% per year. Compare over 30 years.

Real estate outcome (rough numbers):

  • Property value after 30 years: 500,000 × (1.04)^30 = 1,621,000
  • Mortgage paid off (assuming 30-year amortization)
  • Equity: 1,621,000 (no mortgage remaining)
  • Plus imputed rent / rental income over 30 years, less maintenance, property tax, insurance
  • Total return on 100,000 initial investment: roughly 1.5-1.8M (15-18× over 30 years)

Stock outcome (rough numbers):

  • 100,000 invested at 10% for 30 years = 1,745,000
  • Less taxes on dividends and capital gains: ~300,000
  • Net: roughly 1.4-1.5M (14-15× over 30 years)

In this example, real estate slightly outperforms stocks, primarily due to leverage (the 5× leverage on the 100,000 down payment amplifies the 4% property appreciation to nearly match the 10% stock return). But the comparison is highly sensitive to assumptions — change the property appreciation rate to 2% and stocks win easily; change the mortgage rate to 3% (as in the 2020-2021 period) and real estate wins by a wider margin.

The comparator lets you adjust all these assumptions and see which asset class wins in your specific scenario.

The real estate vs equity formulas

Real estate return formula:

Real estate total return = Property appreciation + Net rental income - Total costs

Where:

  • Property appreciation = Property value × (1 + appreciation_rate)^years - Initial property value
  • Net rental income = (Rent × 12 - vacancy_rate × rent × 12) × (1 - management_fee_rate) × years - maintenance_costs × years - property_tax × years - insurance × years
  • Total costs = Down_payment + Mortgage payments × years × 12 - Mortgage principal remaining + Transaction costs (buying + selling) + Renovation costs

For a primary residence, “net rental income” is replaced by “imputed rent” — the value of living in the home without paying rent. This is harder to calculate but can be approximated as the rent you would have paid for equivalent housing.

Stock return formula:

Stock total return = Investment × (1 + return_rate - expense_ratio)^years - Investment - Taxes

Where:

  • Return rate = capital appreciation + dividend yield
  • Expense ratio = fund fee (typically 0.05-0.50% for index funds)
  • Taxes = (capital gains + dividends) × tax_rate (depending on account type)

Leverage calculation for real estate:

Leverage ratio = Property value / Down payment

For an 80% mortgage, leverage = 1 / 0.20 = 5×. The investor’s cash return is 5× the property’s appreciation rate (before costs and interest).

Leveraged return on real estate ≈ (Appreciation_rate × Leverage) - (Mortgage_rate × (Leverage - 1)) - Other costs

Worked example: 4% appreciation, 5× leverage, 6.5% mortgage rate, 2% other costs (property tax + maintenance + insurance).

Leveraged return ≈ (4% × 5) - (6.5% × 4) - 2% = 20% - 26% - 2% = -8%

So with these assumptions, real estate generates a negative leveraged return — the mortgage interest exceeds the appreciation. This is why comparing real estate to stocks requires careful assumption-setting.

If we change mortgage rate to 3% (2020 rates): Leveraged return ≈ (4% × 5) - (3% × 4) - 2% = 20% - 12% - 2% = 6%

Now real estate generates a 6% leveraged return, still less than stocks at 10%. But add rental income (or imputed rent) of 4% net (after expenses), and real estate becomes:

Total real estate return = 6% (leveraged appreciation) + 4% (net rental yield) = 10%

Comparable to stocks at 10%, but with very different risk profiles (real estate has mortgage default risk and illiquidity risk; stocks have volatility risk).

The calculator runs the full multi-year projection with all these factors. Open the calculator and enter your scenario.

When to use a real estate vs equity comparator (and when not to)

Use this calculator when:

  • You’re deciding whether to buy a primary residence or rent and invest the difference.
  • You’re deciding whether to buy an investment property or invest in index funds.
  • You want to compare a specific property you’re considering to a stock investment.
  • You’re evaluating whether your current property is a better or worse investment than selling and investing the proceeds.
  • You want to understand the impact of leverage on real estate returns.

When NOT to use this calculator:

  • If you’re comparing two specific properties (not property vs stocks), use a property-specific investment calculator.
  • If you’re already committed to buying a home for non-financial reasons (schools, lifestyle, stability), don’t run this calculation — the financial comparison may discourage you from a decision you’re making for good non-financial reasons.
  • If you’re a real estate professional with deep market knowledge, you may have proprietary insights that this generic calculator doesn’t capture.
  • If you want a precise tax calculation, consult a tax professional — the calculator approximates tax effects but doesn’t capture every detail.

Common mistakes people make

1. Forgetting transaction costs. Buying and then selling a property costs a large slice of its price once purchase taxes, legal work and agents are counted. The property has to rise by that much before the owner is back to level, which is years of ordinary appreciation. Put the real figures in.

2. Ignoring maintenance and repairs. A building costs money every year whether or not anything goes wrong, and more when it does. Older properties cost more. First-time buyers routinely leave this out of the comparison entirely.

3. Overestimating rental income. Properties sit empty between tenants, some tenants do not pay, and management costs a share of the rent unless you do it yourself. The yield that reaches your account is materially below the gross figure in the advertisement.

4. Forgetting recurring property taxes and insurance. Local property taxes vary enormously from place to place, and insurance is an annual cost on top. Neither is dramatic in any one year, and both compound against the return over a holding period measured in decades.

5. Underestimating mortgage interest. On a 30-year mortgage at 6.5%, you pay roughly 117% of the loan amount in interest over the life of the loan. A 400,000 mortgage costs 470,000 in interest. This is a massive cost that’s easy to overlook when focusing on the monthly payment.

6. Comparing gross returns without normalizing for risk. A 10% real estate return achieved with 5× leverage is far riskier than a 10% stock return achieved with no leverage. Always adjust for risk — leveraged real estate can produce catastrophic losses in a downturn, similar to margin investing in stocks.

Frequently asked questions

Is real estate or stocks a better investment?

It depends entirely on the case in front of you. Shares have generally grown faster than houses, but houses are usually bought with borrowed money, and leverage multiplies a smaller gain into a larger one — along with the losses. Your loan rate, your local market, your horizon and what you could tolerate going wrong decide it, not a historical average.

How does leverage affect real estate returns?

Leverage multiplies your return on cash invested. With 20% down (5× leverage), a 4% property appreciation equals a 20% return on your cash — before mortgage interest and other costs. But leverage also multiplies losses — a 20% property decline wipes out your entire equity.

Buy, or rent and invest the difference?

The classic question. Buying makes sense if you'll stay 7+ years (to amortize transaction costs) and if your local property market is reasonably priced. Renting and investing the down payment often wins in expensive markets (San Francisco, New York) where price-to-rent ratios are very high. This calculator lets you compare both scenarios.

What is the price-to-rent ratio?

Price-to-rent ratio = Property value / Annual rent. Below 15: buying is typically better. 15-20: roughly equal. Above 20: renting is typically better. Above 30: renting is strongly preferred. Manhattan and San Francisco often have ratios above 30.

Does real estate provide tax benefits?

Usually, and often substantially — many countries treat a home you live in differently from an investment property, and differently again from shares. Reliefs, deferrals and allowances of that kind can move the comparison a long way. None of those rules are stored here; look up what applies where you live and put the resulting figures in.

How do transaction costs affect real estate returns?

Far more than buying shares. Taxes on purchase, legal work, agents' fees and the costs of selling again add up to a large slice of the price, and the property has to appreciate by that much before you are level. It is the main reason a short holding period rarely works out.

What is imputed rent?

Imputed rent is the value of living in a home you own, without paying rent. If equivalent rental housing would cost 3,000/month, owning your home generates 36,000/year in imputed rent — a real economic benefit that's often overlooked when comparing real estate to stocks.

This tool shows math, not advice.

Cite this page

Copy this line into a reference list, a report or a spreadsheet note.

Investment Math Calculator. “Real Estate vs Equity Comparator”. Updated 2026-10-27. https://investmentmathcalculator.com/guides/real-estate-vs-equity-calculator/

Disclaimer: For education only. These calculators show arithmetic and hypothetical scenarios. They are not investment, tax or legal advice and do not recommend any security or product. Consult a licensed adviser in your country before acting.