What is Compound Interest Calculator?
How It Works
Enter your initial investment (principal), monthly contribution, estimated annual interest rate, time period in years, and compounding frequency (daily, monthly, quarterly, semi-annually, or annually). The calculator converts your monthly contribution to match the compounding frequency, then iterates period by period: each period, interest is calculated on the current balance, added to the balance, and then the contribution is added. This period-by-period approach matches how real accounts accrue interest and ensures accuracy even when contribution and compounding frequencies differ. The rate variance feature runs the same calculation at higher and lower rates so you can see best-case and worst-case scenarios.
Formula
Basic compound interest (no contributions): A = P ร (1 + r/n)^(nt) With regular contributions (ordinary annuity): A = P ร (1 + r/n)^(nt) + PMT ร [((1 + r/n)^(nt) โ 1) / (r/n)] Where: P = initial principal (initial investment) PMT = contribution per compounding period r = annual interest rate (decimal) n = compounding periods per year t = time in years
Formula Explained
The first term, P ร (1 + r/n)^(nt), calculates how the initial lump sum grows. Each compounding period, the balance is multiplied by (1 + r/n) โ the per-period growth factor. After nt total periods, this multiplication has been applied nt times, which is why we raise it to that power. The second term handles regular contributions. Each contribution also grows by compound interest, but for a shorter time since each is added later. The summation of all these growing contributions forms a geometric series, and the closed-form solution is PMT ร [((1 + r/n)^(nt) โ 1) / (r/n)]. This assumes contributions are made at the end of each period (ordinary annuity). When the interest rate is 0, the formula simplifies to just adding up contributions without growth.
Example
Initial investment: $10,000 Monthly contribution: $100 Annual interest rate: 6% Time: 10 years Compounding: Monthly Calculations: r/n = 0.06/12 = 0.005 nt = 12 ร 10 = 120 periods Contribution per period = $100 Lump sum growth: $10,000 ร (1.005)^120 = $18,193.97 Contribution growth: $100 ร [((1.005)^120 โ 1) / 0.005] = $16,387.93 Future Value: $18,193.97 + $16,387.93 = $34,581.90 Total contributed: $10,000 + ($100 ร 120) = $22,000.00 Total interest earned: $34,581.90 โ $22,000.00 = $12,581.90 Verify: investor.gov shows $34,581 for these inputs โ โ
Tips & Best Practices
- โStart early: 10 years of compounding can be worth more than the contributions themselves.
- โUse the Rule of 72 to quickly estimate doubling time: 72 รท rate% = years to double.
- โEven small monthly contributions add up dramatically over 20-30 years due to compounding.
- โCompare compounding frequencies โ monthly vs annually makes a meaningful difference over long periods.
- โUse the rate variance feature to plan for both optimistic and conservative outcomes.
Common Use Cases
- โขPlanning retirement savings by projecting 401(k) or IRA growth
- โขComparing savings account APY offers from different banks
- โขTeaching students how exponential growth works in finance
- โขEstimating how long it takes to reach a savings goal
- โขModeling investment growth scenarios with different contribution amounts