Home › Templates › Rent vs buy spreadsheet

Rent vs Buy Spreadsheet

A free rent vs buy calculator for Excel and Google Sheets. Enter the home price, mortgage, running costs and the rent for a similar home, and it shows, year by year for up to 30 years, what you would own if you bought (and then sold) versus rented and invested the difference, plus the break-even year, the total cost of each choice and a chart.

Download Excel template (.xlsx) 52 KB · no macros · Excel 2016+ and Google Sheets · v1.0, 5 Nov 2026 · US-focused

Use it in Google Sheets: choose File → Import → Upload in Sheets and pick the .xlsx, or upload it to Google Drive and open it with Google Sheets. No sign-up, no add-in, no paid tier: every formula is in the free file.

Preview: the Example tab. The household, the $400,000 home, the $2,200 rent and every other input are fictional.
$3,287 vs $2,215year-1 monthly cash cost: owner vs renter
$194,595owner's net worth after 10 years, if sold
$236,366renter's net worth after 10 years
Year 20break-even (buying first ahead), outside the 10-year horizon
YearOwner’s cash costRenter’s cash costLoan balanceHome valueOwner’s net worth (if sold)Renter’s net worthBuying − renting
0——$360,000$400,000$16,000$52,000−$36,000
1$39,449$26,580$356,516$412,000$30,764$67,989−$37,225
2$39,784$27,377$352,770$424,360$46,128$84,475−$38,347
3$40,131$28,199$348,744$437,091$62,121$101,475−$39,354
4$40,491$29,045$344,416$450,204$78,775$119,010−$40,234
5$40,865$29,916$339,764$463,710$96,123$137,099−$40,976
6$41,253$30,814$334,762$477,621$114,201$155,765−$41,564
7$41,657$31,738$329,386$491,950$133,046$175,030−$41,983
8$42,076$32,690$323,607$506,708$152,698$194,918−$42,219
9$42,512$33,671$317,395$521,909$173,200$215,454−$42,254
10$42,665$34,681$310,717$537,567$194,595$236,366−$41,770
$0$100,000$200,000$300,000$400,000$500,000$600,000$700,000$800,000$900,000$1,000,000051015202530horizon: 10 yearsbreak-even: year 20Year

Owner's net worth if soldRenter's net worth (investments)

What's inside the spreadsheet

TabWhat you typeWhat it calculates
Start hereNothingSteps, the formulas in plain words, colour key, limits, disclaimer
CalculatorHome price, down payment %, mortgage rate and term, PMI %, property tax %, homeowners insurance, HOA dues, maintenance %, closing costs to buy and sell, home price growth, rent, rent increase, renter's insurance, investment return, cost inflation, years to compare (1–30); optional tax estimate: Yes/No, filing status, marginal rate, state and local tax, other itemized deductionsAn input check; loan, monthly payment, months of PMI; year-1 monthly cost each side; net worth each side at your horizon and the gap; break-even year; total cash paid, net sale proceeds and net cost of each choice; total tax savings and interest; a 31-row yearly table (year 0 to 30); two native charts (net worth, yearly cash cost)
ExampleAlready filled with fictional numbers (change any of them)The same calculator, so you can see a full result before entering your own
TaxNothing (editable if the law changes)2026 standard deduction by filing status, SALT cap and mortgage debt limit, with IRS sources

How to use it

  1. Open Calculator. Fill the bold yellow inputs: home price, down payment %, mortgage rate, term, monthly rent for a similar home, and how many years you expect to stay.
  2. Fill the other yellow cells you know. Ask a lender for PMI and closing cost estimates, and check your county's property tax rate. A blank optional cell counts as zero, so leave nothing blank that you actually pay.
  3. Set your assumptions: home price growth, rent increase, investment return and cost inflation. These drive the answer most, so try a low and a high value.
  4. Optional: set Include the tax estimate? to Yes, pick a filing status and enter your marginal federal rate and the state and local income tax you pay.
  5. Check that Status (F5) says OK, then read the results in column F and the two charts. The break-even row turns green in the yearly table; rows after your horizon are greyed out.

For current rates, compare with Freddie Mac's Primary Mortgage Market Survey: the 30-year fixed rate averaged 7.24% and the 15-year 6.60% in the week to 29 October 2026. Your own quote depends on credit, down payment and points.

The formulas, explained

