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.
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.
| Year | Owner’s cash cost | Renter’s cash cost | Loan balance | Home value | Owner’s net worth (if sold) | Renter’s net worth | Buying − 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 |
Owner's net worth if soldRenter's net worth (investments)
What's inside the spreadsheet
| Tab | What you type | What it calculates |
|---|---|---|
| Start here | Nothing | Steps, the formulas in plain words, colour key, limits, disclaimer |
| Calculator | Home 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 deductions | An 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) |
| Example | Already filled with fictional numbers (change any of them) | The same calculator, so you can see a full result before entering your own |
| Tax | Nothing (editable if the law changes) | 2026 standard deduction by filing status, SALT cap and mortgage debt limit, with IRS sources |
How to use it
- 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.
- 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.
- 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.
- 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.
- 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.
| Field | Formula |
|---|---|
| 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.
- Monthly payment: $2,455.83 for principal and interest. PMI of $150 a month runs for 118 months, until the scheduled balance falls to 78% of $400,000 ($312,000).
- Year-1 cash cost: the owner pays $39,449 ($3,287 a month) after $2,021 of tax savings; the renter pays $26,580 ($2,215 a month). The renter invests the $12,869 difference.
- Tax savings in year 1: itemized deductions with the home are $41,386 (interest $25,986 + state and property tax $12,400 + $3,000). Without the home they would be $11,000, below the $32,200 standard deduction. Savings = 22% × ($41,386 − $32,200) = $2,021.
- After 10 years: the home is worth $537,567 and the loan balance is $310,717. After 6% selling costs the owner walks away with $194,595. The renter's investments are worth $236,366. Renting is ahead by $41,770.
- Total cost: over 10 years the owner pays $462,883 in cash and gets $194,595 back, a net cost of $268,288. The renter pays $304,710. Owning is cheaper in net cash, yet the renter ends up richer, because the renter's money was invested and growing while the owner's sat in closing costs, interest and the home.
- Break-even: with the horizon at 10 years the result says "Not within 10 years". The yearly table runs to year 30, and the owner first pulls ahead in year 20.
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 example | Break-even | Buying − renting after 10 years |
|---|---|---|
| Fictional example as shipped | year 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,200 | year 7 | $29,739 |
| Selling costs 3% instead of 6% | year 17 | −$25,643 |
| No tax estimate | year 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
- Comparing rent with the mortgage payment only. Property tax, insurance, maintenance, HOA and PMI often add a third or more on top of principal and interest. In the example they add $12,000 in year 1.
- Forgetting the cost of selling. A 6% selling cost on a $400,000 home is $24,000. It is the main reason short stays favour renting.
- Treating principal as a cost. Principal builds equity. The sheet counts it as cash paid but adds it back through the lower loan balance in net worth.
- Ignoring what the down payment could earn. The renter's side invests it. Set the return to something you would really earn after tax and fees.
- Assuming the mortgage interest deduction applies. It only helps when itemizing beats the standard deduction. Turn the tax estimate on and check the yearly tax savings column.
- Comparing different homes. Use the rent for a home you would accept instead of buying, not a smaller place.
Limits
- Annual steps. Investments are added at the end of each year; growth rates stay constant.
- Fixed-rate mortgage only. No refinancing, extra payments, ARMs, FHA or VA mortgage insurance rules.
- No capital gains tax on the home or the investments (enter an after-tax return), no moving costs, no security deposit.
- The tax estimate is federal only, uses 2026 figures for every year, and leaves out the SALT phase-down above $505,000 of modified AGI, the deduction for mortgage insurance premiums and points.
- Money only: flexibility, stability, schools and the time spent on upkeep are not in the numbers.
- Recalculation was tested in LibreOffice. The file uses only functions that exist in Excel 2016+ and Google Sheets.
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
- Loan amortization scheduleEvery payment, interest and balance
- Mortgage refinance spreadsheetBreak-even on a new loan
- Net worth trackerAssets and debts over time
- Budget spreadsheetMonthly income and spending
- Compound interest spreadsheetHow invested savings grow
- ROI calculatorReturn on an investment
- CAGR calculatorAnnual growth rate between two values
- All templatesFree spreadsheets
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.