Popular Searches
Popular Course Categories
Popular Courses

Building Loan Repayment and EMI Models

Building Loan Repayment and EMI Models

Financial Analysis and Business Calculations

Building Loan Repayment and EMI Models in Advanced Excel

Course: Advanced Excel

Topic: Building Loan Repayment and EMI Models

Course Link: Advanced Excel Course – JustAcademy

Demo Link: Register for a Course Demo

Official Website: JustAcademy Homepage


1. Introduction to Loan Repayment and EMI Models

Loan repayment and Equated Monthly Instalment (EMI) models are important applications of Advanced Excel in banking, financial planning, accounting, business analysis, and personal finance. Excel can calculate monthly instalments, total interest, total repayment, outstanding balances, and the allocation of each payment between principal and interest.

An EMI is a fixed periodic payment made by a borrower to repay a loan over an agreed period. For a standard loan with a fixed interest rate and monthly payments, each EMI generally contains two components: interest on the outstanding principal and repayment of part of the principal.

As the outstanding balance decreases, the interest portion usually becomes smaller while the principal repayment portion becomes larger. Excel financial functions and formulas help build a model that explains this process clearly.

2. Learning Objectives

  • Understand loan principal, interest rate, tenure, EMI, and outstanding balance.
  • Calculate monthly EMI using the PMT function.
  • Build a loan repayment schedule with monthly calculations.
  • Separate principal repayment from interest expense.
  • Calculate total interest and total repayment.
  • Use IPMT, PPMT, SUM, and other Excel functions for loan analysis.
  • Build a flexible EMI calculator using input cells.
  • Compare different loan tenures and interest rates.
  • Apply data validation, conditional formatting, and charts to improve the model.

3. Important Loan Terminology

Term Meaning Example
Principal The original amount borrowed from the lender. ₹10,00,000
Annual Interest Rate The yearly interest rate charged on the outstanding loan balance. 9% per year
Monthly Interest Rate The periodic rate used when payments are monthly. 9% / 12 = 0.75% per month
Loan Tenure The agreed duration for repaying the loan. 5 years
Number of Payments The total number of instalments during the loan tenure. 5 × 12 = 60 payments
EMI The regular monthly payment containing principal and interest. Calculated using PMT
Interest Component The amount of the payment allocated to interest for a period. Opening balance × monthly rate
Principal Component The amount of the payment that reduces the loan balance. EMI − interest
Outstanding Balance The unpaid loan principal remaining after a payment. Opening balance − principal repaid
Total Interest The sum of all interest payments over the loan term. Total repayment − principal

4. Understanding the EMI Formula

For a standard loan with a fixed periodic interest rate and equal payments, the EMI can be calculated using the following formula:

EMI = P × r × (1 + r)n / ((1 + r)n − 1)

  • P: Loan principal.
  • r: Interest rate per payment period.
  • n: Total number of payment periods.

For monthly payments, the annual nominal interest rate is commonly divided by 12, and the tenure in years is multiplied by 12. The assumptions must match the lender's actual loan terms.

Example

Suppose a borrower takes a loan of ₹10,00,000 at an annual interest rate of 9% for 5 years, with monthly repayments.

  • Loan principal = ₹10,00,000
  • Annual interest rate = 9%
  • Monthly interest rate = 9% / 12 = 0.75%
  • Loan tenure = 5 years
  • Total monthly payments = 5 × 12 = 60

The EMI is approximately ₹20,758 per month. The exact displayed amount may vary slightly with rounding and the assumptions used by the lender.

5. Setting Up the EMI Calculator in Excel

First, create an input section for the loan information. Keep the input cells separate from the calculation area so that the model is easy to update.

Cell Description Sample Value
B2 Loan Amount 1000000
B3 Annual Interest Rate 9%
B4 Loan Tenure in Years 5
B5 Payments per Year 12
B6 Monthly Interest Rate =B3/B5
B7 Total Number of Payments =B4*B5
B8 Monthly EMI =-PMT(B6,B7,B2)
B9 Total Repayment =B8*B7
B10 Total Interest =B9-B2