Mortgage and PMI

The monthly payment uses the standard annuity formula, payment = loan × i ÷ (1 − (1 + i)−N), where i is the annual rate ÷ 12 and N the number of payments. The balance after k payments is loan × (1 + i)k − payment × ((1 + i)k − 1) ÷ i, so each year's principal is the drop in the balance and the interest is the rest of the payments. PMI is charged only when the down payment is under 20%, and stops when the scheduled balance reaches 78% of the price. The CFPB explains that the servicer "must automatically terminate PMI on the date when your principal balance is scheduled to reach 78 percent" of the original value, and that you can ask to cancel it at 80%.

Costs, investments and net worth

Property tax and maintenance are a percentage of the home's value at the start of each year. Insurance and HOA dues grow with the cost inflation you enter; rent grows with the rent increase. On day one the owner pays the down payment and closing costs, and the renter invests the same amount. Each year, whoever pays less invests the difference at the end of the year. The owner's net worth assumes they sell: home value × (1 − selling costs) − loan balance + their investments.

Optional tax estimate

Owning only saves federal tax when your itemized deductions with the home beat the standard deduction. The sheet compares MAX(standard deduction, itemized with the home) with MAX(standard deduction, itemized without it) and multiplies the gap by your marginal rate. Itemized with the home = deductible mortgage interest + MIN(SALT cap, state and local tax + property tax) + other deductions. The 2026 figures come from the IRS: a standard deduction of $16,100 single, $32,200 married filing jointly and $24,150 head of household; a SALT limit of $40,400 ($20,200 married filing separately); and interest on up to $750,000 of home acquisition debt ($375,000 married filing separately).

Exact formulas from the Calculator tab, row 37 being year 1. In the file each one is also wrapped in IF($F$5="OK", …, "") so the sheet stays blank until the inputs are valid.

FieldFormula
Monthly principal and interest (F8)=IF($F$27=0,$F$7/$F$28,$F$7*$F$27/(1-(1+$F$27)^(-$F$28)))
PMI months (F29)=IF(OR(N($B$9)=0,$F$7<=0.8*$B$5),0,MIN($F$28,ROUNDUP(IF($F$27=0,($F$7-0.78*$B$5)/$F$8,LN(($F$8-$F$27*0.78*$B$5)/($F$8-$F$27*$F$7))/LN(1+$F$27))-0.000000001,0)))
Mortgage balance, end of year (C37)=IF($F$27=0,MAX(0,$F$7-$F$8*B37),MAX(0,$F$7*(1+$F$27)^B37-$F$8*((1+$F$27)^B37-1)/$F$27))
Interest paid in the year (E37)=$F$8*(B37-B36)-D37
PMI in the year (F37)=IF($F$7>0.8*$B$5,N($B$9)*$F$7/12*MAX(0,MIN(12*A37,$F$29)-12*(A37-1)),0)
Property tax (G37)=N($B$10)*$B$5*(1+N($B$16))^(A37-1)
Deductible mortgage interest (W37)=IF($B$24<>"Yes",0,IF(C36<=$B$31,E37,E37*$B$31/C36))
Itemized with the home (X37)=IF($B$24<>"Yes",0,W37+MIN($B$30,N($B$27)+G37)+N($B$28))
Tax savings from owning (K37)=IF($B$24<>"Yes",0,$B$26*MAX(0,MAX($B$29,X37)-MAX($B$29,Y37)))
Owner's cash cost (L37)=$F$8*(B37-B36)+SUM(F37:J37)-K37
Renter's investments (R37)=R36*(1+N($B$20))+MAX(0,L37-O37)
Owner's net worth if sold (S37)=P37*(1-N($B$15))-C37+Q37
Break-even year (F17)=IF(COUNT($V$37:$V$66)=0,"Not within "&$B$22&IF($B$22=1," year"," years"),MIN($V$37:$V$66))
Total cash paid by the owner (F18)=$F$6+$B$5*N($B$14)+SUMIFS($L$37:$L$66,$A$37:$A$66,"<="&$B$22)

Worked example from the sample data

The Example tab buys a fictional $400,000 home with 10% down ($40,000) and a 30-year loan of $360,000 at 7.25%, close to the latest Freddie Mac weekly average. The renter pays $2,200 a month for a similar home. Other inputs: PMI 0.5% of the loan a year, property tax 1.1%, maintenance 1%, insurance $1,800 a year, closing costs 3% to buy and 6% to sell, home prices and rent both +3% a year, investments 6% a year, married filing jointly at a 22% marginal rate with $8,000 of state income tax and $3,000 of other deductions.

