Tabellab

You are not signed in — the lab works, but your progress is not saved. Sign up

Lesson 1 of 20 is free. Unlock all 20 hands-on labs, the final exam and your certificate.

Buy course — $9.90
Loading the spreadsheet…

Why the monthly payment is the first number in every loan file

Every mortgage conversation comes back to one number: the monthly payment. Borrowers want to know if they can afford it, loan officers quote it, and underwriters plug it into every later ratio, from debt-to-income to the refinance break-even. Yet very few people can explain where the number comes from, or why, after five years of payments, the balance has barely moved.

This free lesson is for anyone who wants to understand loan math properly: people preparing to buy a home who want to check a lender's figures, loan processors and junior underwriters, real estate agents, finance students and accountants. You need basic Excel skills. By the end you will calculate the payment with PMT, the lifetime interest, the balance after any number of payments with FV, and the first rows of an amortization schedule.

The example is a fictional couple, Maya and Tom Hallberg, buying a townhouse with a $405,000 loan, a fixed note rate of 6.25 % per year and a 30-year term. The rate is an example chosen for the lab, not a quote or a forecast.

Educational only. This lesson is not financial, investment, tax or legal advice and does not recommend any loan, lender or product. The Hallbergs and all numbers are fictional. Actual loan terms, costs and rules depend on the lender, the borrower and local regulation, so real decisions need the official loan documents and qualified advice.

How a fixed-rate loan is repaid

A fixed-rate mortgage is repaid in equal monthly payments. The payment is set so that, after the last payment, the balance is exactly zero. Inside each payment, two things happen in a fixed order.

  1. Interest is paid first. The lender charges one month of interest on the balance at the start of the month: opening balance × annual rate ÷ 12. For the Hallbergs' first month that is $405,000 × 6.25 % ÷ 12 = $2,109.38.
  2. The rest repays principal. Whatever is left of the payment lowers the balance. Next month's interest is charged on that slightly lower balance, so a little more of the payment goes to principal each month.

This is why loans feel slow at the start. When the balance is large, interest takes most of the payment. Over the years the split turns around, and in the final years almost the whole payment is principal. Nothing about the payment changes, only the split inside it.

Excel does the payment math with PMT(rate, nper, pv). Because payments are monthly, use the monthly rate (annual rate ÷ 12) and the number of months (years × 12). Excel treats money you receive and money you pay out with opposite signs, so the loan amount gets a minus sign to make the payment come out positive.

Read =PMT(B5/12,B6*12,-B4) as: "the monthly payment at one twelfth of the yearly rate, for 360 months, on a loan of $405,000". If your result is negative, the minus sign is missing. If it is far too large, you probably used the yearly rate and years.

If you are curious what PMT does behind the scenes, it solves the standard annuity formula: payment = loan × i ÷ (1 − (1 + i)−n), where i is the monthly rate and n the number of payments. You can type it directly as =B4*(B5/12)/(1-(1+B5/12)^-(B6*12)) and you will get the same result as PMT, to the cent. Seeing the formula once helps you trust the function, and it explains why both a higher rate and a longer term change the payment in the way they do: the rate raises the interest share, while the term spreads the principal over more months.

Worked example: the Hallbergs' loan

Here are the four results from the lab with the exact formulas. The cell references match the spreadsheet above.

ResultCellExcel formulaHallberg loan
Monthly principal & interestB9=PMT(B5/12,B6*12,-B4)$2,493.65
Total of all 360 paymentsB10=B9*B6*12$897,715.68
Total interestB11=B10-B4$492,715.68
Balance after 60 paymentsB12=-FV(B5/12,60,-B9,B4)$378,015.83

The monthly principal and interest payment is $2,493.65. Over 360 months the Hallbergs would pay $897,716 in total, so the interest over the life of the loan is $492,716, more than the $405,000 they borrow. That is not unusual for a 30-year loan at this example rate: time and compounding make interest the larger part of the total.

The balance after five years is the surprise for most people. After 60 payments, worth $149,619 in total, the Hallbergs would still owe $378,016. Only $26,984 of the loan has been repaid. The rest of those payments was interest. If they sold or refinanced after five years, this is the number that would have to be paid off.

