Investing & Retirement Compounding & Time Value of Money Regulation DD (12 CFR 1030) APY convention

Compound Interest Calculator

This calculator projects what a starting balance plus a regular deposit becomes after any number of years, at any compounding frequency from annual to daily. It separates the three things that actually determine the answer — what you put in, what the compounding adds, and what inflation takes back out — and prints a year-by-year schedule you can check by hand. Use it to size a savings goal, to compare a monthly-compounded certificate against a daily-compounded one, or to see how much of a long-run balance is your own money rather than growth. Deposits may be made more or less often than interest is credited; the math handles that correctly.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Starting balanceWhat is in the account today, before any of the deposits below.10000 $
Recurring depositThe amount you add every period; set it to zero for a lump sum only.500 $
Deposit frequencyHow often you actually move money in; it need not match the compounding frequency.Monthly
Annual rate of returnThe nominal annual rate quoted by the bank or assumed for the portfolio, before compounding.7 %
Compounding frequencyHow often interest is credited to the balance; deposit accounts state this in the disclosure.Monthly
Time investedThe holding period in years; fractions are allowed, so 6 months is 0.5.20 yr
Deposit timingChoose start of period if the money goes in before the interest for that period is credited.End of period (ordinary)
Inflation assumptionUsed only to restate the ending balance in today's dollars; set it to zero to ignore inflation.2.5 %

It returns

  • Ending balance — Nominal value of the account at the end of the holding period.
  • Total you put in — Starting balance plus every recurring deposit.
  • Interest earned
  • Ending balance in today's dollars — The nominal balance divided by the inflation factor over the same period.
  • Effective annual yield (APY) — What the nominal rate is worth once compounding within the year is counted.

The formula

A=P(1+rn)nt+PMT(1+i)N1i
APY=(1+rn)n1

In plain text: A = P(1 + r/n)^(nt) + PMT · [((1 + i)^N − 1) / i], i = (1 + r/n)^(n/m) − 1, N = m·t

  • AEnding balance (accumulated amount) ($)
  • PStarting balance (principal) ($)
  • rNominal annual rate as a decimal (decimal)
  • nCompounding periods per year (1/yr)
  • tHolding period (years)
  • PMTRecurring deposit ($)
  • mDeposits per year (1/yr)
  • iRate per deposit period, derived from r/n (decimal)
  • NNumber of deposits, m × t (count)

When deposits are made at the start of each period (an annuity due) the whole deposit term is multiplied by (1 + i). When i is zero the deposit term collapses to PMT × N.

Updated Category Compounding & Time Value of Money Verified against published test cases Reading time 12 min

What compounding actually does to a balance

Compound interest is interest that itself earns interest. Simple interest pays you the same dollar amount every period because it is always computed on the original principal; compound interest computes each period's interest on the balance you now hold, including everything credited before. That single difference is why the two methods look almost identical over one year and wildly different over thirty.

The gap grows because the balance follows a geometric sequence rather than an arithmetic one. Each period multiplies the balance by the same factor, so after many periods the balance is the starting amount times that factor raised to a power. Raising a number slightly above one to a large power is the entire mechanism — there is nothing else going on.

Two decisions dominate the result. The first is the rate. The second is time, because time sits in the exponent while the rate sits in the base, and an exponent is a far more powerful lever. Deposits matter enormously too, but in a different way: they raise the amount that gets multiplied rather than the multiplier. This calculator keeps those contributions visible as a separate output so you can always see how much of a projected balance is your own money and how much is growth.

The formula, term by term

The accumulation has two independent parts, and you can add them because compounding is linear in the amount invested. The first part is the starting balance P compounded forward: P(1 + r/n)^(nt). Divide the nominal annual rate r by the number of compounding periods per year n to get the rate credited each period, then raise one plus that rate to the total number of periods, n times t.

The second part is the stream of deposits. Each deposit is compounded from the moment it lands until the end of the horizon, so the deposit made first grows the longest and the last one does not grow at all. Summing that geometric series gives PMT · [((1 + i)^N − 1) / i], the future value of an ordinary annuity, where N is the number of deposits.

The subtlety most calculators get wrong is the rate i used in that annuity term. If you deposit monthly into an account that credits interest annually, the monthly rate is not the annual rate divided by twelve; it is the rate that compounds twelve times into exactly the annual factor. This page uses i = (1 + r/n)^(n/m) − 1, which reduces to r/n whenever your deposit frequency m equals the compounding frequency n, and stays correct when it does not.

Two special cases need their own branch. When the rate is exactly zero the annuity term divides by zero, so the code returns PMT × N instead — the balance is simply the money you put in. When deposits arrive at the start of each period rather than the end, every deposit earns one extra period of interest, so the whole annuity term is multiplied by (1 + i). That variant is called an annuity due, and it is the right choice for a payroll deduction that hits the account before the month's interest is credited.

Worked example: $10,000 plus $500 a month at 7% for 20 years

