Rent vs Buy Calculator

Compare buying a home with renting and investing the difference, year by year. Mortgage, tax, insurance, maintenance, PMI, appreciation, rent increases, buying and selling costs and the return on the down payment are all inputs you can change.

Calculator Finance Updated Oct 13, 2026
Learn how this works
How to Use
  1. Enter how many years you expect to stay, and the yearly return you could earn by investing instead.
  2. Fill in the home: price, down payment, mortgage rate and term, buying costs, selling costs, property tax, maintenance, insurance, HOA dues and the PMI rate if you would put down less than 20%.
  3. Set how fast the home’s value grows and how fast insurance and HOA dues rise.
  4. Enter the monthly rent for a comparable home and the yearly rent increase.
  5. Read who is ahead after your stay and the break-even year in the readouts; the chart and the year-by-year table show both net worths, as if each side cashed out that year.
Input
years
% / yr
Buying
$
%
%
years
% of price
% of value
% of value / yr
% of value / yr
$ / yr
$ / mo
% / yr
% / yr
% / yr
A yearly percentage of the loan, charged until the balance reaches 78% of the price. Use the rate from your loan quote; 0.5% is only a starting figure.
Renting
$ / mo
% / yr
Presets
Net Worth: Buy vs Rent
Ahead after
—
Break-even
—
Net cost of buying
—
Net cost of renting
—

Worked Example

A $400,000 home or $2,200 rent, for 7 years. Buying takes $80,000 down plus $12,000 of buying costs (3%) — $92,000 that the renter invests instead at 6% a year. The $320,000 loan at 6.5% over 30 years is $2,022.62 a month; with 1.1% property tax ($366.67), 1% maintenance ($333.33) and $1,800 insurance ($150.00) the owner pays $2,872.62 a month in year 1, so the renter also invests the $672.62 difference each month. After 7 years at 3% growth the home is worth $491,950; less 6% selling costs and the $289,332 loan balance, the buyer has $173,101. The renter’s investments have grown to $195,757, so renting is $22,656 ahead. Buying catches up in year 13.

Same home, 10% down. The $360,000 loan is $2,275.44 a month, and PMI at 0.5% adds $150.00 a month until the balance reaches 78% of the price after 109 payments. Renting is $40,357 ahead after 7 years, and break-even moves out to year 18.

The common mistake: forgetting the cost of buying and selling. Leave out the 3% buying costs and 6% selling costs and the same 7-year comparison flips to buying $24,904 ahead, with buying “winning” from year 1. The real answer is renting $22,656 ahead. The $12,000 of buying costs, what that money would have earned, and $29,517 of selling costs swing the result by $47,560 — which is why a short stay usually favours renting.

Show Work

Enter values and calculate to see the step-by-step breakdown.

Formulas

Mortgage payment
M = L·r(1+r)ⁿ ÷ ((1+r)ⁿ − 1)
L = price − down payment, r = rate ÷ 12, n = years × 12
Owner’s monthly cost
Own = M + tax + maintenance + insurance + HOA + PMI
Tax and maintenance are a share of the current value
Home value
Vₜ = price × (1 + g)ᵗ
g = yearly appreciation
Buyer’s net worth
NWᵦ = Vₜ × (1 − selling %) − loan balance + investments
What the buyer has after selling
Renter’s investments
Iₖ = Iₖ₋₁ × (1 + j) + max(0, Own − rent)
Starts at the down payment + buying costs; j = (1 + return)^(1/12) − 1
Net cost
Cost = cash paid out − net worth at the end
Both sides pay out the same cash, so the lower net cost wins

Why Rent vs Buy Is an Investment Question

A home is two things at once: somewhere to live and an investment. Rent pays for the first. An owner pays for it too, through interest, property tax, insurance and upkeep — money that, like rent, is gone — and in return owns an asset that may rise in value. The honest comparison is therefore not rent against the mortgage payment but rent against those unrecoverable costs of owning, plus what the owner’s down payment could have earned somewhere else. Economists call that last item the opportunity cost of capital.

