Skip to content
UniKit

Rent vs buy calculator

Simulate buying against renting-and-investing year by year: monthly amortisation, maintenance, house-price growth, rent growth, investment return (opportunity cost), selling costs and inflation are all editable, and the output compares net worth, the gap, the break-even year and the net present value of buying.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Buying and renting assumptions

All money is handled as integer cents; the mortgage amortises monthly and settles at year end, while rent and maintenance step once a year and the cash-flow difference is invested by the renter at year end.

Comparison

Monthly payment10,269.36
Down payment900,000.00
Loan principal2,100,000.00
One-off buying costs90,000.00
Total mortgage payments1,848,484.80
of which interest1,596,970.08
Total maintenance557,967.42
Total rent1,562,308.77
Net worth, buying3,210,720.00
Net worth, renting2,318,182.54
Net worth gap (buy − rent)892,537.46
Break-even year4 years
Net present value of buying151,200.55
Net present value (inflation-adjusted)674,996.23

Year by year

Buying net worth = price × (1 − selling costs) − remaining loan; renting net worth = the investment portfolio. The year the gap turns positive is the break-even point.

YearHome valueLoan balanceBuying costRentNet worth, buyNet worth, rentGap
13,090,000.002,064,285.37153,232.3284,000.00963,914.631,079,032.32-115,117.69
23,182,700.002,027,041.52154,132.3286,520.001,092,004.481,168,225.29-76,220.81
33,278,181.001,988,202.96155,059.3289,115.601,224,414.421,257,533.52-33,119.10
43,376,526.431,947,701.43156,014.1391,789.071,361,294.471,346,909.2514,385.22
53,477,822.221,905,465.71156,997.5894,542.741,502,800.071,436,302.2866,497.79
63,582,156.891,861,421.51158,010.5497,379.021,649,092.241,525,659.85123,432.39
73,689,621.601,815,491.44159,053.89100,300.391,800,337.731,614,926.55185,411.18
83,800,310.241,767,594.73160,128.54103,309.401,956,709.311,704,044.22252,665.09
93,914,319.551,717,647.16161,235.42106,408.692,118,386.001,792,951.83325,434.17
104,031,749.141,665,560.95162,375.52109,600.952,285,553.211,881,585.44403,967.77
114,152,701.611,611,244.51163,549.81112,888.982,458,403.071,969,877.98488,525.09
124,277,282.661,554,602.35164,759.34116,275.652,637,134.662,057,759.23579,375.43
134,405,601.141,495,534.88166,005.15119,763.912,821,954.242,145,155.65676,798.59
144,537,769.171,433,938.27167,288.33123,356.833,013,075.522,231,990.26781,085.26
154,673,902.251,369,704.21168,610.01127,057.543,210,720.002,318,182.54892,537.46

What this tool does

  • Deciding whether to rent or buy: a 3,000,000 home with 30% down, a 30-year 4.2% mortgage and 7,000 rent — assuming 3% annual price growth and a 2% investment return, buying is about 892,000 ahead after 15 years and breaks even in year 4.
  • See what investing the money instead would do: raise the investment return from 2% to 8% and the conclusion often flips, because the opportunity cost of a 900,000 down payment compounds fast.
  • Run a sensitivity check: set price growth to 0% and see whether break-even still falls inside your horizon, which tells you how much house-price risk you can carry.
  • Quantify the one-off costs: put 3% in for taxes, agency fees and fit-out, then try 6%, and watch how many years the break-even point moves back.

Example

Input

Home 3,000,000, 30% down, 4.2% mortgage over 30 years, 3% one-off costs, 1% maintenance, 3% price growth, 7,000 rent growing 3%, 2% investment return, 2% selling costs, 2% inflation, 4% discount rate, held 15 years

Output

Down payment 900,000.00, loan 2,100,000.00, monthly payment 10,269.36; total payments 1,848,484.80 (including 1,596,970.08 of interest), maintenance 557,967.42, rent 1,562,308.77; after 15 years the buyer is worth 3,210,720.00 against 2,318,182.54 for the renter, a gap of 892,537.46; break-even in year 4; NPV 151,200.55 (674,996.23 after inflation)

In year 1 buying costs 153,232.32 (123,232.32 of payments plus 30,000.00 of maintenance) while renting costs only 84,000, so the gap starts negative; as the loan amortises and prices rise, buying overtakes in year 4.

Frequently asked questions

Why can’t I just compare total spending?

Because the buyer’s money turns into home equity while the renter’s is spent. The tool compares the buyer’s year-end equity (net of selling costs and the remaining loan) with the renter’s investment portfolio, which is the like-for-like comparison.

Why does the investment return change the answer?

The renter invests the down payment and each year’s cash-flow difference, so a higher return compounds that money faster. When the investment return clearly beats price growth plus the leverage effect of the mortgage, renting pulls ahead — in the example, moving the return from 2% to 8% flips the conclusion.

How is the break-even year calculated?

The mortgage amortises monthly while maintenance and rent settle yearly, and each year compares buying net worth minus renting net worth. The first year the gap reaches zero or above is the break-even point; sell before it and renting would usually have been better.

How should I read the net present value row?

It discounts the incremental cash flows of buying — the down payment and one-off costs, the extra spending each year, and the equity recovered on sale — back to today at your discount rate. A positive NPV means buying wins at that rate; a higher rate makes future equity worth less and buying less attractive.

Why are mortgage interest and payments listed separately?

Only part of a mortgage payment is a cost. Interest is money gone, while principal repayment converts cash into home equity. Splitting them shows the difference between the monthly cash pressure and the real cost of ownership.

Keywords:rent vs buybuy or rentmortgageopportunity costbreak even租房还是买房租房对比购房房贷机会成本盈亏平衡

Related tools