What moves the answer

The same example with one input changed at a time (computed with the Python model that is checked against the spreadsheet cell by cell). Small changes in growth rates move the break-even year by years, so test a range rather than trusting one guess.

One change from the exampleBreak-evenBuying − renting after 10 years
Fictional example as shippedyear 20−$41,770
Home prices grow 2% a year instead of 3%not within 30 years−$84,272
Home prices grow 4% a year instead of 3%year 10$4,788
Rent rises 4% a year instead of 3%year 14−$25,074
Investments earn 4% instead of 6%year 12−$11,881
Investments earn 8% instead of 6%not within 30 years−$76,237
Mortgage rate 6.25% instead of 7.25%year 11−$5,139
Rent $2,600 a month instead of $2,200year 7$29,739
Selling costs 3% instead of 6%year 17−$25,643
No tax estimateyear 29−$66,368

For context on recent trends, not forecasts: the FHFA House Price Index rose 2.4% from August 2025 to August 2026, and the BLS consumer price index for rent of primary residence was 2.8% higher in September 2026 than a year earlier (index 450.402 vs 438.212, not seasonally adjusted, via FRED). Your local market can differ a lot from the national figure.

Common mistakes

Limits

FAQ

Is it better to rent or buy a house?

It depends on the numbers for your home and how long you stay. Buying has large one-off costs: closing costs going in and selling costs going out. Those take years of home price growth and loan paydown to recover. Renting wins over short stays; buying tends to catch up over longer ones. The spreadsheet shows the year it flips on your inputs. In the fictional example, renting is ahead for the first 19 years and buying is ahead from year 20.

How do you calculate rent vs buy in Excel?

Track two households year by year. The owner pays the mortgage, PMI, property tax, insurance, HOA and upkeep, and owns a home that may grow in value. The renter pays rent and renter's insurance and invests the down payment and buying costs instead. Whoever pays less in a year invests the difference. Compare the owner's net worth if they sold (home value minus selling costs minus the loan balance, plus investments) with the renter's investments. This template does it with ordinary formulas for 30 years.

What is the break-even point for buying vs renting?

It is the first year in which the owner's net worth, after paying the costs of selling, is at least as large as the renter's. Before that year, renting and investing leaves you with more. If you expect to move before the break-even year, renting comes out ahead on the inputs you entered.

Does the spreadsheet include the mortgage interest deduction?

Yes, as an optional and simplified federal estimate. It counts only the extra deductions you get above the standard deduction, which for 2026 is $32,200 for married couples filing jointly, $16,100 for single filers and $24,150 for heads of household (IRS). It applies the 2026 SALT cap of $40,400 ($20,200 if married filing separately) and the $750,000 mortgage debt limit. Many buyers take the standard deduction anyway, so the tax savings are often small or zero.

When does PMI stop?

The CFPB says you can ask to cancel PMI when the balance is scheduled to fall to 80% of the home's original value, and the servicer must generally end it automatically when the balance is scheduled to reach 78%, if you are current on payments. The spreadsheet uses the 78% scheduled date. Paying extra or a higher appraisal can end it sooner; FHA mortgage insurance follows different rules.

Does this rent vs buy spreadsheet work in Google Sheets?

Yes. In Google Sheets choose File → Import → Upload and pick the .xlsx, or upload it to Google Drive and open it with Google Sheets. It uses only IF, AND, OR, NOT, MIN, MAX, SUM, SUMIFS, COUNT, INDEX, MATCH, IFERROR, ISNA, ISNUMBER, INT, N, LN, ROUNDUP, which exist in Excel 2016 and later, Google Sheets and LibreOffice. No macros.

Related tools and templates

Educational template only, not investment, tax, legal or mortgage advice. Example data is fictional: the household, home price, rent, rates, costs and tax details are made up to show the formulas and are not a recommendation or a forecast. Tax figures are from the IRS, PMI rules from the CFPB, mortgage rates from Freddie Mac, house prices from the FHFA and rents from the BLS (via FRED), all retrieved on 5 November 2026. Laws, rates and prices change; check current figures before deciding.