Each year's payments: interest vs principal ($405,000 at 6.25 %)0k10k20k30k151015202530Loan yearInterestPrincipalPayment $29,924 per year
Yearly interest (peach) and principal (blue) on the Hallbergs' loan. The total paid each year stays at $29,924, but in year 1 interest is about $25,178 and principal only $4,746.

The first six months of the amortization schedule

An amortization schedule shows every payment as a row: opening balance, payment, interest, principal and closing balance. Here are the first six rows, the part you build in task 3 of the lab.

MonthOpening balancePaymentInterestPrincipalClosing balance
1$405,000.00$2,493.65$2,109.38$384.28$404,615.72
2$404,615.72$2,493.65$2,107.37$386.28$404,229.44
3$404,229.44$2,493.65$2,105.36$388.29$403,841.15
4$403,841.15$2,493.65$2,103.34$390.32$403,450.83
5$403,450.83$2,493.65$2,101.31$392.35$403,058.48
6$403,058.48$2,493.65$2,099.26$394.39$402,664.09
Formula (row 15)=B4, then =F15=$B$9=B15*$B$5/12=C15-D15=B15-E15

Look at the interest column. It falls by only a few dollars a month, while the principal column rises by the same amount. The total payment stays at $2,493.65. In month 1 interest is 85 % of the payment. You can extend the schedule to all 360 rows by copying the formulas down, and the last closing balance will be zero (or a few cents away because of rounding in the display).

Balance still owed on the $405,000 loan$0$100k$200k$300k$400k051015202530YearsYear 5: $378,016 owedYear 15: $290,831Straight-line repayment
The remaining balance (blue) falls slowly at first and faster later. The dashed lavender line shows what an even repayment of the same principal each month would look like, for comparison.

How to do it in Excel

