Compound Interest Formula, Worked Out by Hand and in Excel

Use A = P(1 + r/n)^(nt) to calculate compound interest, where P is the starting amount, r the yearly rate as a decimal, n how many times a year interest is added and t the number of years, so $10,000 at 6% compounded monthly for 10 years grows to $18,193.97; in Excel that is =P*(1+r/n)^(n*t), or =FV(r/n, n*t, 0, -P).

Run your own numbers: Compound interest calculator and Savings calculator

Compound interest gets called the eighth wonder of the world in roughly every finance video, usually over a slow piano track. The formula is less dramatic. It fits on a sticky note.

Below: the formula, the same math done three ways, and the Excel versions people search for at 11pm before a deadline.

Worked example: checking the SEC's candy bar, then a savings deposit

Investor.gov has a well-known example. "If you buy a candy bar every day for $1, it adds up to $365 a year." "If you saved that $365 and put it into an investment that earns 5% a year, it would grow to $465.84 by the end of five years", "by the end of 30 years, to $1,577.50." Check it with the formula, compounding once a year (n = 1): $365.00 x (1 + 0.05)^5 = $465.84, and $365.00 x (1.05)^30 = $1,577.51. Both match, give or take a cent of rounding.

Now a deposit of $10,000 at an example 6% a year, compounded monthly, for 10 years. Here r = 0.06, n = 12, t = 10: A = $10,000 x (1 + 0.06/12)^(12 x 10) = $10,000 x 1.005^120 = $18,193.97. Our compound interest engine gives $18,193.97. Interest earned: $8,193.97.

Interest on interest is the whole effect: simple interest at the same rate would have paid $6,000.00 over the same 10 years.

$10,000 after 10 years, monthly compounding $18,193.97
Interest earned $8,193.97
Simple interest instead $6,000.00
Effective yearly rate (APY) 6.1678%

The formula, piece by piece

Investor.gov's glossary defines compound interest in six words: "Interest paid on principal and on accumulated interest." And in plain terms, "With compound interest, you earn interest on the money you save and on the interest that money earns."

  • A: the amount at the end, principal plus interest.
  • P: the principal, what you start with.
  • r: the yearly interest rate as a decimal (6% = 0.06).
  • n: compounding periods a year (1 yearly, 4 quarterly, 12 monthly, 365 daily).
  • t: years.
  • Interest only: A - P.

Effective annual rate, and why banks quote APY

More compounding periods mean slightly more interest at the same quoted rate. The effective yearly rate is (1 + r/n)^n - 1: 6% compounded monthly works out to 6.1678% a year. US banks must show this as the APY. Regulation DD says "The annual percentage yield measures the total amount of interest paid on an account based on the interest rate and the frequency of compounding." And "The annual percentage yield is expressed as an annualized rate, based on a 365-day year."

How to calculate the interest rate per month

Two different questions hide here. If a rate is quoted yearly and compounds monthly, the monthly rate is r/12: 6% / 12 = 0.5%. If you know the effective yearly growth and want the equal monthly rate that produces it, take the 12th root: (1 + 0.06)^(1/12) - 1 = 0.4868%. The second is smaller because monthly growth compounds.

Annual compound growth rate (CAGR) formula

Going backwards, from a start and end value to the steady yearly rate: CAGR = (end / start)^(1 / years) - 1. For the deposit above: ($18,193.97 / $10,000)^(1/10) - 1 = 6.1678%, the same as its effective yearly rate, as it should be.

The Excel and Google Sheets formulas

FV and RRI work the same in Google Sheets. The minus signs in FV are cash-flow direction, not a mistake.

  • Future value, lump sum: =P*(1+r/n)^(n*t), for example =10000*(1+0.06/12)^(12*10)
  • Same with FV: =FV(0.06/12, 12*10, 0, -10000)
  • With a monthly deposit D: =FV(0.06/12, 12*10, -D, -10000)
  • CAGR: =(End/Start)^(1/Years)-1, or =RRI(Years, Start, End)
  • Monthly rate from an annual growth rate: =(1+0.06)^(1/12)-1

Continuous compounding: the formula with e

Continuous compounding is the limit you reach when compounding happens as often as possible. The formula is A = P x e^(rt), where P is the starting amount, r the yearly rate as a decimal, t the years, and e is about 2.718. For a made-up $10,000 at 5% for 10 years, continuous compounding gives about $16,487.21, against about $16,486.65 with daily compounding. The gap is tiny, which is why banks rarely bother. In Excel the formula is =P*EXP(r*t).

FAQ

What is the formula for compound interest?

A = P(1 + r/n)^(nt). P is the starting principal, r the yearly rate as a decimal, n the number of compounding periods a year, and t the time in years. A is the final amount including interest. Subtract P to get the interest alone. With yearly compounding it simplifies to A = P(1 + r)^t.

How do you calculate compound interest monthly?

Set n to 12. Divide the yearly rate by 12 for the monthly rate, and raise (1 + monthly rate) to the number of months. For $1,000 at 6% for two years: 1,000 x (1.005)^24, about $1,127.16. If deposits are added each month, use the FV function or a calculator that handles regular contributions.

What is the difference between simple and compound interest?

Simple interest is paid on the original principal only: I = P x r x t. Compound interest is paid on the principal plus the interest already added, so it grows faster the longer it runs. Over one year at one compounding period they are the same; over decades the gap becomes large.

How do I calculate compound annual growth rate in Excel?

Use =(End/Start)^(1/Years)-1, or the built-in =RRI(Years, Start, End). For a value that grew from 10,000 to 18,000 over 8 years, =RRI(8,10000,18000) returns about 7.6% a year. Format the cell as a percentage. CAGR smooths the path, so it hides how bumpy the real years were.

Does compounding more often make a big difference?

Less than people expect. At 6%, monthly compounding gives an effective rate of about 6.17%, and daily compounding only a little more. The rate itself and the number of years matter far more than the compounding frequency. That is why comparing APY, which already includes compounding, is the fair way to compare accounts.

Sources

More on interest and savings