The loan term is the number of monthly payments needed to repay a loan, and the EMI formula can be rearranged to calculate it from the loan amount, monthly payment, and interest rate. Enter the loan amount, annual interest rate, and term below to calculate the monthly EMI and the total interest; the term itself is an input because this calculator calculates EMI for a specified term.
Formula
To calculate the term directly from a known fixed monthly payment, rearrange the standard fixed-payment loan formula:
n = −ln(1 − rP / M) ÷ ln(1 + r)
- n is the number of monthly payments.
- P is the starting principal, or loan amount, in dollars.
- M is the monthly payment in dollars.
- r is the monthly interest rate as a decimal: annual APR ÷ 12 ÷ 100.
The result may not be a whole number. If payments are made monthly, the number of payments needed to finish is generally rounded up to the next whole month. The calculation is only possible when M is greater than rP: the payment must exceed the interest charged in the first month. The calculator above instead asks for the term in years and calculates the level monthly payment using M = P × r ÷ [1 − (1 + r)−n], where n is years × 12. It rounds that payment to cents, then calculates total interest from the rounded payment.
Worked Example
Using the calculator’s default inputs: P = $20,000, APR = 8%, and term = 5 years. This example calculates the payment and total interest for that term; it does not assume a monthly payment to solve for the term.
- Convert the annual APR to a monthly decimal rate: r = 8 ÷ 1,200 = 0.0066667.
- Convert the term to months: n = 5 × 12 = 60.
- Substitute into the payment formula: M = 20,000 × 0.0066667 ÷ [1 − (1 + 0.0066667)−60].
- The monthly payment is $405.53 when rounded to cents.
- Total interest, using the rounded payment, is $405.53 × 60 − $20,000 = $4,331.80.
For comparison, if the same loan amount and APR had a known monthly payment of $405.53, the rearranged term formula gives approximately 60 payments (small differences can arise because the displayed payment is rounded to cents). The calculator’s outputs for its stated defaults are $405.53 per month and $4,331.80 in total interest.
How the Loan Term Calculation Works
Each payment covers that period’s interest first; whatever remains reduces the principal. Early in a level-payment loan, the outstanding balance is larger, so more of the payment goes toward interest. As the balance falls, the interest portion shrinks and more of each payment reduces principal. The term is therefore linked to the amount borrowed, the payment size, and the interest rate—not just the number of years written in a loan offer.
The term equation comes from solving the standard amortization equation for n. A larger payment generally means fewer payment periods, while a higher rate generally means more of each payment is absorbed by interest. When the payment only equals the first period’s interest, the principal does not decline; when it is lower, the balance can grow. In either case, there is no finite payoff term under the level-payment assumptions.
Using a Term Estimate
To estimate a term from a payment you already know, use the direct formula and keep all inputs in consistent units. Convert the APR to a monthly decimal, use the original principal rather than the current balance unless you are calculating from today onward, and use the amount actually applied to principal and interest as M.
- For an APR of 8%, use r = 0.08 ÷ 12, not 8 ÷ 12 and not 0.08.
- Check that the monthly payment exceeds rP. If it does not, the formula cannot produce a payoff term.
- Round the resulting payment count up to a whole month when estimating the final payment date.
- For a loan with a changed rate, irregular payments, or extra payments, calculate each period using the actual schedule rather than treating the whole loan as a fixed-rate level-payment loan.
The calculator on this page runs the reverse direction: enter the planned term in years to estimate the monthly payment. Use a term in months divided by 12 if needed, and remember that the calculator’s payment uses the entered APR divided by 12 as a monthly rate.
Assumptions
- The interest rate is fixed for the full modeled term.
- Payments are equal, made monthly, and occur at the end of each monthly period.
- Interest compounds monthly at APR ÷ 12, consistent with the standard formula used here.
- Fees, taxes, insurance, PMI, and escrow are not included; the calculation models principal and interest only.
- The payment is rounded to the nearest cent before total interest is calculated, so actual lender schedules may differ slightly.
Common Mistakes and Limits
A frequent mistake is treating APR as the monthly rate. An 8% APR is entered as 8 in this calculator; the formula converts it to 8 ÷ 1,200 per month. Another is assuming that the term equation can calculate a payoff period from any payment. It cannot when the payment fails to cover interest, and it does not model a changing rate or a payment schedule with skipped or irregular installments.
There is also a difference between a calculated term and a contract’s stated maturity. A lender may use a particular payment schedule, day-count method, rounding convention, or final-payment adjustment. Extra payments can shorten the actual payoff period if applied to principal, while fees or payment protections can change the total cash outlay. Those details are outside this simplified formula, so compare its assumptions with the loan documents rather than interpreting its estimate as a promise.
Frequently Asked Questions
What is the formula to calculate loan term from EMI?
For principal P, monthly payment M, and monthly rate r, use n = −ln(1 − rP/M) ÷ ln(1 + r). The result is the number of monthly payments, provided M exceeds the monthly interest at the start.
How do I convert APR to a monthly interest rate?
For an APR entered as a percentage, divide it by 1,200 to get the monthly rate as a decimal. For example, 8% ÷ 1,200 = 0.0066667 per month under the monthly-rate assumption.
Can I calculate the term if my EMI only covers interest?
No. If the payment equals the interest due, the principal does not decrease, so the loan does not reach a zero balance in a finite number of equal payments. A payment below that amount may allow the balance to grow.
Why can the calculated term differ from the lender’s term?
The estimate assumes a fixed rate, equal end-of-month payments, monthly compounding, and a simplified rounding method. Contract schedules, fees, rate changes, payment timing, and a final adjusted payment can produce different figures.
Does a longer term always mean lower total interest?
No. For the same principal and rate, a longer term generally lowers the required level monthly payment but involves more payment periods, which can increase total interest. The actual figures depend on the loan’s terms and charges.
This result is an estimate; the lender’s disclosure gives the exact figures.
Related
Formula used
in p | Loan amount | $ | 20000 | 1 | 100000000 in apr | Interest rate (APR) | % | 8 | 0.01 | 100 in yrs | Loan term | years | 5 | 0.0833 | 50 out pmt | Monthly payment | $ | p * (apr / 1200) / (1 - (1 + apr / 1200) ^ -(yrs * 12)) | 2 out int | Total interest | $ | pmt * yrs * 12 - p | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard loan formula for this calculation, fixed rate and monthly compounding unless stated, rounded as each result states. Not financial advice; no lender, rate or product is recommended. See formulas and assumptions, the disclaimer or report an error.
More in this section
- Compound Interest Formula: Calculate Growth Over Time$1,647.01
- Compound Interest House Loan Calculator$405.53
- Compound Interest Formula With e: Continuous Growth$16,487.21
- Compound Interest Formula: Solve for r2.4114 %
- Compound Interest Checking Balance Calculator$1,105.08
- Compound Interest Formula for Loan Repayment$405.53