Take the default case — a $10,000 starting balance, $500 deposited at the end of every month, a 7% nominal annual return compounded monthly, over 20 years, with inflation assumed at 2.5%.

  1. Rate per period. r/n = 0.07 ÷ 12 = 0.00583333.
  2. Number of periods. n·t = 12 × 20 = 240.
  3. Growth factor. 1.00583333240 = 4.038738. Every dollar sitting there at the start becomes just over four dollars.
  4. Lump-sum part. $10,000 × 4.038738 = $40,387.38.
  5. Rate per deposit. Deposits are monthly and compounding is monthly, so i = 0.00583333 as well, and N = 240.
  6. Annuity part. (4.038738 − 1) ÷ 0.00583333 = 520.9265, and 520.9265 × $500 = $260,463.26.
  7. Ending balance. $40,387.38 + $260,463.26 = $300,850.64.
  8. Money you put in. $10,000 + 240 × $500 = $130,000, so interest earned is $300,850.64 − $130,000 = $170,850.64.
  9. In today's dollars. 1.02520 = 1.638614, and $300,850.64 ÷ 1.638614 ≈ $183,600.

Notice that growth ($170,851) exceeds contributions ($130,000) at this rate and horizon. That crossover is the single most useful thing to watch in the schedule table, because it tells you when the account starts doing more work than you do.

How to read the result

Read the ending balance last, not first. The three numbers that tell you whether the projection is honest are the total you put in, the interest earned, and the effective annual yield.

Total put in versus interest earned. Their ratio is a direct measure of how much of the answer depends on your rate assumption. If interest is a small fraction of the total, the projection is mostly arithmetic and fairly reliable. If interest is several times contributions, you are looking at a projection whose accuracy rests almost entirely on a rate you guessed, and a one-point error in that rate moves the answer by a large amount.

Effective annual yield. This is the number to compare across accounts. A 5.00% rate compounded daily and a 5.10% rate compounded annually are not directly comparable as quoted; their yields are 5.1267% and 5.1000%, and now they are. Under Regulation DD, U.S. depository institutions must disclose exactly this figure, computed on this basis, for deposit accounts.

Today's dollars. The real figure is the nominal balance divided by the inflation factor over the same horizon. It answers a different question: not how many dollars you will have, but roughly what those dollars will buy. Over long horizons the two diverge sharply, which is why retirement planning is normally done in real terms.

If you are comparing this projection against a competing use of the money — paying down a loan, or a project with irregular cash flows — a growth projection is the wrong tool. Use the net present value calculator or the internal rate of return calculator, which handle cash flows that vary in size and sign.

What one dollar becomes: growth factors with annual compounding

Multiply your starting balance by the factor for your rate and horizon. A $25,000 balance at 7% for 20 years: 3.869684 × 25,000 = $96,742.
Annual rate5 years10 years20 years30 years
3%1.1592741.3439161.8061112.427262
5%1.2762821.6288952.6532984.321942
7%1.4025521.9671513.8696847.612255
9%1.5386242.3673645.60441113.267678
11%1.6850582.8394218.06231222.892297

Each cell is (1 + r)^t with interest credited once a year. Monthly compounding raises these slightly: at 7% for 30 years the monthly factor is 8.116, not 7.612.

Mistakes that break a compounding projection

  • Mixing up the nominal rate and the yield. A bank advertising 5.00% APY compounded daily has a nominal rate of about 4.879%, not 5.00%. Enter the nominal rate here and check that the APY output matches the advertised figure.
  • Assuming the deposit rate is the annual rate over twelve. That is only correct when interest is credited monthly. For an annually compounded account the correct monthly rate is (1 + r)^(1/12) − 1, which this page computes for you.
  • Projecting a volatile return as if it were a rate. A portfolio that returns +30% then −20% has grown 4% in total, not 10%. A single smoothed rate is the right input here, and the CAGR calculator is how you extract one from real start and end values.
  • Ignoring fees. An expense ratio comes straight off the return. If a fund charges 0.60% and you expect 7% gross, enter 6.4%. Over decades that difference is larger than most people expect because it compounds too.
  • Ignoring tax on interest. In a taxable account, interest and dividends are usually taxed in the year they are credited, which reduces the amount left to compound. Enter an after-tax rate, or model the account as tax-deferred and remember the projection is pre-tax.
  • Confusing nominal growth with purchasing power. A balance that grows at 3% while inflation runs at 3% has bought you nothing. The today's-dollars output exists precisely to make that visible.

Where the APY convention comes from

The effective annual yield reported here follows the annual percentage yield definition used by Regulation DD, the rule implementing the U.S. Truth in Savings Act, which is codified at 12 CFR Part 1030. Its appendix defines APY for deposit accounts as the total interest that would be received on a $100 deposit over a 365-day year, expressed as a percentage, given the institution's compounding method. That is what makes accounts with different compounding frequencies comparable on a single number, and it is why the yield rather than the nominal rate is the figure to shop on.

Compounding forward and discounting back are the same operation run in opposite directions. This calculator answers what will I have. If you already know the target balance and want the amount needed today, that is the present value calculator. If your problem is stated in periods and a periodic rate rather than years and an annual rate — the way finance coursework and calculator keystroke problems are written — use the future value calculator, which takes i and n directly and reports the lump-sum and annuity components separately.

