Loan Term Calculator

Loan Term Calculator

Leading AI Skill PRO

Enter Calculation

Formula

n=−ln⁡(1−P·iM)ln⁡(1+i)where{P=Loan AmountM=Monthly Paymenti=Annual Rate (%)1200\begin{gathered} n = \dfrac{-\ln\!\left(1 - \dfrac{P \cdot i}{M}\right)}{\ln(1 + i)} \\[1.5em] \text{where}\quad \left\{ \begin{aligned} P &= \text{Loan Amount} \\ M &= \text{Monthly Payment} \\ i &= \dfrac{\text{Annual Rate (\%)}}{1200} \end{aligned} \right. \end{gathered}
Usage stats

Advertisement

Results

Time to Repay
57.7
months
In years 4.81 years
Total paid 23,072.05
Total interest 3,072.05

Report an error on this page

What Is the Loan Term Calculator?

The Loan Term Calculator tells you how long it will take to pay off a loan based on three things: the amount you borrowed, the annual interest rate, and the fixed monthly payment you make. Instead of asking "what is my payment?", this tool flips the standard amortization formula to answer "how many months until I'm debt-free?". It works for personal loans, auto loans, mortgages, student loans, and credit card balances.

How to Use It

Enter the loan amount (principal), the annual interest rate as a percentage, and the monthly payment you intend to make. The calculator returns the number of months and years to repay, plus the total amount paid and total interest over the life of the loan. If your payment is smaller than the monthly interest charge, the loan can never be repaid and the tool will warn you to raise the payment.

The Formula Explained

The term is derived from the amortization equation by solving for the number of periods \(n\):

$$n = \dfrac{-\ln\!\left(1 - \dfrac{P \cdot i}{\text{Payment}}\right)}{\ln(1 + i)}$$, where \(i\) is the monthly interest rate equal to the annual rate divided by 12, and \(P\) is the principal. When the interest rate is zero, the term simplifies to \(\text{principal} \div \text{payment}\).

Advertisement
Diagram showing loan amount, interest rate and payment feeding into a calculation that outputs the number of months n.
How the inputs combine to produce the number of payments \(n\).

Worked Example

Suppose you borrow $20,000 at 6% annual interest and pay $400 per month. The monthly rate is \(i = 0.06 \div 12 = 0.005\). Then $$n = \frac{-\ln(1 - (20000 \times 0.005) / 400)}{\ln(1.005)} = \frac{-\ln(1 - 0.25)}{\ln(1.005)} = \frac{-\ln(0.75)}{0.0049875} \approx \frac{0.287682}{0.0049875} \approx 57.68 \text{ months}$$, or about 4.8 years. Total paid \(\approx \$23{,}073\) and total interest \(\approx \$3{,}073\).

Advertisement
Declining curve of loan balance over time reaching zero at the loan term n.
The loan balance falls to zero after \(n\) monthly payments.

How Payment Size Changes the Loan Term

The table below uses the same loan in every row: $20,000 at 6% APR (monthly rate \(i = 0.005\)). Only the monthly payment changes. Months come from \(n = \dfrac{-\ln(1 - P i / M)}{\ln(1+i)}\) and are rounded up to whole payments.

Monthly payment Months to repay Years Total paid (payment × months) Total interest
$250 103 (exact n ≈ 102.42) 8.58 $25,750 $5,750
$300 82 (n ≈ 81.30) 6.83 $24,600 $4,600
$400 58 (n ≈ 57.68) 4.83 $23,200 $3,200
$500 45 (n ≈ 44.74) 3.75 $22,500 $2,500
$700 31 (n ≈ 30.91) 2.58 $21,700 $1,700

Minimum payment: the first month's interest is \(20{,}000 \times 0.005 = \$100\). The payment must exceed this amount, otherwise the balance never falls and the logarithm in the formula is undefined. At exactly $100 the loan is never repaid.

Note: "Total paid" multiplies the payment by the rounded-up number of months. In practice the last payment is smaller, so the true total is slightly lower. For the $250 row, for example, the final payment is only about $105.

Going from $250 to $500 a month cuts the term by more than half (103 to 45 months) and saves roughly $3,250 in interest. Extra payment has a larger effect when the payment is close to the interest-only level.

Central bank policy rates today

The latest official policy rates of major central banks, updated automatically — the benchmark that bank deposit and loan rates follow.

Federal Reserve · United States
3.75–4.00%
As of
2026-11-12
Change in 1 year
0 pp

Latest change Up +25 bp Federal Reserve changed its rate on 2026-09-17: from 3.50–3.75% to 3.75–4.00%.

Federal Reserve
Central bankPolicy rateAs ofChange in 1 year
Banco Central do Brasil (Selic) · Brazil13.75%2026-11-15−1.25 pp
Banco de México · Mexico6.25%2026-11-10−1.00 pp
Federal Reserve · United States3.75–4.00%2026-11-120 pp
ECB2.50%2026-11-15+0.50 pp
Sveriges Riksbank · Sweden2.00%2026-11-13+0.25 pp
Saudi Central Bank (SAMA) · Saudi Arabia4.50%2026-10-290 pp
Reserve Bank of Australia · Australia4.60%2026-10-31+1.00 pp
Central Bank of the Republic of Türkiye · Türkiye36.00%2026-11-06−3.50 pp
Bank of Russia · Russia14.00%2026-11-10−2.50 pp
People’s Bank of China · China3.00%2026-11-100 pp
Bank of Canada · Canada2.50%2026-11-12+0.25 pp
Reserve Bank of India · India5.50%2026-10-190 pp
Bank of England · United Kingdom4.00%2026-11-150 pp
Bank of Japan · Japan1.25%2026-11-10+0.75 pp
Bank of Korea · South Korea3.00%2026-11-02+0.50 pp

Federal Reserve: key rates and overnight market rates

The rates that frame monetary policy and the overnight market rate they steer, each with the date of its latest published value.

RateLevelAs ofChange in 1 year
Federal funds target range3.75–4.00%2026-11-120 pp
Effective federal funds rate (EFFR)3.88%2026-11-12+0.01 pp
Secured Overnight Financing Rate (SOFR)3.90%2026-11-12−0.08 pp
Effective federal funds rate (EFFR)

Each rate keeps the date of its own latest published value; overnight market rates are published on the next business day.

Latest figure: 2026-11-12 Data last updated 2026-11-15 · current

Source: Banco Central do Brasil ODbL; Bank for International Settlements (BIS) Terms of permitted use of BIS statistics; Federal Reserve Bank of New York New York Fed Terms of Use; Board of Governors of the Federal Reserve System Public domain (U.S. government work); European Central Bank ECB reuse policy; Sveriges Riksbank Riksbank open data terms; The World Bank Group CC BY 4.0; Reserve Bank of Australia 2026 RBA copyright terms (Cash Rate); Bank of Canada Bank of Canada terms of use; Bank of England Open Government Licence v3.0

The one-year change is computed by CalculatorLib from these data. The EFFR and SOFR are subject to the Terms of Use posted at newyorkfed.org. The New York Fed is not responsible for publication of the EFFR and SOFR by CalculatorLib, does not sanction or endorse any particular republication, and has no liability for your use.

Source details and methodology

Interest rates in United States: all figures and history

FAQ

Why does my payment have to exceed the interest? If your monthly payment only covers (or doesn't cover) the interest accruing each month, the principal never shrinks, so the loan would last forever.

Does paying more shorten the term? Yes. Even small increases in the monthly payment significantly reduce the number of months and the total interest paid.

Is the answer exact? The formula gives a precise mathematical term; real loans round to whole payments, so your final payment may be slightly smaller than the others.

Last updated:

Most popular in Financial

View all Financial calculators