Follow these steps in the lab above or in your own workbook. They work the same way in Excel for Windows, Mac and the web, and in most other spreadsheet programs.

  1. Enter the loan inputs: amount in B4, note rate in B5 typed as 6.25%, term in years in B6.
  2. In B9 type =PMT(B5/12,B6*12,-B4) and press Enter. Format it as currency with Ctrl+Shift+$ or Home › Number › Currency. You can also use Formulas › Financial › PMT to fill in the arguments in a dialog.
  3. In B10 type =B9*B6*12 for the total of all payments, and in B11 =B10-B4 for the total interest.
  4. Start the schedule: B15 already contains =B4. In C15 type =$B$9 (press F4 after clicking B9 to add the dollar signs).
  5. In D15 type =B15*$B$5/12 for the interest, in E15 =C15-D15 for the principal and in F15 =B15-E15 for the closing balance.
  6. In B16 type =F15: each month opens with the previous month's closing balance.
  7. Select C15:F20 and press Ctrl+D to copy the formulas down. Select B16:B20 and press Ctrl+D again.
  8. Check: F17 (closing balance after month 3) should match =-FV(B5/12,3,-B9,B4).
  9. In B12 type =-FV(B5/12,60,-B9,B4) for the balance after 60 payments. FV returns the value with Excel's sign convention, so the leading minus makes it positive.
  10. Press Ctrl+` to view the formulas and make sure every result cell holds a formula, not a typed number.
For a quick look at one payment without a schedule, =IPMT(B5/12,1,B6*12,-B4) returns the interest in payment 1 and =PPMT(B5/12,1,B6*12,-B4) the principal. Change the 1 to any payment number.

What the rate and the term change

Because the payment formula compounds over hundreds of months, small changes in the rate have a large effect on lifetime interest. The table below keeps the Hallbergs' loan amount and term and only changes the example note rate. The rates are illustrations, not market quotes.

Example note rateMonthly P&ITotal interest over 30 yearsBalance after 5 years
5.75 %$2,363.47$445,849$375,687
6.25 %$2,493.65$492,716$378,016
6.75 %$2,626.82$540,656$380,197

Half a percentage point changes the monthly payment by roughly $130 to $135, but the lifetime interest by about $48,000. The term matters just as much. At the same 6.25 % example rate, a 15-year loan would need a payment of about $3,473, much higher per month, but the total interest would be about $220,061 instead of $492,716. Which trade-off suits a borrower depends on their budget and plans, which is exactly what the later underwriting lessons look at.

What-if: paying a little extra each month

The schedule also shows why extra principal payments shorten a loan so much. Suppose, purely as an exercise, that the Hallbergs paid $200 more every month, $2,693.65 instead of $2,493.65, and that their loan allowed this without a fee. Every extra dollar goes straight to principal, so the balance falls faster and next month's interest is lower too.

Excel answers "how many months until it is paid off?" with NPER: =NPER(B5/12,-(B9+200),B4) returns about 294 months, roughly 24.5 years instead of 30. Total interest would fall to about $387,452, compared with $492,716 on the regular schedule. Whether extra payments make sense for a real household depends on its other debts, savings, loan terms and goals, so this is a calculation to understand, not a recommendation.

A note on Excel's sign convention, because it trips up almost everyone at first. The financial functions think in cash flows: money that comes to you is positive, money that leaves you is negative. When the borrower receives $405,000 and pays back monthly amounts, those two flows must have opposite signs. That is why the formulas in this lesson put a minus sign in front of the loan or the payment. Once you see it as a cash-flow direction rather than a quirk, PMT, FV, PV and NPER all read the same way, and you will use all four in the rest of the course.

Mortgage and loan underwriting course: house with a loan payment and amortization spreadsheet
The course follows one fictional loan file, the Hallbergs' townhouse purchase, from the first payment to the refinance check.

Common mistakes and how to spot them

  • Using the yearly rate and years in PMT. =PMT(B5,B6,-B4) gives a yearly payment of about $30,000. If the "monthly" payment is that large, divide the rate by 12 and multiply the years by 12.
  • A negative payment. Excel's sign convention makes the payment negative when the loan is positive. Put a minus before the loan amount, or before PMT.
  • Treating the whole payment as principal. =B4-60*B9 shows a balance far too low after five years. Interest comes off first, so use FV or the schedule.
  • Monthly interest with the yearly rate. If month 1 interest is about $25,000, the formula uses B5 instead of B5/12.
  • Relative references in the schedule. If the payment column changes or shows zeros after copying, B9 was not locked. It must be $B$9, and the rate $B$5.
  • Confusing P&I with the full payment. The PMT result covers principal and interest only. Taxes, insurance and other costs come on top, which is the subject of the next lesson.
  • Rounding drift. If the last balance in a full schedule is a few cents off zero, the cause is display rounding, not a wrong formula. Use =ROUND(…,2) only if a lender's exact rounding rules need to be matched.

Quick reference: functions and shortcuts used

Function / shortcutWhat it doesExample
PMT(rate, nper, pv)Equal payment for a loan=PMT(B5/12,B6*12,-B4)
FV(rate, nper, pmt, pv)Balance left after n payments (with sign flipped)=-FV(B5/12,60,-B9,B4)
NPER(rate, pmt, pv)Number of payments until a loan is repaid=NPER(B5/12,-(B9+200),B4)
IPMT / PPMTInterest or principal part of one payment=IPMT(B5/12,1,B6*12,-B4)
CUMIPMT / CUMPRINCInterest or principal over a range of payments=CUMIPMT(B5/12,B6*12,B4,1,12,0)
Absolute reference (F4)Locks the payment and rate cells when copying the schedule$B$9, $B$5
Ctrl+D / double-click fill handleCopies a row of formulas downC15:F15 to row 20
Ctrl+Shift+$Currency formatB9:F20
Ctrl+` (grave accent)Shows formulas instead of resultsCheck the schedule

Real-world uses

  • Checking a loan estimate. A borrower can recalculate the principal and interest on a lender's document and see whether the figures agree.
  • Selling or refinancing early. The FV formula shows how much would still be owed after any number of years, the starting point for a sale or refinance calculation.
  • Underwriting files. The P&I payment is the first input for PITI and debt-to-income ratios, which you build in lessons 2 and 6.
  • Comparing terms. Running the same loan at 15 and 30 years side by side shows the trade-off between monthly cost and lifetime interest.
  • Car loans and business loans. The same PMT, FV and schedule logic applies to any loan with equal payments, not only mortgages.

What you will build in the rest of this course

Lesson 1 is free. The lessons that follow are part of the full course (one-time $9.90). They all work on the Hallbergs' file, so each lab adds one step of a real underwriting review.

