ToolsVortex
Explore tools

How to Calculate Compound Interest: Formula, Examples and Tables

How to Calculate Compound Interest: Formula, Examples and Tables
Finance & PayUpdated November 9, 20269 min readBy ToolsVortex Editorial Team

To calculate compound interest, use A = P(1 + r/n)^(nt), where P is the starting amount, r the yearly rate as a decimal, n the compounding periods per year and t the years. Subtract P to get the interest. $10,000 at 5% compounded monthly for 10 years grows to $16,470.09, earning $6,470.09.

A = P(1+r/n)^ntthe compound interest formula
$16,470.09$10,000 at 5% monthly for 10 years
72 / rateyears to double, roughly
How to Calculate Compound Interest: Formula, Examples and Tables

Knowing how to calculate compound interest lets you check any savings promise or loan quote yourself. The formula looks scary at first, but it only has four inputs, and you can run it on a phone calculator.

Below you will find the formula, a step by step example, tables showing how often interest compounds and how fast money doubles, and how to add monthly deposits. If you want the answer without the math, our compound interest calculator does every step for you.

How Do You Calculate Compound Interest?

Plug your numbers into A = P(1 + r/n)^(nt), then subtract the starting amount to get the interest earned.

Final amount (A) = P x (1 + r/n)^(n x t)
Compound interest = A minus P
P = principal, r = yearly rate as a decimal, n = times compounded per year, t = years

Investor.gov, the investor education site of the US Securities and Exchange Commission, describes compound interest simply as the interest you earn on interest. Its example: $100 at 5% a year becomes $105 after one year and $110.25 after two. The extra 25 cents is interest earned on the first year’s $5.

The four steps

  1. Turn the rate into a decimal: 5% becomes 0.05.
  2. Divide the rate by n to get the rate per period.
  3. Add 1, then raise it to the power of n x t.
  4. Multiply by P. Subtract P if you want only the interest.

On most phone calculators, the power key is shown as x^y or y^x. In a spreadsheet, type =P*(1+r/n)^(n*t) with your own numbers in place of the letters.

Compound Interest CalculatorEnter a deposit, rate, time and compounding frequency to see your future balance and interest.
Open tool →

What Is an Example of Compound Interest?

Here is a full calculation for $5,000 saved at 6% a year, compounded monthly, for 10 years.

Worked example

Priya puts $5,000 in a savings account that pays 6% a year, compounded monthly. She leaves it alone for 10 years.

  1. P = 5,000, r = 0.06, n = 12, t = 10.
  2. Rate per month: 0.06 / 12 = 0.005.
  3. Number of periods: 12 x 10 = 120.
  4. Growth factor: 1.005^120 = 1.81940 (rounded).
  5. Final amount: $5,000 x 1.81940 = $9,096.98.
  6. Interest earned: $9,096.98 minus $5,000 = $4,096.98.

With simple interest, Priya would earn $5,000 x 0.06 x 10 = $3,000. Compounding adds $1,096.98 more, with no extra effort.

Keep full decimals until the last step. If you round 1.005^120 to 1.8, you get $9,000 and lose almost $97 of accuracy.

Does Compounding Frequency Make a Big Difference?

More frequent compounding earns a little more, but the jump from monthly to daily is small compared with the rate and the time.

We ran $10,000 at 5% for 10 years at each frequency. The effective yearly rate column is what you really earn per year once compounding is counted.

CompoundingBalance after 10 yearsInterest earnedEffective yearly rate
Annually (n = 1)$16,288.95$6,288.955.000%
Quarterly (n = 4)$16,436.19$6,436.195.095%
Monthly (n = 12)$16,470.09$6,470.095.116%
Daily (n = 365)$16,486.65$6,486.655.127%
Continuous$16,487.21$6,487.215.127%

Continuous compounding uses A = P x e^(rt). It is the upper limit, and daily compounding is already within about 56 cents of it here.

That effective yearly rate is the idea behind APY, the annual percentage yield banks must show on deposit accounts. Federal rules under the Truth in Savings Act set how banks compute it. To compare two accounts that compound differently, convert both to an effective rate with the APY calculator.

What Is the Difference Between Simple and Compound Interest?

Simple interest is paid only on the original amount, while compound interest is also paid on interest you already earned.

Simple interest = P x r x t
Compound interest = P x (1 + r/n)^(n x t) minus P

The gap starts tiny and then grows fast. This table uses $10,000 at 5%, compounded once a year.

YearsSimple interestCompound (yearly)Extra from compounding
1$10,500.00$10,500.00$0.00
5$12,500.00$12,762.82$262.82
10$15,000.00$16,288.95$1,288.95
20$20,000.00$26,532.98$6,532.98
30$25,000.00$43,219.42$18,219.42

After 1 year the two are equal. After 30 years, compounding has added $18,219.42 that simple interest never pays.

Some car loans and personal loans use simple interest on the remaining balance. Use the simple interest calculator for those, and the compound formula for savings, CDs and investments that reinvest earnings.

How Do You Calculate Compound Interest With Monthly Contributions?

Calculate the growth of your starting balance and the growth of your deposits separately, then add them together.

Starting balance grows to = P x (1 + i)^N
Deposits grow to = PMT x ((1 + i)^N minus 1) / i
i = r / n, N = n x t, PMT = deposit each period

This version assumes you deposit at the end of each period and that deposits match the compounding schedule, such as monthly deposits with monthly compounding.

