Excel course · Lesson 33 of 34

Excel for finance basics: loan schedules with PMT, IPMT, PPMT and a budget

Build a loan amortisation schedule with PMT, IPMT and PPMT, total interest with CUMIPMT, savings with FV, a rate with RATE, and a budget-versus-actual sheet.

Advanced 22 min read

Loans, savings and budgets are where Excel earns its keep in everyday finance. In this lesson you will build a complete loan amortisation schedule, the table that shows how every payment splits into interest and principal, and then a monthly budget that compares plan with reality. Along the way you will meet the core financial functions and the sign convention that trips up almost everyone the first time.

Note. This lesson teaches spreadsheet technique with example numbers. It is not financial advice; real loan contracts may calculate interest differently (daily interest, fees, different compounding), so always compare with your lender's figures.

Three rules for financial functions

  • Match the period: for monthly payments, divide the annual rate by 12 and multiply the years by 12. 6% a year for 5 years becomes 6%/12 per month for 60 months.
  • Signs show direction of cash: money you receive is positive, money you pay out is negative. A loan you receive (+20,000) produces a negative payment. Put a minus in front of the loan amount (-B1) if you want the payment to show as a positive number.
  • Inputs in cells: never type 0.005 or 60 into the function. Keep rate, term and amount in labelled cells so the model can be changed and checked (Cell references: relative, absolute and mixed).

PMT: the monthly payment

Formula
PMT(rate, nper, pv, [fv], [type])
B4fx=PMT(B2/12, B3*12, -B1)
AB
1Loan amount20000
2Annual rate6%
3Years5
4Monthly payment386.66

Inputs in B1:B3. B2 holds 0.06 formatted as %.

Result: 386.66

rate is the interest per period (B2/12), nper the number of payments (B3*12 = 60), and pv the present value, the amount borrowed. The optional fv is a balance left at the end (0 by default, the loan is fully repaid) and type is 0 for payments at the end of each month (normal for loans) or 1 for the start. The answer, 386.66, is the same every month.

Tip. Over the life of the loan you pay =B4*B3*12-B1 in interest: 60 × 386.66 − 20,000 = 3,199.36. The function CUMIPMT gives the same answer directly: =CUMIPMT(B2/12, B3*12, B1, 1, B3*12, 0) returns -3,199.36 (negative, because it is paid out).

Building the amortisation schedule

Each payment first covers the interest on the balance still owed; the rest reduces the balance. Early on, interest is large and principal small; by the end it is the other way round. Build the table below the inputs:

C8fx=IPMT($B$2/12, A8, $B$3*12, -$B$1)
ABCDE
7MonthPaymentInterestPrincipalBalance
81386.66100.00286.6619713.34
92386.6698.57288.0919425.25
103386.6697.13289.5319135.72
114386.6695.68290.9818844.75

First four months. Interest in month 1 is 20,000 × 0.5% = 100.00.

Result: 100.00

  1. In A7:E7 type the headings Month, Payment, Interest, Principal, Balance.
  2. In A8 type 1. In A9 type =A8+1. (Or in Microsoft 365 put =SEQUENCE(B3*12) in A8 to create all 60 month numbers at once.)
  3. Payment, B8: =$B$4.
  4. Interest, C8: =IPMT($B$2/12, A8, $B$3*12, -$B$1). IPMT returns the interest part of payment number A8.
  5. Principal, D8: =PPMT($B$2/12, A8, $B$3*12, -$B$1). PPMT returns the principal part. Interest + principal always equals the payment.
  6. Balance, E8: =$B$1-D8. In E9: =E8-D9, the previous balance minus this month's principal.
  7. Select A9:E9 and fill down to row 67 (month 60). The last balance should be 0.00; if it shows -0.00, that is a rounding residue of a fraction of a cent.

Check a few values against the grid: month 2 interest is 98.57 and principal 288.09; after 12 months the balance is 16,463.94, and interest paid in the first year is 1,103.81 (=-CUMIPMT(B2/12, 60, B1, 1, 12, 0)).

Watch out. Use the absolute references ($B$2, $B$3, $B$1) exactly as shown. Without them, filling the formulas down shifts the rate and term references into empty cells and the schedule silently returns zeros or errors.

Interest without IPMT

An equivalent and very transparent approach: interest = previous balance × monthly rate. In C9: =E8*$B$2/12, principal =B9-C9. It gives the same numbers and makes it easy to add extra repayments: add a column F with extra payments and subtract it in the balance formula, =E8-D9-F9. The loan then ends earlier, and wrapping the payment in MIN (=MIN($B$4, E8*(1+$B$2/12))) stops the last payment from overshooting.

Other questions the same functions answer

QuestionFormulaResult
Savings: 200 a month for 10 years at 4%, what will I have?=FV(4%/12, 120, -200)29,449.96
What loan can I afford at 500 a month (6%, 5 years)?=PV(6%/12, 60, -500)25,862.78
Car costs 18,000, payments 350 for 60 months: what annual rate?=RATE(60, -350, 18000)*126.24%
How many months to repay 20,000 at 6% with 500 a month?=NPER(6%/12, -500, 20000)44.7 months
What effective annual rate does 6% compounded monthly give?=EFFECT(6%, 12)6.17%

FV, PV, RATE and NPER are the same equation as PMT solved for a different unknown. When one of them returns #NUM!, the signs are usually wrong: money in and money out must have opposite signs.

A budget versus actual sheet

D3fx=C3-B3
ABCDE
1CategoryBudgetActualVarianceVar %
2Rent1200120000.0%
3Groceries4505126213.8%
4Transport180143-37-20.6%
5Utilities160171116.9%
6Leisure2503106024.0%
7Savings40040000.0%
8Total26402736963.6%

D2 =C2-B2 and E2 =IF(B2=0, "", D2/B2), formatted as %. Totals with SUM.

Result: 62

  1. List categories in column A, the plan in B, actual spending in C.
  2. Variance in D: =C2-B2. A positive number means overspending for costs.
  3. Variance % in E: =IF(B2=0, "", D2/B2) with Percent Style and one decimal.
  4. Totals in row 8 with =SUM(B2:B7) and so on; the total variance is 96, or 3.6% over budget.
  5. Highlight overspending: select D2:D7, Home › Conditional Formatting › Highlight Cells Rules › Greater Than 0, light red. Groceries (+62) and Leisure (+60) stand out (Conditional formatting, including formula-based rules).
  6. Add a custom number format +#,##0;-#,##0;0 to show the sign explicitly (Number formats and custom format codes).
Tip. For a whole year, keep one column per month in a table of actual transactions (Date, Category, Amount) and calculate each month's actuals with =SUMIFS(Tx[Amount], Tx[Category], $A2, Tx[Date], ">="&C$1, Tx[Date], "<="&EOMONTH(C$1,0)), where C1 holds the first day of the month. One formula fills the whole grid (Counting and summing with criteria: COUNTIFS, SUMIFS, SUMPRODUCT).

Good habits for financial models

  • One input area, clearly coloured; no numbers typed inside formulas.
  • Check totals: the sum of principal payments must equal the loan; interest + principal must equal total payments.
  • Round only where money actually changes hands, with ROUND, so displayed and stored values agree.
  • Label units: per month or per year, nominal or effective rate.
  • Use Goal Seek and Data Tables to test assumptions (What-if analysis: Goal Seek, Data Tables, Scenario Manager and Solver).

Check yourself

1. A loan is at 6% a year with monthly payments. Which rate goes into PMT?

2. Why does =PMT(0.5%, 60, 20000) return a negative number?

3. What does IPMT return for month 1 of a 20,000 loan at 0.5% a month?

4. Over the life of a loan, how does the interest part of each payment change?

5. Actual spending is 512 and the budget 450. What is the variance %?

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 16 KB