How to Calculate Compound Interest: A Complete Guide for 2026
Last reviewed: June 2026
You open a savings account and see a rate of 3.5 % APR. The balance shows $5,000 today. You wonder how much you will have in five years if the interest compounds monthly. The number on the statement does not answer that question.
Knowing the exact future value helps you compare accounts, plan retirement, or decide whether a loan is worth taking. A few dollars each month can become hundreds over time. Mis-calculating can cost you thousands.
This post shows you how to compute compound interest by hand, with a calculator, and with free online tools. It also explains common pitfalls, the effect of compounding frequency, and how to use the formula for loans, investments, and retirement accounts.
This article provides educational information only and does not constitute financial or legal advice.
Key Takeaways
- The basic compound interest formula is FV = PV × (1 + r/n)^(n × t)
- Changing the compounding frequency (annual, quarterly, monthly, daily) can change the final amount by several percent.
- You can rearrange the formula to solve for any missing variable: rate, time, or payment size.
- A spreadsheet or free online calculator reduces errors and speeds up scenario testing.
- For loans, use the same formula but treat the payment as a negative cash flow.
- Always verify the rate and compounding terms with your financial institution before locking in a product.

Understanding the Core Formula
For a vetted, regularly updated list of tools that can help, explore our AI finance tools directory.
Compound interest grows your principal by adding interest on interest. The standard equation is:
Future Value (FV) = Present Value (PV) × (1 + r / n)^(n × t)
PV is the amount you start with. r is the annual nominal rate expressed as a decimal (5 % becomes 0.05). n is the number of compounding periods per year. t is the number of years the money stays invested or borrowed.
Each part of the formula has a clear purpose. The term (1 + r / n) shows how much the balance grows each compounding period. Raising it to the power n × t repeats that growth for every period over the whole term.
Example: $5,000 at 3.5 % compounded monthly for 5 years
- PV = 5,000
- r = 0.035
- n = 12 (monthly)
- t = 5
Plug in:
(1 + 0.035 / 12) = 1.0029167
Exponent = 12 × 5 = 60
FV = 5,000 × (1.0029167)^60
Calculate the power: (1.0029167)^60 ≈ 1.197
FV ≈ 5,000 × 1.197 = $5,985
After five years, the account holds $5,985. The interest earned is $985.

How Compounding Frequency Changes the Result
If the same 3.5 % rate compounds annually, n = 1. The calculation becomes:
(1 + 0.035 / 1) = 1.035
Exponent = 1 × 5 = 5
FV = 5,000 × (1.035)^5 ≈ 5,000 × 1.188 = $5,940
Monthly compounding adds $45 more than annual compounding. The difference grows larger with higher rates or longer terms.
Daily compounding
Daily compounding uses n = 365. The formula yields:
(1 + 0.035 / 365) ≈ 1.00009589
Exponent = 365 × 5 = 1,825
FV ≈ 5,000 × (1.00009589)^1,825 ≈ 5,000 × 1.198 = $5,990
Daily compounding adds another $5 over monthly compounding. The gain diminishes as n becomes large because the limit approaches continuous compounding.
Solving for the Interest Rate
Sometimes you know the desired future amount and want to find the rate needed to reach it. Rearrange the formula to isolate r:
r = n × [ (FV / PV)^(1 / (n × t)) − 1 ]
Example: Grow $10,000 to $15,000 in 8 years with quarterly compounding
- FV = 15,000
- PV = 10,000
- n = 4
- t = 8
Compute:
FV / PV = 1.5
Exponent denominator = 4 × 8 = 32
Root = 1.5^(1 / 32) ≈ 1.0136
Subtract 1: 0.0136
Multiply by n: 4 × 0.0136 = 0.0544
Rate ≈ 5.44 % annually.
You need a nominal rate of about 5.44 % compounded quarterly to hit $15,000.
Determining the Required Time
If you have a target amount and a fixed rate, you can solve for the number of years.
t = [ ln(FV / PV) ] / [ n × ln(1 + r / n) ]
ln denotes the natural logarithm.
Example: $2,000 grows to $3,000 at 4 % compounded semi-annually
- PV = 2,000
- FV = 3,000
- r = 0.04
- n = 2
Compute:
FV / PV = 1.5
ln(1.5) ≈ 0.4055
ln(1 + 0.04 / 2) = ln(1.02) ≈ 0.01980
t = 0.4055 / (2 × 0.01980) ≈ 10.24 years
It will take a little over ten years to reach $3,000.

