Every claim below comes from reading the calculator's source code, not from testing the page. The EMI calculator is this site's own tool for home, car and personal loans — here is how it computes your EMI, exactly as implemented.
The whole calculator hangs on one line of code in emi.js. It takes your loan amount (P), the monthly rate (r = annual rate ÷ 1200), and the months (n), and applies the standard EMI formula: EMI = P × r × (1+r)n / ((1+r)n − 1). The result is rounded to the nearest paisa and becomes your EMI for the whole loan. One special case: at a zero rate, the code simply divides the principal by the months.
Take the calculator's default example — ₹50,00,000 at 9% over 20 years (240 months). The formula gives an EMI of ₹44,986.30 and total interest of ₹57,96,710.53: about ₹1.08 crore repaid on a ₹50 lakh loan. The EMI never changes after this step, unless a prepayment forces a recalculation.
Once the EMI is fixed, the code builds the loan month by month. Each month it charges interest on the balance still outstanding — balance × monthly rate, rounded to the paisa — and whatever is left of the EMI pays down the principal. This is the reducing-balance method: interest is always charged on what you still owe, never on the original loan amount.
The split is lopsided at first. In month one, ₹37,500 of the ₹44,986.30 EMI is interest and only ₹7,486.30 is principal — 83% of your first payment goes to the lender. By the end of year one you have paid ₹4,46,200 in interest against just ₹93,636 of principal. But by the final month the split has reversed: ₹334.87 of interest and ₹44,649.96 of principal.
Every figure is rounded to the paisa, so tiny leftovers accumulate — the code's comment puts the maximum at about ₹3.60 over 30 years — and they are folded into the final instalment. That is why the last EMI is ₹44,984.83, ₹1.47 less than the other 239. If the remaining balance ever drops below ₹5, the code closes the loan out in that month.
The formula looks modern, but its ancestor was published in London in 1613 — the same year Shakespeare's Globe Theatre burned down during a performance of Henry VIII. That year, Richard Witt published Arithmeticall Questions, one of the first English books on compound interest, full of tables for annuities, leases and loans. The Journal of the Institute of Actuaries still cites it as a landmark. Witt's readers were merchants who needed the same calculations the calculator now performs, worked out by hand from printed tables. The maths has not changed in four hundred years — only the speed has.
Each prepayment is applied before that month's EMI, straight off the outstanding balance — so the interest charged that month is already lower. You choose the effect: reduce tenure keeps the EMI the same and ends the loan sooner, or reduce EMI keeps the original end date and recomputes the EMI from the remaining balance over the remaining months.
Run the numbers on the example loan. A ₹2,00,000 prepayment in month 12, set to reduce tenure, closes the loan 22 months early and saves ₹8,19,667 in interest. The same ₹2,00,000 set to reduce EMI instead drops the EMI to ₹43,155.54 from month 13 and saves ₹2,19,245. Same money, very different outcomes — which is why the page advises reducing tenure when your monthly budget is comfortable. You can also set a yearly bonus prepayment, applied every 12 months until the loan closes.
Here is an honest limitation, stated in the calculator's own FAQ: the code has no floating-rate tracker. If your lender resets the rate, re-run the calculator with the new rate and the remaining balance as a fresh loan. A rate-reset feature is on the roadmap, but not in the code today. Tenure changes are simpler: enter years or months and everything recalculates as you type, after a short 280-millisecond pause.
Two things the code keeps out of the EMI. The processing fee never enters the principal or the EMI maths — it is an upfront cost, added only to the total cost of the loan. And the calculator refuses nonsense inputs: a loan above ₹100 crore, a rate above 60%, or a tenure above 30 years each get a plain-English error.
What you see on the page is the loop's full output: an amortisation schedule with every month's EMI, principal, interest, prepayment and closing balance, switchable between monthly and yearly views, twelve rows per page, with a CSV download. Above it sit two charts: principal versus interest per year, and the balance over time — with a dashed line showing where it would have been without your prepayments.
And all of it runs in your browser: no server call anywhere in the calculation, so your loan details never leave your device. The formula, the loop and the rounding are all right there in the source. For a sibling look at the site's other flagship tool, see Inside the SWP Simulator — and for the other side of the interest coin, your FD's 7% isn't really 7%.
An EMI feels like a fixed monthly bill, but it is really a small program: one formula sets the payment, and then a loop chips away at the balance, charging interest only on what is left. Knowing that loop is what makes the choices visible — prepay early and the interest never gets charged at all, let the rate rise and the same loop quietly stretches your loan. The calculator does not decide anything for you; it just runs the loop honestly, to the last paisa.
Related on Poptani Labs: Inside the SWP Simulator: how a retirement withdrawal plan is actually calculated, How Shazam names that tune in seconds — with no idea what the song sounds like, Your FD's 7% isn't really 7%: the real return after tax and inflation. More in this category: Built in the Lab.
Sources: EMI Calculator — Poptani Labs, Cambridge / Journal of the Institute of Actuaries — An Early Book on Compound Interest: Richard Witt's Arithmeticall Questions, National Diet Library — Arithmeticall Questions, 1613