Compound Interest Calculator
Calculate compound interest with customizable principal, rate, time, frequency and optional monthly contributions.
Reviewed by Aygul Dovletova · Last reviewed
How to Use the Compound Interest Calculator
- Enter the initial principal - the lump sum already in the account at day zero. For a fresh Roth IRA opening, this may be $0; for a 20-year-old brokerage account, it might be the current balance.
- Enter the annual interest rate - the expected return as a nominal annual percent. The Vanguard Total Stock Market fund has averaged roughly 10% nominal since inception; 7% is a widely used real (inflation-adjusted) long-term equity assumption.
- Choose a compounding frequency - annually, semi-annually, quarterly, monthly, or daily. For stock-market investments, annual is the accurate physical model (markets close each day but returns realize on a calendar-year basis). For savings accounts, monthly or daily matches how the bank credits interest.
- Enter the time period - the number of years you plan to let the money grow. Most long-horizon investors use 20-40 years; retirement planners typically model to age 95.
- Enter a monthly contribution (optional) - the amount you will add each month. Include employer 401(k) match as part of this figure when modeling retirement. Set to $0 for a pure lump-sum scenario.
- Read the outputs - final amount, total interest earned, and total contributions (principal plus sum of monthly deposits). The visualization splits the final balance into "money you put in" versus "money the market gave you."
The Compound Interest Formulas at Work
Two formulas combine. The lump-sum piece is the classic compound interest equation A = P(1 + r/n)nt, where P is principal, r is the annual rate, n is compounding periods per year, and t is years. The contribution piece uses the future value of an annuity: FV = PMT × ((1 + i)N - 1) / i, where PMT is monthly contribution, i is the monthly rate, and N is the number of months. The total is the sum. These are standard Time Value of Money equations taught in every finance curriculum and used under the hood by spreadsheet functions like Excel's FV(rate, nper, pmt, pv).
Inside the page, a Preact component parses inputs with parseFloat, computes both pieces, and renders with Intl.NumberFormat. A year-by-year table is generated by iterating through each year and re-applying the formulas - useful for visualizing when compound growth outruns the contribution stream. All math runs in your browser; no request is made to any server with your principal, rate, or contribution amount, so no balance you model here is logged anywhere.
When This Calculator Is the Right Fit
- Investors modeling a 401(k) or Roth IRA with monthly payroll contributions and wanting to see the compound effect over 30-40 years.
- Parents setting up a 529 plan and deciding whether $200/month or $400/month is more realistic for college funding.
- A new graduate running the "what if I invest $500/month from age 23 to 65 at 7%" calculation that demonstrates why starting early matters.
- Comparing the Rule of 72 quick estimate ("72 / rate = years to double") against the precise formula for a sanity check.
- Testing the impact of contribution increases tied to raises - does bumping monthly contribution by 3% a year change the final number meaningfully?
- Building an emergency-fund target: at a 5% HYSA, how long until $300/month accumulates to $20,000?
Things the Formula Does Not Capture
The calculator assumes a constant return rate, but real markets deliver sequences of returns with significant variance. A 7% expected return with 15% standard deviation produces a wide distribution of 30-year outcomes; the median is noticeably below the mean because of geometric versus arithmetic mean drag. Second, inflation is not applied - the output is in nominal future dollars. If you want today's purchasing power, either use a real return rate (nominal minus inflation) or divide the output by (1 + inflation)years. Third, taxes are not modeled. A taxable brokerage account drags returns by 15-25% of dividends and realized gains annually; a traditional 401(k) is tax-deferred (growth untaxed until withdrawal); a Roth IRA is tax-free on qualified withdrawals. For accurate after-tax numbers, you must adjust the return rate downward or model the tax at withdrawal. Fourth, contribution limits change each year - 401(k) maxes at $23,000 in 2024 with $7,500 catch-up at 50+; IRA limits are $7,000 ($8,000 with catch-up). Finally, compounding frequency is usually a second-order effect: going from annual to daily compounding on a 7% rate changes the effective annual rate by only about 0.25 percentage points.
Why Compound Growth Is a Bigger Deal Than Most People Expect
The canonical demonstration: two investors, A and B, each save the same total $150,000 over a lifetime. A starts at 25 and contributes $5,000/year for 10 years, then stops. B starts at 35 and contributes $5,000/year for 30 years. Both earn 7% until age 65. At retirement, A has roughly $602,070; B has roughly $505,365 - A wins by nearly $100,000 despite contributing for only one-third as long. This is the punchline of compound interest: the time an investment has to grow matters more than the amount contributed. The Rule of 72 gives a quick approximation: at 7%, money doubles roughly every 10 years (72 / 7 ≈ 10.3). Across 40 years that is four doublings, turning $10,000 into roughly $160,000 without any additional deposits. The precision formula this calculator uses produces slightly different numbers than the Rule of 72 - for exact answers always run the math, but for mental arithmetic the Rule of 72 is close enough and widely taught in introductory finance textbooks including Ben Graham's The Intelligent Investor and countless CFA materials.
How This Compares to Fidelity, Vanguard, and Personal Capital
Fidelity's Retirement Planner and Vanguard's Retirement Nest Egg run Monte Carlo simulations over thousands of market paths to produce probability-of-success numbers; they are more realistic than a constant-rate projection but require more inputs and sometimes account linking. Personal Capital (now Empower) pulls actual balances via Plaid and runs similar Monte Carlo, exchanging data for deeper personalization and occasional advisor outreach. Bankrate's and NerdWallet's compound calculators produce numbers similar to this tool's but add ad units and lead capture. Excel's FV function gives an identical answer to this calculator's lump-sum-plus-annuity combination. This page's niche is an unauthenticated, ad-light, no-lead-capture instance of the core math - useful when you want to run a quick scenario without committing to a planning session. For a commitment-grade retirement or savings plan, pair this with a CFP or fee-only fiduciary who can model your specific tax and account structure; this calculator is educational and should not be used as the sole basis for a financial decision.
Frequently Asked Questions
What is the difference between simple and compound interest?
Simple interest pays only on the original principal - $1,000 at 5% simple for 10 years earns $500 flat. Compound interest pays on principal plus accumulated interest, so the same deposit grows to about $1,629 - an extra $129 from "interest on interest." Most real-world investments (stocks, mutual funds, reinvested dividends, savings accounts) compound. Short-term loans and some bonds pay simple interest; nearly all long-term growth scenarios are compound.
How much does compounding frequency actually matter?
Less than the raw numbers suggest. At 7% annual, $10,000 grows to $19,671 over 10 years with annual compounding, $19,990 with monthly, and $20,097 with daily. The gap between annual and daily is about 2% of the final value. The rate itself and the time horizon matter far more. For stock-market planning, annual compounding is the accurate model because returns realize on a calendar basis; for savings accounts, use whatever the bank discloses (usually monthly or daily).
What rate should I assume for long-term investments?
Context matters. For 100% US equities, 9-10% nominal / 6-7% real is historically grounded (S&P 500 since 1926). For a 60/40 stock/bond portfolio, 6-7% nominal. For a HYSA, 4-5% currently. For a 3-5 year bond ladder, 4-5%. Use 7% nominal or 4% real as a reasonable equity-heavy planning rate that survives most historical periods; conservative planners use 5% real. Aggressive assumptions can inflate your plan to the point of under-saving.
Does this calculator handle Roth versus traditional tax treatment?
No. The output is pre-tax growth. For a Roth IRA or Roth 401(k), qualified withdrawals are tax-free, so the projection is also your after-tax number. For a traditional 401(k) or IRA, withdrawals are taxed as ordinary income; multiply the projected balance by roughly 0.75-0.85 depending on your expected retirement marginal rate to estimate spendable amount. For a taxable brokerage account, reduce the annual return rate by your effective dividend/gains tax rate to approximate the drag.
How is the future value of monthly contributions calculated?
The calculator uses the future value of an ordinary annuity formula: FV = PMT × ((1 + i)^N - 1) / i, where PMT is the monthly contribution, i is the monthly periodic rate (annual rate divided by 12), and N is the total number of months. This assumes contributions happen at the end of each month. If contributions happen at the beginning (annuity due), multiply the result by (1 + i); the difference is usually less than 1% of the total.
Is my contribution and balance data sent anywhere?
No. The calculation runs entirely as client-side JavaScript in a Preact component. Your principal, rate, contribution amount, and projections are held in React-style state only, and are never transmitted. You can verify by opening browser devtools Network tab while you change inputs - outbound traffic stops after the initial page load. All values are discarded when the tab is closed.
What is the Rule of 72 and when is it useful?
Divide 72 by the annual percentage rate to approximate how many years it takes money to double. At 6%, money doubles in roughly 12 years; at 8%, roughly 9 years; at 10%, roughly 7.2 years. The rule is mental-math convenient and accurate to within 1% for rates between 2% and 15%. Use it as a quick sanity check against the precise calculator output - if the two numbers disagree substantially, something in the inputs is wrong.
Why does the final balance seem so large after 30 years?
Because compounding is exponential. At 7% annual with $500/month for 30 years starting from zero, you contribute $180,000 and end with about $610,000 - more than half the balance is investment growth. That is not optimistic math; it is the long-run effect of compound returns observed over every major historical market period. The flip side is patience: most of the growth comes in the final 10 years, not the first 10.
Does this include inflation?
No. All results are nominal future dollars. To see today's purchasing power, divide the output by (1 + inflation)^years, or use a real return rate (nominal rate minus inflation) as input. At 3% inflation over 30 years, a nominal $1 million equals about $412,000 in today's dollars. Running the calculator with 7% nominal gives the future figure; running with 4% gives the inflation-adjusted real figure.
Can I rely on this projection for retirement planning?
As a single-scenario estimate, yes - the math is exact for the inputs given. For a real retirement plan, you need to run multiple scenarios (lower return, early retirement, healthcare costs, Social Security claiming), ideally with Monte Carlo simulation. Fidelity, Vanguard, NewRetirement, ProjectionLab, and a CFP-led plan all offer that depth. Use this calculator for quick what-ifs and sanity checks; use a planner for decisions about how much to save or when to retire.
More Finance Tools
Budget Planner (50/30/20)
Plan your monthly budget using the 50/30/20 rule. Editable percentages with weekly, monthly and annual breakdowns.
Open toolFreelance Hourly Rate Calculator
Compute the hourly rate a freelancer must charge to hit a target take-home after taxes, business expenses, profit margin and realistic billable utilisation.
Open toolInflation Calculator
Calculate the impact of inflation on purchasing power over any time period.
Open toolROI Calculator (Return on Investment)
Calculate ROI, CAGR, annual return and percentage gain from initial investment, final value and holding period. Works for stock ROI, after-tax ROI, social ROI and required-return scenarios.
Open toolLoan EMI Calculator
Calculate Equated Monthly Installments for any loan. See EMI, total interest and payment breakdown.
Open toolMortgage Calculator
Estimate monthly mortgage payments, total interest and total cost. Includes full amortization schedule.
Open tool