An interest calculator for years works out how much interest you pay or earn over a set number of years, based on the principal amount, the annual interest rate, and the loan or investment term. You enter the principal, the APR, and the term in years, and you get back the monthly payment and the total interest. This page gives you the calculator, the formula behind it, and a step-by-step example so you can see exactly where the numbers come from.
Formula
The calculator uses the standard amortizing loan formula for a fixed-rate, level-payment loan:
Monthly payment = P × (r × (1 + r)^n) / ((1 + r)^n − 1)
Where:
- P = loan principal (the amount borrowed), in dollars
- r = monthly interest rate, equal to the annual percentage rate (APR) divided by 12 and then by 100 (so an 8% APR gives r = 0.08/12 = 0.0066667)
- n = total number of monthly payments, equal to the term in years multiplied by 12
Total interest is then simply the monthly payment multiplied by the number of payments, minus the principal.
Worked Example
Using the default values from the calculator above: a $20,000 loan at 8% APR for 5 years.
- Convert APR to monthly rate: r = 8 / 100 / 12 = 0.0066667
- Number of payments: n = 5 × 12 = 60
- Plug into the formula: pmt = 20000 × (0.0066667 × (1.0066667)^60) / ((1.0066667)^60 − 1)
- Compute (1.0066667)^60 ≈ 1.48985
- Numerator: 20000 × 0.0066667 × 1.48985 ≈ 198.647
- Denominator: 1.48985 − 1 = 0.48985
- Payment = 198.647 / 0.48985 ≈ 405.53
So the monthly payment is about $405.53. Total paid over 60 months is 405.53 × 60 = $24,331.80, giving total interest of $24,331.80 − $20,000 = $4,331.80. The calculator shows the same rounded values.
Assumptions
- The interest rate is fixed for the entire term.
- Payments are made at the end of each month (ordinary annuity).
- Interest compounds monthly at APR/12.
- No fees, taxes, insurance, PMI, or escrow are included.
- The loan is fully amortized—each payment covers interest plus principal, and the balance reaches zero after the last payment.
How to Read the Results
The monthly payment is the amount you would pay each month to fully repay the loan by the end of the term. The total interest is the extra cost of borrowing beyond the principal. For example, a $20,000 loan at 8% for 5 years costs about $4,332 in interest, so you actually repay about $24,332. If you lengthen the term, the monthly payment drops but the total interest rises—because you are paying interest for a longer time. Shortening the term does the opposite: higher monthly payment, less total interest.
Common Mistakes and Misconceptions
- Using the annual rate directly in the monthly formula: Always divide the APR by 12. For 8%, the monthly rate is 0.6667% (0.006667 as a decimal).
- Mixing up years and months: If you enter the term in years but the formula expects months, you will get a wildly wrong payment. Here the calculator handles the conversion automatically.
- Ignoring rounding: The calculator rounds the payment to cents, and then uses that rounded payment to compute total interest. In reality, lenders may round differently, so your exact total may differ by a few cents.
- Thinking interest is simple: For most loans, interest is compounded monthly, not simple. The formula above accounts for compounding.
- Assuming the APR equals the nominal rate: APR includes certain fees and costs, so the actual interest rate may be slightly different. This calculator uses the APR as the annual rate.
When to Use This Calculator
Use this calculator whenever you want a quick estimate of monthly payments and total interest for a fixed-rate loan over a term measured in years. It works for personal loans, auto loans, student loans, and some mortgages. It is especially useful for comparing different loan terms: for instance, you can see how a 3-year vs. 5-year term changes your payment and total interest. However, it does not account for variable rates, interest-only periods, balloon payments, or prepayment penalties.
Alternatives and Extensions
If your situation is different, consider these variations:
- Extra payments: If you plan to pay extra each month, you need a calculator that models prepayment, because extra payments reduce the balance faster and save interest.
- Variable rates: If your rate changes, a fixed-rate formula won’t be accurate. You would need a more complex model.
- Interest-only loans: If you pay only interest for a period, the payment is simply principal × monthly rate, but the principal doesn’t decrease.
- Balloon loans: If a large final payment is due, the amortization schedule is different.
- Savings accounts or investments: For compound interest on savings, use a different formula: A = P(1 + r/n)^(nt).
Frequently Asked Questions
How do I calculate interest over multiple years?
For a simple interest loan, multiply the principal by the annual rate and by the number of years. For a compound-interest loan (most loans), use the amortization formula shown above, which accounts for interest on the remaining balance each month.
What is the difference between APR and interest rate?
The interest rate is the cost of borrowing the principal. APR (Annual Percentage Rate) includes the interest rate plus certain fees and costs, expressed as a yearly rate. This calculator uses APR as the annual rate, so if your loan has significant fees, the actual interest rate may be lower than the APR.
Does the calculator work for mortgages?
Yes, for a fixed-rate, fully amortizing mortgage it gives the correct monthly payment and total interest. But it does not include property taxes, homeowners insurance, or PMI, which are often part of your actual monthly payment.
Why does total interest increase with a longer term?
Because you are borrowing the money for a longer period. Even though the monthly payment is lower, you make more payments, and each payment includes interest on the remaining balance. The extra time allows more interest to accrue.
Can I use this for a savings account?
No, this calculator is for loans that are amortized (paid down over time). For savings, you want a compound interest calculator that shows how a deposit grows. The formula is different: A = P(1 + r/n)^(nt).
What if I make extra payments?
Extra payments reduce the principal faster, which shortens the loan term and reduces total interest. This calculator does not model extra payments; you would need a prepayment calculator to see the effect.
This result is an estimate based on the inputs and assumptions shown. Your lender’s disclosure will give the exact figures for your specific loan.
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
- How to Pay Off a 72-Month Car Loan Faster$405.53
- Is a 72 Month Car Loan Bad?
- Average Car Loan Payment: Monthly Cost Data$405.53
- 20,000 Car Loan Monthly Payment: What to Expect$405.53
- Car Loan Cost per Month: What to Expect$405.53
- 20k Car Loan Monthly Payment: How Much?$405.53