How to build a mortgage calculator with taxes, insurance and PMI in Excel

The sample is a $400,000 purchase with $40,000 down, so the loan is $360,000. The note rate on the sheet is 7.11%. That is the average 30-year fixed rate in Freddie Mac’s Primary Mortgage Market Survey as of November 12, 2026, an average of conventional conforming purchase applications, not a quote for this loan. A 10% down payment is priced on its own. Type the rate from the Loan Estimate over the 7.11% when you have one.

The tax bill in the sample is $4,800 for the year. The homeowners policy is $1,440. The mortgage-insurance line on the sample Loan Estimate is $150 a month. Those three are inputs. Use your bill, your binder, and your estimate.

PMT
=PMT(B5/12, B6*12, -B4)
=PMT(B5/12,B6*12,-B4)B10
Monthly housing payment
AB
1InputValue
2Price$400,000
3Down payment$40,000
4Loan$360,000
5Note rate7.11%
6Years30
7Annual tax$4,800
8Annual insurance$1,440
9PMI per month$150
10Principal and interest$2,421.74
11Monthly tax$400
12Monthly insurance$120
13PITI$3,091.74
A picture of the sample, not a Loan Estimate. B5 stores 7.11% as 0.0711. B10 is principal and interest. B13 adds the $400 tax, the $120 insurance, and the $150 PMI line.

Principal and interest displays as $2,421.74. The unrounded payment is 2,421.74298…. You can audit it in a blank cell with =PMT(0.0711/12, 360, -360000). Pass the loan as a negative number so the payment comes back positive, which is the sign used on the PMT page.

Month 1 interest is exactly $2,133, because 360,000 × 0.0711 / 12 = 2,133. Principal that month is $288.74. The two add up to the displayed payment.

=IPMT(0.0711/12, 1, 360, -360000)
=PPMT(0.0711/12, 1, 360, -360000)

IPMT returns the $2,133. PPMT returns the $288.74. PAYMENT.SPLIT spills all three from one call, =xl.payment.split(7.11%, 360, 360000, 1). The rate you pass that name is the annual rate. It divides by 12 itself.

Monthly tax is 4,800 / 12 = 400. Insurance is 1,440 / 12 = 120. Do not run tax or insurance through PMT. They are not a loan. Add the $150 PMI line. The housing payment in the sample is 2,421.74 + 400 + 120 + 150 = $3,091.74.

Lay out the sheet

Put the inputs in column B, in the order the picture uses.

Cell Input
B2 Price, 400000
B3 Down payment, 40000
B4 =B2-B3
B5 Note rate, entered as 7.11% so the cell stores 0.0711
B6 Years, 30
B7 Annual property tax, 4800
B8 Annual homeowners insurance, 1440
B9 PMI per month, 150

B5 has to be a percent, or a decimal you type as 0.0711. If you type 7.11 and also divide by 100 inside PMT, the rate is a hundred times too small and the payment is nonsense.

=PMT(B5/12, B6*12, -B4)
=B7/12
=B8/12
=B10+B11+B12+B9

The full month-by-month table is MORTGAGE.SCHEDULE: =xl.mortgage.schedule(B4, B5, B6). It spills one row per month. The balance after a count of payments, without the whole spill, is LOAN.BALANCE:

=xl.loan.balance(B5, B6*12, B4, 102)

Both names take the principal as a positive number. PMT, IPMT, and PPMT take it as a negative number on this site. Mixing the two signs makes the payment negative and the balance run the wrong direction.

When the PMI line can come off

This is the conventional private-mortgage-insurance rule the Consumer Financial Protection Bureau describes for many loans on a single-family primary residence. FHA mortgage insurance and VA loans follow different rules. This is not tax, legal, or lending advice, and it is not a Loan Estimate.

Original value in the sample is $400,000. The sheet assumes the contract price and the appraisal at purchase are the same number. When they differ, original value is the lower one. On a refinance it is the appraisal from that refinance. Eighty percent of $400,000 is $320,000. Seventy-eight percent is $312,000.

The scheduled balance first falls to $320,000 or below on payment 102. After payment 101 it is still $320,231.85. After payment 102 it is $319,707.49. With a first payment on January 1, 2026, payment 102 is June 1, 2034. That is the date you can ask, in writing, for PMI to be canceled, if the other conditions on the CFPB page are met: you are current, the payment history qualifies, there is no junior lien, and you can show the value has not fallen below the original value. The servicer can ask for an appraisal, and you may have to pay for it.

Extra principal can move that request earlier, because the request may use the actual balance. The loan payoff calculator is the sheet for those extra payments. Extra payments do not move the automatic end date. That date follows the original schedule.

The automatic end is the date the balance is scheduled to reach 78% of the original value, and only if you are current. Otherwise it waits until you are. In this sample that is payment 117, September 1, 2035, when the balance is $311,458.61. After payment 116 the balance is still $312,031.57, which is above $312,000. There is also a backstop the month after you reach the midpoint of the term. On a 30-year loan, that midpoint is after 15 years. This sample reaches 78% on payment 117, so the midpoint is not what ends the premium.

If the $150 were drafted with each of the first 101 payments, the premiums would add to $15,150. The PMI disclosure that came with the mortgage states the servicer’s date. Use that date. This sheet shows when the balance crosses the two thresholds. It does not replace the disclosure.

Three hundred sixty unrounded payments total $871,827.47, which is $511,827.47 of interest on the $360,000. Paying the rounded $2,421.74 every month would collect about $1.07 less over the term, and the last payment is usually adjusted.

The 7.11% figure was copied from the Freddie Mac survey published November 12, 2026. Replace it with the note rate on your Loan Estimate. The tax, the insurance, and the $150 are sample inputs, not a national average.

The workbook that collects this sheet is the mortgage calculator.


Template for this article

Mortgage Calculator with Taxes, Insurance and PMI

More from the blog