PITI and the Escrow Account. You turn the P&I from today into the full monthly housing payment with property tax, insurance and HOA dues, then rerun the escrow after taxes and insurance go up.

Loan-to-Value and Combined LTV. You measure the loan against the home's value, size a first-plus-second-mortgage alternative and check the combined LTV of a later credit line.

Mortgage Insurance above 80 % LTV. You price the mortgage insurance on a high-LTV loan and find the payment number at which the balance falls far enough for it to be dropped, using the schedule logic from this lesson.

Qualifying Income from Pay Stubs. You turn a biweekly pay stub and hourly pay with overtime into the monthly income an underwriter would use.

Debt-to-Income and the Maximum Loan. You test the file against front-end and back-end limits and work backwards with PV to the largest loan the income supports.

APR vs Note Rate, Points and Break-even. You compare a no-points offer with a buy-down offer by APR and work out how long the loan must be kept for the points to pay off.

Refinance Analysis: Payment, Costs and Break-even. You test whether a refinance at a lower rate pays off, both in monthly cash and over the life of the loan, starting from the remaining balance you calculated today with FV.

Each lab checks your formulas cell by cell as you type, and the course ends with an exam for the Tabellab Certified Loan Underwriting Analyst certificate.

Summary

A fixed-rate loan is repaid in equal payments, where each month's interest is charged on the opening balance and the rest of the payment reduces the principal. In Excel, =PMT(rate/12, years*12, -loan) gives the payment, payment × months − loan gives the lifetime interest, and =-FV(rate/12, n, -payment, loan) gives the balance after n payments. For the Hallbergs that means $2,493.65 a month, $492,716 of interest over 30 years and $378,016 still owed after five years.

Now scroll up and do the lab: calculate B9 to B12, build the first six rows of the schedule, then change the rate or the term and watch the payment, the total interest and the five-year balance react.

Frequently asked questions

How do I calculate a monthly mortgage payment in Excel?

Use =PMT(annual rate/12, years*12, -loan amount), for example =PMT(B5/12,B6*12,-B4). The minus sign before the loan makes the payment positive.

Why is most of my early mortgage payment interest?

Interest is charged on the outstanding balance, which is largest at the start. As the balance falls, less of each equal payment goes to interest and more to principal.

How do I find the remaining loan balance after a number of payments?

Use =-FV(rate/12, number of payments made, -monthly payment, loan amount). It gives the same result as the closing balance in that row of a full amortization schedule.

How do I build an amortization schedule in Excel?

For each month, interest is the opening balance times rate/12, principal is the payment minus interest, and the closing balance is the opening balance minus principal. The next month opens with that closing balance, so you copy the row down.

Does the PMT payment include property tax and insurance?

No. PMT gives principal and interest only. Taxes, homeowners insurance and similar costs are added on top to get the full housing payment, often called PITI.

Is this course financial advice?

No. It is an educational course with a fictional borrower and example numbers. It teaches the calculations and does not recommend any loan or lender.

Keep going: Mortgage & Loan Underwriting Math

This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time $9.90.

  1. PITI and the Escrow Account
  2. Loan-to-Value and Combined LTV
  3. Mortgage Insurance above 80 % LTV
  4. Qualifying Income from Pay Stubs
  5. Debt-to-Income and the Maximum Loan
  6. APR vs Note Rate, Points and Break-even
  7. Refinance Analysis: Payment, Costs and Break-even
  8. Cash to Close: Prepaid Interest, Escrow Deposit and Credits
  9. Verifying Assets: Large Deposits, Usable Funds and Reserves
  10. Self-Employed Income: Two Years of Business Returns
  11. Rental Income: a Two-Unit Home and a Condo Kept as a Rental
  12. Which Debts Count: Liabilities from the Credit Report
  13. Rate Stress Test: Stress Rate, DTI Headroom and the Rate Ceiling
  14. Extra Payments: Monthly Top-ups, a Lump Sum and Biweekly Paying
  15. Escrow Analysis in Detail: Monthly Projection, Low Point and Cushion
  16. Seller-Paid 2-1 Buydown: Payments, Subsidy and Qualifying
  17. Pipeline Check: 15 Loan Files against Policy Limits
  18. Equity Build-up: Amortization plus Home Value Growth
  19. Final Project: the Underwriting Summary Dashboard

Buy course — $9.90 See the full course