Step-by-Step Instructions

  1. Open Microsoft Excel and create a new worksheet named EMI Calculator.
  2. Enter the loan input labels in column A and their values in column B.
  3. Format the loan amount as currency and the annual interest rate as a percentage.
  4. Calculate the periodic interest rate in cell B6.
  5. Calculate the total number of instalments in cell B7.
  6. Enter the PMT formula in B8 to calculate the monthly EMI.
  7. Calculate total repayment and total interest in B9 and B10.
  8. Change the loan amount, interest rate, or tenure to see how the results change.

6. Using the PMT Function

The PMT function calculates the periodic payment required for a loan when the periodic interest rate and payment schedule are fixed. It is one of the most useful Excel financial functions for building an EMI model.

Syntax:

=PMT(rate, nper, pv, [fv], [type])
Argument Description
rate Interest rate for each payment period.
nper Total number of payment periods.
pv Present value, normally the loan principal.
fv Optional future balance after the final payment; normally 0 for a fully repaid loan.
type Optional payment timing: 0 for end of period or 1 for beginning of period.

Formula for the Example Loan

=-PMT(9%/12,5*12,1000000)

The minus sign displays the EMI as a positive amount. Excel's financial functions follow a cash-flow sign convention: money received and money paid out are represented with opposite signs.

Important Considerations

  • Use the monthly interest rate for monthly payments.
  • Use the number of months for a loan repaid monthly.
  • Do not divide the interest rate by 12 if the rate entered is already a monthly rate.
  • PMT calculates principal and interest, but does not automatically include processing fees, insurance, taxes, or other charges.
  • Check whether the lender uses a nominal annual rate, an effective rate, or a different interest calculation convention.

7. Building a Monthly Loan Repayment Schedule

A repayment schedule shows how the loan balance changes after every instalment. It records the opening balance, EMI, interest, principal repayment, and closing balance for each month.

Suggested Worksheet Layout

Column Heading Purpose
A Payment Number Identifies each monthly instalment.
B Opening Balance Loan balance at the start of the month.
C EMI Regular monthly instalment.
D Interest Payment Interest charged for the month.
E Principal Payment Amount of EMI reducing principal.
F Closing Balance Balance remaining after payment.

Step 1: Create the First Payment Row

Assume the loan inputs are stored in the cells described in the earlier section. Place the repayment schedule headings in row 13 and the first payment details in row 14.

Cell Formula Explanation
A14 =1 First payment number.
B14 =$B$2 Opening balance equals the original principal.
C14 =$B$8 Monthly EMI linked to the calculator.
D14 =B14*$B$6 Interest on the opening balance.
E14 =MIN(B14,C14-D14) Principal repaid after accounting for interest.
F14 =MAX(0,B14-E14) Closing balance after the payment.

Step 2: Create the Next Month's Row

In row 15, enter the following formulas and fill them down for the remaining instalments.

Cell Formula
A15 =A14+1
B15 =F14
C15 =MIN($B$8,B15+D15)
D15 =B15*$B$6
E15 =MIN(B15,C15-D15)
F15 =MAX(0,B15-E15)

Note: In the next-month EMI formula above, D15 refers to the interest for the current row. Since Excel calculates formulas using cell references, a simpler and clearer schedule is usually to link each month's EMI directly to the fixed EMI cell: =$B$8. For the next row, use =$B$8 in C15 and fill down. This avoids unnecessary dependencies between the EMI and interest calculations.

Recommended Consistent Formulas

For a straightforward fixed-rate loan, use these formulas in each payment row:

  • Opening balance: previous row's closing balance.
  • EMI: =$B$8.
  • Interest: =B15*$B$6.
  • Principal: =MIN(B15,C15-D15).
  • Closing balance: =MAX(0,B15-E15).

Fill the formulas down for the number of payments in B7. In a production model, the final instalment may need adjustment for rounding so that the balance becomes exactly zero without a negative closing balance.

8. Calculating Interest and Principal with IPMT and PPMT

Excel provides separate financial functions for the interest and principal components of a fixed loan payment.

IPMT Function

IPMT calculates the interest portion of a payment for a specified period.

=-IPMT($B$6,A14,$B$7,$B$2)

This formula returns the interest component for the payment number in A14 as a positive amount.

PPMT Function

PPMT calculates the principal portion of a payment for a specified period.

=-PPMT($B$6,A14,$B$7,$B$2)

This formula returns the principal component for the payment number in A14 as a positive amount.

Reconciliation Check

For a standard fixed-rate loan, the principal and interest portions should add up to the EMI, subject to rounding.

Principal Component + Interest Component = EMI

For example, if a monthly EMI is ₹20,758 and the first month's interest is ₹7,500, the principal component is approximately ₹13,258.

9. Calculating Total Repayment and Total Interest

Once the EMI is calculated, Excel can estimate the total amount paid and the total interest cost over the loan term.

Metric Formula Purpose
Total Repayment =B8*B7 Estimated total of all instalments.
Total Interest =B9-B2 Estimated interest over the full loan term.
Total Principal Repaid =SUM(E14:E73) Sum of principal payments for a 60-month schedule.
Total Interest from Schedule =SUM(D14:D73) Sum of scheduled monthly interest payments.
Remaining Balance =F73 Closing balance after payment 60.

Adjust the schedule range to match the actual loan tenure. For a five-year loan with 60 monthly payments, rows 14 through 73 contain 60 payment rows if the first payment starts in row 14.

10. Using Excel's Other Financial Functions

Function Purpose Example
PMT Calculates a fixed periodic loan payment. =-PMT(B6,B7,B2)
IPMT Calculates the interest portion for a specific period. =-IPMT(B6,1,B7,B2)
PPMT Calculates the principal portion for a specific period. =-PPMT(B6,1,B7,B2)
NPER Estimates the number of periods needed for a loan or payment plan. =NPER(B6,-B8,B2)
RATE Estimates the periodic interest rate for a loan with known cash flows. =RATE(B7,-B8,B2)*12
PV Calculates present value based on a periodic rate and payment stream. =PV(B6,B7,-B8)

Financial functions use cash-flow sign conventions. If a formula returns a negative number when a positive display is desired, review the signs of the inputs before adding or removing a minus sign.

11. Comparing Loan Tenures and Interest Rates

Loan tenure and interest rate have a direct effect on EMI and total interest. A longer tenure usually lowers the monthly EMI but increases the total interest paid. A higher interest rate generally increases both EMI and the overall borrowing cost.

Example Comparison Table

Use a loan amount of ₹10,00,000 and an annual nominal interest rate of 9%. Create a table with different loan tenures and calculate the EMI for each one.

Tenure Total Payments Excel Formula Typical Effect
3 years 36 =-PMT(9%/12,3*12,1000000) Higher EMI, lower total interest.
5 years 60 =-PMT(9%/12,5*12,1000000) Moderate EMI and total interest.
7 years 84 =-PMT(9%/12,7*12,1000000) Lower EMI, higher total interest.
10 years 120 =-PMT(9%/12,10*12,1000000) Lower monthly payment, longer repayment period.

Using a Two-Variable Data Table

  1. Set up an EMI calculation based on the loan amount and interest rate.
  2. Place different interest rates across the top row of a table.
  3. Place different loan tenures down the first column.
  4. Link the table's top-left result cell to the EMI formula.
  5. Select the entire table and use Data > What-If Analysis > Data Table.
  6. Set the row input cell to the interest-rate input cell and the column input cell to the tenure input cell.
  7. Review the EMI results to understand how changing both assumptions affects monthly repayments.

12. Adding Extra Repayments and Prepayments

Borrowers sometimes make additional principal repayments to reduce their outstanding balance. An Excel model can estimate the effect of these payments, but the treatment depends on the lender's rules. Some lenders reduce the tenure while others recalculate the EMI.

For a simplified model, add an extra principal payment column to the schedule.

Column Heading Example Formula
G Extra Principal Payment Enter a user-specified amount, such as 5000.
H Total Principal Paid =MIN(B14,E14+G14)
I Revised Closing Balance =MAX(0,B14-H14)

For an accurate prepayment model, ensure that the regular principal amount is recalculated from the actual EMI and interest, and cap the total principal payment at the outstanding balance. Also account for any prepayment fees or lender-specific rules. Do not simply subtract an extra payment from the balance without reconciling the principal and interest calculations.

13. Formatting the EMI Model Professionally

  • Use a clear title such as Loan Repayment and EMI Calculator.
  • Apply currency formatting to principal, EMI, interest, and outstanding balance.
  • Use percentage formatting for interest rates.
  • Use a distinct but consistent format for input cells and calculated cells.
  • Keep formulas linked to the input section rather than hardcoding values repeatedly.
  • Freeze the repayment schedule's header row if the table is long.
  • Apply filters when the schedule includes payment dates or additional fields.
  • Use clear number formats and consistent decimal places.
  • Add notes explaining assumptions, calculation methods, and excluded charges.

14. Creating Charts for Loan Analysis

Charts make it easier to explain how a loan is repaid over time.

Outstanding Balance Chart

  1. Select the payment number and closing balance columns.
  2. Choose Insert > Line Chart.
  3. Use the title Outstanding Loan Balance Over Time.
  4. Check that the balance trends downward toward zero.

Principal Versus Interest Chart

  1. Select the payment number, principal payment, and interest payment columns.
  2. Insert a line chart or a stacked column chart.
  3. Label the two series clearly.
  4. Observe how interest generally declines and principal repayment generally increases over the life of a standard fixed-rate loan.

Loan Cost Summary

Create a small summary area showing the original principal, monthly EMI, total repayment, total interest, and final outstanding balance. These figures give the user a quick view of the loan's cost.

15. Data Validation and Error Prevention

Data validation helps prevent incorrect inputs from damaging the model.

  • Loan amount: allow only positive numeric values.
  • Interest rate: allow a percentage greater than or equal to zero and below a reasonable upper limit for the use case.
  • Tenure: allow positive whole numbers.
  • Payments per year: use a controlled list such as 1, 2, 4, or 12 when the model supports annual, semiannual, quarterly, or monthly payments.
  • Use conditional formatting to flag a negative or unexpectedly large outstanding balance.
  • Check that the final balance is approximately zero after the final scheduled payment.

16. Troubleshooting Common EMI Model Problems

Problem Possible Cause Solution
EMI is negative Excel is following its cash-flow sign convention. Use =-PMT(rate,nper,pv) if a positive display is desired.
EMI is much too high Annual interest rate may have been used as a monthly rate. For a nominal annual rate with monthly payments, divide by 12.
EMI is much too low The total number of payments may be incorrect. For monthly payments, multiply the number of years by 12.
Closing balance becomes negative Rounding or the final payment exceeds the remaining balance. Cap the final principal payment at the outstanding balance and adjust the last payment if necessary.
Final balance is not zero Some periods may be missing or formulas may have incorrect references. Verify the number of payment rows and check the final-period calculation.
Interest is identical every month The formula may refer to the original loan amount instead of the current opening balance. Calculate interest using each period's opening balance.
Formula returns an error Inputs may be blank, text, or invalid. Check cell types and use validation to restrict inputs.
Calculated EMI differs from the lender's quote Fees, rate conventions, payment dates, or rounding rules may differ. Compare the model assumptions with the lender's repayment terms.

17. Best Practices for Building Loan Models

  • Separate inputs, calculations, and outputs into clearly labelled sections.
  • Use absolute references for fixed assumptions such as $B$2 and $B$6.
  • Use cell references rather than repeatedly typing the same interest rate or principal into formulas.
  • Keep full precision in calculations and use formatting to control the displayed decimal places.
  • Reconcile total principal repaid with the original loan principal.
  • Reconcile total interest from the schedule with the summary calculation.
  • Verify the final balance and the number of payments.
  • Document whether the model assumes a fixed rate, monthly compounding, and end-of-month payments.
  • For real-world use, account for rate changes, irregular dates, fees, moratorium periods, and prepayments when applicable.
  • Compare model outputs with the lender's official amortisation schedule before relying on them for a financial decision.

18. Practical Exercise

Exercise: Build an EMI calculator for a loan of ₹7,50,000 at an annual interest rate of 10.5% for 4 years.

