This is not tax, legal, lending, or real estate advice. The house price, down payment, and note rate are the sample from the PMT page: a $400,000 house, $80,000 down, and a 6.25% 30-year loan. The 3% home growth and the 6% selling cost are made up. The payment is principal and interest only, so taxes, insurance, and repairs are not here.
Rent vs buy: how to compare the costs in Excel compares renting with buying over ten years. This page answers a narrower question that the comparison depends on: if you sold after ten years, what would be left after the loan and the cost of selling?
The inputs
| Cell | What | Value |
|---|---|---|
| B1 | Price | 400,000 |
| B2 | Down payment | 80,000 |
| B3 | Note rate | 6.25% |
| B4 | Term in years | 30 |
| B5 | Years in the house | 10 |
| B6 | Home growth, made up | 3% |
| B7 | Selling cost, made up | 6% |
The loan and the payment
=B1-B2
=PMT(B3/12,B4*12,-B8)
Put the loan in B8. The first formula returns $320,000. Put the second in B9: the payment is $1,970.30. The rate is divided by 12 and the years are multiplied by 12 because the payment is monthly. After ten years you have made 120 of them.
The balance after 120 payments
FV can return the balance still owed after some payments, if you enter the loan as a negative present value and the payment as positive:
=FV(B3/12,B5*12,B9,-B8)
The result is $269,560.68. Put it in B10. Principal paid is =B8-B10, which is $50,439.32. Ten years of payments are =B9*B5*12, which is $236,435.40. Subtract the principal and the rest went to interest: $236,435.40 minus $50,439.32 is $185,996.08.
Early payments are mostly interest. In this sample only $50,439.32 of $236,435.40 reduces the balance after a decade, which is why the balance is still above 84% of the loan: $269,560.68 divided by $320,000.
The house at the end
=B1*(1+B6)^B5
=B11*B7
Put the first in B11. At a made-up 3% a year, a $400,000 house is worth $537,566.55 after ten years. The second formula returns the selling cost at a made-up 6%: $32,253.99.
What is left
=B11-B12-B10
Put it in B13. With the value in B11, the selling cost in B12, and the balance in B10, the net sale is $537,566.55 minus $32,253.99 minus $269,560.68, which is $235,751.88. That is the check before taxes. It is not profit, because the $80,000 down payment and ten years of payments came out of your pocket first. Subtract the down payment, =B13-B2, and the difference is $155,751.88. That still leaves out the payments, which are $236,435.40 in this sample, and the rent you did not pay.
Change one assumption
The two made-up percentages move the answer a lot. A house that does not grow has a net sale of $400,000 minus 6% of $400,000 minus $269,560.68. That is $400,000 − $24,000 − $269,560.68 = $106,439.32. Set B6 to 0 and watch the sheet agree. The point is not which percentage is right. It is that the sale price drives the answer, and you cannot know it.
The finished file
The same loan, balance, and net sale, with the rent comparison and an NPV, are in the Rent vs Buy Calculator. The numbers on this page are the numbers in that file.