Take Priya again. Suppose she adds $100 at the end of every month to her $5,000. Her deposits grow to $100 x (1.81940 minus 1) / 0.005 = $16,387.93. Her original $5,000 grows to $9,096.98. Together that is $25,484.92. She put in $17,000 of her own money, so $8,484.92 is interest.

To work backward from a target, such as “how much a month to reach $30,000,” the savings goal calculator solves for the deposit.

How Long Does It Take Money to Double With Compound Interest?

Divide 72 by the yearly interest rate to get a quick estimate of the years it takes to double.

Investor.gov and the St. Louis Fed both teach this Rule of 72. At 9%, money doubles in about 8 years. The exact answer uses logarithms: years = ln(2) / ln(1 + r). We compared the two for yearly compounding.

Yearly rateRule of 72 estimateExact doubling time
2%36 years35.00 years
4%18 years17.67 years
6%12 years11.90 years
8%9 years9.01 years
10%7.2 years7.27 years
12%6 years6.12 years

The rule is closest around 8%. It runs a little high at low rates and a little low at high rates, but it is never more than about a year off in this range.

The rule works in reverse for debt. A credit card at 24% doubles an unpaid balance in about 3 years. That is why the same math that helps savers hurts borrowers.

How Do You Find the Rate or Time in a Compound Interest Problem?

Rearrange the same formula: solve for r with a root, and solve for t with logarithms.

Rate (r) = n x ((A / P)^(1 / (n x t)) minus 1)
Time (t) = ln(A / P) / (n x ln(1 + r/n))

These help when you know the goal but not the path. Say a $5,000 deposit needs to reach $8,000 in 8 years with monthly compounding. A / P is 1.6, and n x t is 96. So r = 12 x (1.6^(1/96) minus 1) = 0.0589, or about 5.89% a year. Any account paying less than that will miss the goal unless you add money.

Now flip it. How long does $10,000 take to reach $15,000 at 4.5% compounded monthly? t = ln(1.5) / (12 x ln(1.00375)) = 9.03 years. That is a little over 9 years. On a phone calculator, the ln key gives the natural log. In a spreadsheet, use =LN(1.5)/(12*LN(1+0.045/12)).

Both answers check out when you plug them back into A = P(1 + r/n)^(nt). Doing that check takes ten seconds and catches most typing errors.

What Mistakes Do People Make With Compound Interest?

The most common errors are using the rate as a whole number, mixing up n, and ignoring fees, taxes and inflation.

  • Rate as a whole number: 5% must be 0.05, not 5. Using 5 gives a wildly wrong answer.
  • Wrong n: n is how often interest is added, not how often you deposit. Check the account terms.
  • Time in months: t is in years. 18 months is t = 1.5.
  • Fees: a 1% yearly fee on an investment cuts a 7% return to about 6%, and that gap compounds too.
  • Inflation: the St. Louis Fed points out that future dollars buy less, so a big future number buys less than the same amount does now.

Percent math is the base of all of this. If any step feels shaky, our guide on how to calculate percentages covers it. Then test your own numbers in the compound interest tool. This is general information, not financial advice, and no rate of return is guaranteed.

Quick Recap

  • Compound interest: A = P(1 + r/n)^(nt), then subtract P.
  • Write the rate as a decimal and keep full decimals until the end.
  • Monthly vs daily compounding changes little; rate and time change a lot.
  • Add deposits with PMT x ((1 + i)^N minus 1) / i.
  • Divide 72 by the rate to estimate how many years it takes to double.
How to Calculate Compound Interest: use the free compound interest calculator on ToolsVortex

Frequently Asked Questions

What is the formula for compound interest?

The formula is A = P(1 + r/n)^(nt). P is the starting amount, r is the yearly rate as a decimal, n is how many times interest is added per year, and t is the number of years. A minus P is the interest.

How much is $10,000 at 5% compound interest for 10 years?

Compounded once a year, it grows to $16,288.95. Compounded monthly, it grows to $16,470.09. Simple interest would give only $15,000, so compounding adds $1,288.95 to $1,470.09 more.

Is compound interest calculated daily or monthly?

It depends on the account. A bank can compound daily, monthly, quarterly or once a year, and the account terms should say which. Check them, and compare accounts by APY, which already includes the compounding.

How do I calculate compound interest in Excel or Google Sheets?

Type =P*(1+r/n)^(n*t) with your numbers. For $5,000 at 6% monthly for 10 years, enter =5000*(1+0.06/12)^(12*10). The result is $9,096.98. You can also use the FV function.

How do you calculate compound interest for months instead of years?

Write the time in years. Eighteen months is t = 1.5. With monthly compounding, n x t becomes 12 x 1.5 = 18 periods, so the formula still works.

What is the Rule of 72?

It is a shortcut to estimate how many years it takes money to double. Divide 72 by the yearly rate. At 6%, that is about 12 years. The exact answer for yearly compounding is 11.90 years.

Does compound interest work against you on debt?

Yes. Credit card interest is added to the balance, and then interest is charged on that larger balance. Paying more than the minimum stops the growth, since a smaller balance means less interest each month.

Sources

  1. Investor.gov (US SEC): What Is Compound Interest?, definition, the $100 at 5% example and the Rule of 72
  2. Federal Reserve Bank of St. Louis: How Does Compound Interest Work?, Rule of 72 examples and the effect of inflation
  3. GovInfo: 12 CFR Part 1030, Appendix A, Annual Percentage Yield Calculation, the federal APY formula under the Truth in Savings rules
TV
Written by the ToolsVortex Editorial Team

We check every number in our guides against the original source and test each example in our calculators before publishing. This guide is general information, not professional advice. Spotted an error? Tell us and we will fix it.

Keep reading