Tasks

  1. Create input cells for principal, annual interest rate, and loan tenure.
  2. Calculate the monthly interest rate and total number of monthly payments.
  3. Calculate the EMI using the PMT function.
  4. Calculate total repayment and total interest.
  5. Create a repayment schedule with opening balance, EMI, interest, principal, and closing balance.
  6. Use IPMT and PPMT to verify the first month's interest and principal components.
  7. Insert a chart showing the outstanding balance over the repayment period.
  8. Change the tenure to 3 years and 5 years, then compare the EMI and total interest.
  9. Check whether the last scheduled payment reduces the remaining balance to approximately zero.

19. Mini Project: Personal Loan EMI Dashboard

Create a professional dashboard that allows a user to compare different loan scenarios. The dashboard should have an input panel, key financial metrics, a repayment schedule, and visualisations.

Required Components

  • Editable loan amount, interest rate, and tenure.
  • Calculated EMI and total repayment.
  • Total interest paid across the loan term.
  • Monthly repayment schedule.
  • Principal-versus-interest comparison.
  • Outstanding balance trend chart.
  • Scenario comparison for multiple interest rates or tenures.
  • Validation checks and a final balance verification.

Expected Learning Outcome

By completing this project, learners will practise financial formulas, relative and absolute references, formula auditing, What-If Analysis, conditional formatting, and chart creation in Excel.

20. Interview Questions and Answers

Q1. What is an EMI?

Answer: EMI stands for Equated Monthly Instalment. It is a regular monthly payment that generally includes both principal repayment and interest.

Q2. Which Excel function calculates the EMI for a fixed-rate loan?

Answer: The PMT function calculates the periodic payment using the interest rate per period, number of payments, and present value of the loan.

Q3. Why do we divide the annual interest rate by 12?

Answer: For a loan model using a nominal annual rate and monthly payment periods, dividing by 12 converts the annual rate into a monthly periodic rate. The method should match the lender's rate convention.

Q4. Why is the result of PMT sometimes negative?

Answer: Excel uses a cash-flow sign convention. The loan principal is money received, while instalments are money paid out. A minus sign can be used to display the payment as a positive number.

Q5. What is the difference between IPMT and PPMT?

Answer: IPMT calculates the interest portion of a specified payment period, while PPMT calculates the principal portion.

Q6. What is an amortisation schedule?

Answer: It is a period-by-period table showing the opening loan balance, payment, interest, principal repaid, and closing balance.

Q7. How does a longer loan tenure affect EMI?

Answer: A longer tenure usually reduces the monthly EMI but increases the total interest paid, assuming other factors remain the same.

Q8. Why should the final outstanding balance be checked?

Answer: It confirms that the scheduled payments repay the loan as expected and helps identify missing periods, incorrect formulas, and rounding differences.

Q9. Does PMT include processing fees and insurance?

Answer: No. PMT calculates the payment based on the specified loan principal, rate, and payment periods. Additional fees and charges must be modelled separately.

Q10. How can Excel compare loan scenarios?

Answer: Excel can use separate formulas, What-If Analysis, one-variable or two-variable Data Tables, and charts to compare EMI and total interest under different rates and tenures.

21. Quick Revision Checklist

  • Understand principal, interest, tenure, EMI, and outstanding balance.
  • Use PMT to calculate regular loan payments.
  • Match the interest-rate period to the payment period.
  • Match the total number of periods to the loan tenure.
  • Use IPMT and PPMT to separate interest and principal.
  • Build a monthly repayment schedule.
  • Calculate total repayment and total interest.
  • Use What-If Analysis to compare different loan scenarios.
  • Validate inputs and check the final balance.
  • Document the assumptions and compare the model with the lender's terms.

22. Conclusion

Building loan repayment and EMI models is a practical Advanced Excel skill for financial analysis, budgeting, and business reporting. By combining PMT, IPMT, PPMT, cell references, repayment schedules, and What-If Analysis, learners can build a flexible model that explains how payments are allocated and how loan balances change over time.

A well-designed model should be accurate, transparent, easy to update, and clear about its assumptions. For actual borrowing decisions, always verify calculations against the lender's repayment schedule and applicable loan terms.

23. Additional Learning Resources

Previous Next
whatsapp