For a quick sanity check without any calculator, the rule of 72 is close enough for mental arithmetic: divide 72 by the percentage rate to get the approximate doubling time. At 7% that is about 10.3 years, and the exact answer from ln(2) ÷ ln(1.07) is 10.24 years. The approximation drifts at high rates, so treat it as a check on the order of magnitude rather than a substitute for the formula.

Where cash flows are irregular — a business investment, a property with different net income each year — a single compounding formula cannot represent them. Discount each flow on its own date instead, which is what the discounted payback period calculator and the payback period calculator do. And when the question is what rate a whole business must clear before an investment adds value, the relevant benchmark is its cost of capital, not a savings rate; the WACC calculator produces that figure.

One limitation is worth stating plainly. This model assumes a constant rate. Real markets deliver a sequence of different returns, and for a portfolio you are drawing down, the order of those returns changes the outcome even when their average is identical. A constant-rate projection is a planning tool and a comparison device. It is not a forecast, and it does not price risk.

Key terms

Nominal annual rate
The quoted yearly rate before the effect of compounding within the year. Sometimes labelled the stated rate or, on loans, the note rate.
Annual percentage yield (APY)
The rate that would produce the same one-year growth with a single annual crediting. It is the number that makes accounts with different compounding frequencies comparable.
Ordinary annuity
A stream of equal payments made at the end of each period. The default assumption on this page and in most textbook problems.
Annuity due
The same stream paid at the start of each period. Each payment earns one extra period of interest, so its future value is the ordinary annuity times (1 + i).
Real return
The nominal return adjusted for inflation. Precisely, (1 + nominal) ÷ (1 + inflation) − 1, though the difference of the two rates is a common approximation.

Frequently asked questions

Does compounding daily really beat compounding monthly by much?

Barely, at ordinary rates. At a 5% nominal rate, monthly compounding yields 5.1162% and daily compounding yields 5.1267% — about a tenth of a percentage point, or roughly $1 a year on a $10,000 balance. The frequency matters far more at high rates: at 20% nominal, monthly gives 21.94% and daily gives 22.13%. Shop on the advertised APY rather than on the compounding frequency, because the APY already contains that effect.

Should I choose start-of-period or end-of-period deposits?

Choose start of period only if your money genuinely arrives before that period's interest is credited. A payroll deduction on the first of the month into an account that credits interest on the last day is a start-of-period deposit; a transfer you make whenever you happen to have spare cash is best modelled as end of period. The difference is one extra period of interest on every deposit, which raises the deposit component by a factor of (1 + i) — about 0.5% at a 6% annual rate compounded monthly.

What rate should I use for a stock portfolio?

Use a rate you can defend, and then test the answer against a band around it. There is no universally correct assumption, and any single number you pick is a judgement about future returns rather than a fact. The practical approach is to run the calculation at three rates — a pessimistic one, a central one and an optimistic one — and plan against the pessimistic result. If you want a rate grounded in your own history rather than a guess, compute the CAGR of your actual portfolio over the longest period you have records for.

Why is my ending balance different from my bank's projection?

Almost always one of three things: the bank is compounding on a 365/360 or actual-day basis rather than in equal periods, the bank credits interest on a different schedule than it compounds it, or the quoted figure is an APY and you entered it as the nominal rate. Check the account disclosure for the compounding method and the crediting frequency, then re-enter the nominal rate. Small differences of a few dollars over a year are normal and come from day-count conventions.

How do I work out what monthly deposit reaches a target balance?

Set the starting balance and rate, then adjust the recurring deposit until the ending balance hits your target — two or three attempts converge quickly because the ending balance is very nearly linear in the deposit. Algebraically, subtract the future value of the starting balance from your target and divide the remainder by the annuity factor ((1 + i)^N − 1) ÷ i. Using the worked example's factor of 520.9265, a $200,000 shortfall needs about $384 a month.

Does this handle withdrawals as well as deposits?

Not directly, because the recurring deposit field has a minimum of zero. For a level withdrawal the arithmetic is the same with the sign reversed, but the interesting question in drawdown is usually how long the money lasts and how sequence of returns affects it, which a constant-rate formula answers poorly. Model accumulation here and treat drawdown separately.

What is a normal split between contributions and growth?

It depends almost entirely on the horizon, so there is no single normal. The useful way to read it is the crossover point: the year in which cumulative interest first exceeds cumulative contributions. In the worked example, growth ends at $170,851 against $130,000 of contributions after 20 years. Shorten the horizon to 10 years and contributions dominate heavily; extend it to 30 and growth dominates. Watch the schedule table rather than looking for a benchmark ratio.

Why does the calculator convert my deposit rate instead of just dividing by twelve?

Because dividing by twelve is only correct when interest is credited monthly. If an account compounds annually, twelve monthly deposits do not each earn one twelfth of the annual rate — they earn whatever rate compounds twelve times into the annual factor, which is (1 + r)^(1/12) − 1. For a 12% annual rate that is 0.948879% a month, not 1%. The difference is small over one year and material over thirty.

References