That is why this calculator lets the renter invest the down payment and every month’s difference. A buyer builds wealth through principal repayment and appreciation; a renter builds it through the investment account. Which grows faster depends mostly on two gaps: appreciation against the investment return, and rent against the owner’s unrecoverable costs. The time you stay matters because buying and selling costs are paid once — spread over three years they are heavy, spread over fifteen they fade.

A common shortcut is the price-to-rent ratio: the price divided by a year’s rent for a similar home. The default example is $400,000 ÷ $26,400 = 15.2; the cheaper-home preset is $250,000 ÷ $22,800 = 11.0 and buying wins quickly; the expensive-city preset is $800,000 ÷ $38,400 = 20.8 and it never does. The ratio is a quick screen; the year-by-year model is the answer.

About This Tool

This calculator follows a buyer and a renter month by month for up to 40 years. Both spend the same cash: the renter invests the buyer’s up-front costs, and whichever side has the smaller monthly bill invests the difference. Each year it works out what each would have after cashing out — the buyer selling the home and repaying the loan, the renter holding the investments — and reports who is ahead after your stay, the break-even year, and the net cost of each choice.

Every assumption is an input: rates, costs, growth, PMI, the loan term and the investment return. Everything runs in your browser; nothing you enter is sent anywhere.

Estimates for planning and education — not financial, tax or legal advice.

Related tools: Mortgage Calculator, House Affordability Calculator, and Rental Property Calculator.

Frequently Asked Questions

How does the calculator compare renting with buying?

Both sides spend the same money. The renter invests what the buyer spends up front — the down payment plus buying costs — and, each month, whichever side has the smaller bill invests the difference. At the end each side cashes out: the buyer sells (minus selling costs and the loan balance), the renter has the investments. For a $400,000 home with 20% down at 6.5% and $2,200 rent, the buyer is worth $173,101 after 7 years and the renter $195,757.

What is the break-even year?

The first year in which the buyer’s net worth catches up with the renter’s. Buying starts behind because of buying costs at the start and selling costs at the end, then gains through loan paydown and appreciation. In the default example that happens in year 13: renting is $22,656 ahead after 7 years, buying is $17,971 ahead after 15.

Why is comparing rent with the mortgage payment misleading?

The mortgage is only part of what an owner pays. On the $400,000 home, principal and interest are $2,022.62 — less than the $2,200 rent — but property tax ($366.67), maintenance ($333.33) and insurance ($150.00) bring the true monthly cost to $2,872.62. The renter invests the $672.62 difference every month.

Which assumptions matter most?

The gap between the investment return and the home’s appreciation, and how long you stay. In the default example, cutting the investment return from 6% to 4% shrinks renting’s 7-year lead from $22,656 to $1,206; raising appreciation from 3% to 5% turns it into a $39,427 lead for buying. A mortgage rate of 5.5% instead of 6.5% puts buying $3,747 ahead.

Are taxes included?

No income-tax effects are modelled: not the mortgage-interest or property-tax deduction, not tax on the renter’s investment gains, and not the exclusion of gain on selling a main home. Property tax itself is included as a cost. If you itemize, or invest in a taxable account, adjust the investment return to reflect what you would keep.

How do I use the Rent vs Buy Calculator?

Simply type your numbers and read the result, which refreshes the instant you change something. There is nothing to submit and nothing to wait for.

Does it cost anything or need an account?

No. The tool is completely free, there is no account to create, and it keeps working offline after the page first loads.

Is anything I type uploaded?

No. The tool works entirely on your device, so the values you enter never leave your browser.

Common Use Cases

Deciding whether to buy before a move

Expecting to relocate in 3 years? On a $400,000 home against $2,200 rent, renting comes out $32,096 ahead — buying costs and selling costs dominate a short stay.

Planning to stay long term

Stay 15 years in the same home and buying is $17,971 ahead; stay 30 and the gap grows to $252,674.

A low price-to-rent market

A $250,000 home where similar places rent for $1,900 overtakes renting in year 3 and is $46,533 ahead after 7 years.

An expensive city

An $800,000 home that would rent for $3,200 never catches up within 40 years at 3% appreciation and a 6% investment return; after 10 years renting is $188,155 ahead.

Buying with 10% down

Putting $40,000 down on $400,000 adds $150 a month of PMI at 0.5% until month 109, and pushes the break-even year from 13 to 18.

Last updated: