Rent vs buy: how to compare the costs in Excel

A $400,000 house with $80,000 down leaves a $320,000 loan. At 6.25% for 30 years the payment is $1,970.30. Rent in the sample is $2,200 a month. The horizon is 10 years from January 1, 2026.

The workbook with those inputs is the rent vs buy calculator. This is not a loan offer and not a forecast. 6.25% is the sample note on the PMT page, not a rate from a lender. The rent, the 3% home growth, and the 6% selling cost are made up. Property tax and insurance are not in the payment. The 7.11% rental purchase is a different file.

The payment is $1,970.30

PMT of 6.25% / 12, 360 months, and -$320,000 is $1,970.30 on screen. The unrounded payment is $1,970.295…. xl.mortgage.schedule spills a full schedule. Its audit sample is a $1,200 loan at 12% for six months, where month 1 interest is $12.00. This file does not store that LAMBDA. It keeps one payment and one balance.

PMT
=PMT(0.0625/12,30*12,-320000)
=PMT(0.0625/12,30*12,-320000)B5
The note
AB
1Value
2Rate6.25%
3Years30
4Loan320000
5Payment1970.30
The mortgage on the PMT page. 6.25% for 30 years on $320,000. The unrounded payment is $1,970.295…. Currency format shows $1,970.30.
=PMT(0.0625/12, 30*12, -320000)

The balance after 120 payments is $269,560.68

xl.loan.balance is principal times (1 + r) to the payments made, minus the payment times the same growth of a dollar. On the $25,000 car loan at 6.9% for 60 months, 12 payments leave $20,663.34. The same algebra on this mortgage, with r = 0.0625 / 12 and 120 payments, leaves $269,560.68. Principal paid is $50,439.32.

PMT
=320000*(1+0.0625/12)^120-PMT(0.0625/12,360,-320000)*((1+0.0625/12)^120-1)/(0.0625/12)
=320000*(1+0.0625/12)^120-PMT(0.0625/12,360,-320000)*((1+0.0625/12)^120-1)/(0.0625/12)B2
After 120 payments
AB
1Value
2Balance269560.68
3Principal paid50439.32
The loan-balance algebra. On this note the balance is $269,560.68. The same algebra on the $25,000 car loan at 6.9% is $20,663.34 after 12 payments.

Ten years of the $2,200 rent is $264,000.00. Ten years of the payment is $236,435.40. Each of the first nine years the rent is $2,756.46 above the payments. Year 10 adds the sale.

$80,000 at 5% is $130,311.57

FV of 5% a year, 10 years, no extra deposit, and -$80,000 is $130,311.57. xl.cagr on $1,000 growing to $1,628.894627 in 10 years is 5%. This down payment is that same path scaled by 80. The earned rate in the file is (130311.570142195 / 80000) ^ (1 / 10) – 1, which is 5.00%. The file does not store the LAMBDA.

FV
=FV(0.05,10,0,-80000)
=FV(0.05,10,0,-80000)B4
The down payment, invested
AB
1Value
2Down payment80000
3Years10
4Invested130311.57
5Earned rate0.05
5% is the CAGR sample. $1,000 becomes $1,628.894627 in 10 years. $80,000 on that same path is $130,311.57. The earned rate is 5%.

Home value at a made-up 3% is $537,566.55. Selling cost at a made-up 6% is $32,253.99. The net sale is that value, minus the selling cost, minus the $269,560.68 balance: $235,751.88.

NPV subtracts the down payment, because it is today

NPV discounts end-of-year cash flows. A cost today is outside the function. Four receipts of $3,000 at 8%, minus $10,000 today, are -$63.62.

NPV
=NPV(0.08,3000,3000,3000,3000)-10000
47694.80B3
The NPV page, then this house
AB
1Value
2Four receipts-63.62
3This house47694.80
Four year-end receipts of $3,000 at 8%, minus $10,000 today, are -$63.62. This house uses the same shape. The decision is $47,694.80.

This house uses that shape at the same 8%. Each year the cash flow is (rent − payment) × 12. Year 10 also adds the net sale. NPV of those ten amounts, minus the $80,000 down payment, is $47,694.80. The positive result is this sample at these assumptions. Change the rent, the growth, or the selling cost and the sign can move.


Template for this article

Rent vs Buy Calculator

More from the blog