Using the Formula for Regular Payments
Many savings plans involve a fixed contribution each period. The future value of an annuity formula handles this:
FV = P × [ (1 + r / n)^(n × t) − 1 ] / (r / n)
P is the payment per period.
Example: $200 monthly deposit, 3 % APR, 10 years
- P = 200
- r = 0.03
- n = 12
- t = 10
First compute (1 + 0.03 / 12) = 1.0025
Exponent = 12 × 10 = 120
(1.0025)^120 ≈ 1.349
Subtract 1: 0.349
Divide by (r / n) = 0.03 / 12 = 0.0025
0.349 / 0.0025 = 139.6
FV = 200 × 139.6 = $27,920
Your contributions total $24,000, but interest adds $3,920.
Practical Ways to Compute Compound Interest
Hand calculation
Use a scientific calculator for the exponent and power steps. Write each step on paper to avoid mistakes.
Spreadsheet method
In Excel or Google Sheets:
- Cell A1: PV, Cell B1: Rate (as decimal)
- Cell C1: Periods per year (n)
- Cell D1: Years (t)
Formula in E1: `=A1(1+B1/C1)^(C1D1)`
For regular payments, use the FV function:
`=FV(rate/n, n*t, -payment, -PV, 0)`
Negative signs indicate cash outflows.
Free online calculators
Websites such as the Federal Reserve’s “Compound Interest Calculator” or reputable personal-finance portals let you plug numbers into the same formula. They also provide charts that show growth over time.
Common Mistakes to Avoid
- Treating the rate as a percent: Enter 5 % as 0.05, not 5.
- Mixing compounding periods: If the rate is quoted annually, do not use a monthly rate without adjusting n.
- Forgetting to convert time units: A loan of 18 months is 1.5 years; use t = 1.5.
- Ignoring fees: Some accounts charge monthly maintenance fees that reduce the effective rate.
- Using the wrong sign for payments: In spreadsheet functions, payments must be negative if they are cash outflows.
Double-check each input before finalizing a decision.

How Compound Interest Impacts Different Financial Products
Savings accounts and CDs
Banks usually quote an APR with a specific compounding frequency. A 2 % APY (annual percentage yield) already includes compounding effects, so you can treat the APY as the effective rate. If only APR is given, apply the formula with the disclosed n.
Retirement accounts (401(k), IRA)
Contributions are often made each paycheck. Use the annuity formula with the account’s assumed average return. Remember that returns are not guaranteed; treat the rate as an estimate.
Mortgages and auto loans
Loans use the same mathematics, but the result is the total amount you will pay, not the amount you earn. The payment amount can be solved with the PMT function:
`=PMT(rate/n, n*t, -PV)`
The sign convention remains important.
Credit cards
Credit cards compound daily. Even a modest 18 % APR can generate significant interest if you carry a balance. Use n = 365 in the formula to see the true cost.
Building Your Own Compound-Interest Calculator
If you like tinkering, a short script in Python or JavaScript can automate the process. Below is a minimal Python example that runs on any recent interpreter:
“`python def compound_interest(pv, rate, years, freq): r = rate / 100 n = freq fv = pv * (1 + r / n) ** (n * years) return round(fv, 2)
# Example usage print(compound_interest(5000, 3.5, 5, 12))
# monthly compounding “`
Replace the arguments with your own numbers. The function returns the future value rounded to two decimals.
When to Use Continuous Compounding
Continuous compounding assumes interest is added an infinite number of times per year. The formula simplifies to:
FV = PV × e^(r × t)
where e ≈ 2.71828. This model appears in advanced finance and some bond pricing. For everyday banking, discrete compounding (monthly, quarterly) is sufficient.
Summary of Steps
- Identify PV, r, n, and t.
- Convert r to a decimal.
- Compute (1 + r / n).
- Raise the result to the power n × t.
- Multiply by PV for a lump-sum future value.
- For regular payments, use the annuity formula.
- Verify the result with a spreadsheet or online tool.
Follow these steps each time you evaluate a savings option, a loan, or a retirement plan.
Frequently Asked Questions
How do I convert an APR to an APY?
APY accounts for compounding. Use the formula APY = (1 + APR / n)^n − 1, where n is the number of compounding periods per year. For a 4 % APR compounded monthly, APY = (1 + 0.04 / 12)^12 − 1 ≈ 4.07 %.
Can I use the compound interest formula for variable rates?
The basic formula assumes a constant rate. For variable rates, break the timeline into segments where the rate is fixed, compute the future value for each segment, and use the ending balance of one segment as the starting balance of the next.
What is the difference between nominal and effective rate?
The nominal rate is the quoted annual rate before compounding. The effective rate (or APY) reflects the impact of compounding over a year. Effective rate = (1 + nominal / n)^n − 1.
How does inflation affect my compound interest calculations?
Inflation reduces purchasing power. To see real growth, subtract the inflation rate from the nominal return. For example, a 5 % nominal return with 2 % inflation yields a real return of about 3 %.
Is it better to have interest compounded daily or monthly?
Daily compounding yields a slightly higher amount, but the difference is small for typical rates and terms. Choose the option that offers the higher APY, as that already includes the compounding effect.
Should I include taxes in my compound interest calculations?
Interest earned is generally taxable. To estimate after-tax growth, multiply the nominal rate by (1 − tax_rate). For a 30 % tax bracket and a 4 % rate, the after-tax rate is 2.8 %. Use that rate in the formula for a more realistic picture.
Related Reading: What Is TrumpRx.gov? Good or Bad? Your Complete Guide to Lower Prescription Drug Prices in 2026 | How Much Life Insurance Do I Need? Calculate Now! | Your Guide to the Best Cyber Liability Coverage Options That Won’t Break the Bank