The EMI is only one part of the decision
A borrower wants ₹5,00,000 for five years at 9% annual interest. The immediate question is the monthly payment, but responsible analysis also asks how much interest is paid, how the balance changes each month, and whether an extra monthly payment creates meaningful savings.
This case uses monthly reducing-balance amortization. Interest is calculated on the outstanding balance, not repeatedly on the original principal. Each equal payment first covers that month’s interest; the remainder reduces principal.
Affordability
Calculate the scheduled monthly instalment.
Cost
Measure total interest across the schedule.
What-if
Compare normal and extra-payment scenarios.
Convert every input to one time scale
| Symbol | Meaning | Conversion |
|---|---|---|
| P | Initial principal | Currency amount |
| R | Annual percentage rate | Example: 9% |
| r | Monthly decimal rate | R ÷ (12 × 100) |
| Y | Term in years | Example: 5 |
| n | Number of payments | 12Y |
| E | Equal monthly instalment | Currency per month |
Mixing 9 with 0.09 or using an annual rate directly in a monthly recurrence produces a result that may look precise but is mathematically wrong. Units are part of the formula.
Equal payments form a geometric relationship
E = P × r × (1+r)^n / ((1+r)^n − 1)
After one month, the balance grows to P(1+r), then payment E is removed. Repeating this recurrence produces powers of (1+r). Requiring the balance after n payments to be zero and solving for E produces the formula above.
Zero-interest special case
When r = 0: E = P / n
The normal formula becomes 0/0 at zero interest, so a correct calculator uses the simpler limit case. Special cases are not optional implementation details; they are part of the mathematical model.
Do not confuse flat and reducing rates
A flat-interest estimate computes interest on the original principal for the full term. Reducing-balance interest shrinks with the outstanding amount. Identical percentage labels therefore need not imply identical payment costs unless the calculation method is also identical.
One payment updates four quantities
interestₘ = balanceₘ₋₁ × r principalₘ = paymentₘ − interestₘ balanceₘ = balanceₘ₋₁ − principalₘ
Early in the loan, the balance is high, so interest consumes a larger fraction of the fixed EMI. Later, lower interest allows more of the same payment to reduce principal. The last payment is usually adjusted slightly because currency rounding and the exact remaining balance may not equal one full EMI.
An extra payment goes directly into the planned payment amount. Because it reduces balance sooner, it also reduces future interest—a compounding benefit rather than a simple one-month saving.
₹5,00,000 at 9% for five years
- Monthly rate:
r = 9/(12×100) = 0.0075. - Payments:
n = 5×12 = 60. - Growth factor:
(1.0075)^60 ≈ 1.5657. - Substitution gives EMI ≈ ₹10,379.18.
- Month 1 interest:
5,00,000×0.0075 = ₹3,750. - Month 1 principal:
10,379.18−3,750 = ₹6,629.18. - New balance: approximately
₹4,93,370.82.
| Scenario | Monthly plan | Expected effect |
|---|---|---|
| Regular | Scheduled EMI | 60 payments |
| Extra ₹2,000 | EMI + ₹2,000 | Earlier payoff and lower interest |
The program calculates the exact iterative comparison rather than estimating savings by multiplying ₹2,000 by a guessed number of months.
Complete Python implementation
The program separates the closed-form EMI calculation from the iterative amortization schedule. It compares a regular schedule with an optional extra-payment schedule and prints the first twelve rows plus the final payment.
Loading source…Trace the first payment
- Record inputs with units.
- Convert the annual percentage.
- Calculate compound growth.
- Compute the scheduled payment.
- Charge interest on opening balance.
- Separate the payment components.
- Update outstanding principal.
- Continue the recurrence.
- Compare the what-if schedule.
Press Next to begin.
Test the model, not only the interface
Zero interest
First-row identity
Final balance
Extra-payment monotonicity
Invalid inputs
Separate mathematical output from financial advice
The schedule answers “what follows from these assumptions?” It does not answer whether a person should borrow, prepay or invest elsewhere. A decision also depends on income stability, emergency funds, fees, taxes, inflation, alternative returns and contractual conditions.
| Change | EMI | Total interest |
|---|---|---|
| Higher principal | Increases proportionally | Increases |
| Higher rate | Increases | Increases |
| Longer term | Usually decreases | Usually increases |
| Extra monthly payment | Chosen outflow increases | Decreases under model |
Algorithmic runtime is O(m), where m is the number of payments generated; the closed-form EMI alone is O(1).
Check the mathematics
Month 2 interest is calculated on which amount?
What is EMI when annual rate is zero?
Extensions
- Support a one-time prepayment in a selected month.
- Compare reducing-balance and explicitly defined flat-interest plans.
- Generate yearly principal-versus-interest summaries.
- Add a rate change after a fixed number of months.
- Use decimal currency arithmetic and a documented rounding policy.
Explain assumptions before formulas
Why is EMI not simply principal divided by months?
Because each month the outstanding balance earns interest. Equal payments must cover both that interest and enough principal to reduce the balance to zero.
Why does a longer term often cost more?
The monthly amount may fall, but interest is charged across more periods, so cumulative interest generally rises.
Why handle zero interest separately?
The standard formula has r in the numerator and a denominator that also becomes zero. The limiting relationship is simple equal division.
How do extra payments save more than their face value?
They reduce principal immediately, which lowers interest in every later month and can remove entire end-of-loan payments.
What numerical issue matters?
Binary floating point and repeated rounding can leave a tiny balance. Production systems use contractual rounding and suitable decimal/integer currency representation.
A formula becomes useful through a schedule and checks
The EMI formula gives one number; amortization explains that number month by month. Strong mathematical software combines consistent units, a derived formula, recurrence, special cases, invariants and transparent limitations.
