Free and instant — plug in your own numbers.
To calculate compound interest in Excel or Google Sheets, type the formula directly: =P*(1+r/n)^(n*t). For example, =12000*(1+0.05/12)^(12*15) returns $25,364.45, which is $12,000 growing at 5% compounded monthly for 15 years. If you also add money every month, use the built-in FV function instead: =FV(0.06/12, 20*12, -250, -5000) returns $132,061.25 for a $5,000 start plus $250 a month at 6% for 20 years.
Both programs use the same function names and argument order, so every formula below works in either one. The rest of this guide covers the four functions worth knowing (FV, EFFECT, NPER and RATE), how to build a year-by-year table, and the mistakes that cause wrong answers.
Set up your inputs first
Put each input in its own cell rather than typing numbers into formulas. You can then change one value and watch everything update.
| Cell | Label | Value |
|---|---|---|
| B1 | Starting amount | 12000 |
| B2 | Annual rate | 5% |
| B3 | Compounds per year | 12 |
| B4 | Years | 15 |
Type the rate as 5% or 0.05; both are stored as 0.05. Typing 5 without the percent sign is an easy slip, and it gives a wildly inflated answer.
Method 1: the formula written out
The standard compound interest formula is:
In a spreadsheet, the caret ^ raises a number to a power. With the inputs above:
This returns $25,364.45. To see just the interest, subtract the starting amount: =B1*(1+B2/B3)^(B3*B4)-B1 gives $13,364.45.
Changing the compounding frequency
Change B3 to see how often interest is added. Here is the same $12,000 at 5% for 15 years:
| Compounding | n (cell B3) | Formula result |
|---|---|---|
| Annually | 1 | $24,947.14 |
| Quarterly | 4 | $25,286.18 |
| Monthly | 12 | $25,364.45 |
| Daily | 365 | $25,402.70 |
| Continuous | – | $25,404.00 |
For continuous compounding, use the EXP function: =B1*EXP(B2*B4). Moving from yearly to monthly compounding adds $417.31 here; moving from monthly to daily adds only $38.25. Our post on daily vs monthly compounding explains why the gains shrink.
Method 2: the FV function
FV stands for future value. Its syntax is the same in Excel and Google Sheets:
For the single deposit above:
This returns $25,364.45, matching Method 1.
Why the minus signs?
FV follows a cash-flow sign convention: money you pay out is negative, money you get back is positive. You hand the bank $12,000, so pv is −12000, and the future value you receive comes back positive. If you enter a positive starting amount, the answer is the same number with a minus sign.
Adding monthly contributions
FV earns its keep when you add regular deposits. A $5,000 starting balance plus $250 a month at 6% for 20 years:
| Setting | Result |
|---|---|
| Deposits at end of month (type 0) | $132,061.25 |
| Deposits at start of month (type 1) | $132,638.80 |
| Total you deposit | $65,000.00 |
| Interest earned (end-of-month version) | $67,061.25 |
Moving deposits to the start of each month adds $577.55, because each payment gets one more month of growth. These figures match the compound interest calculator with monthly compounding, which also adds deposits at the end of each month.
Key idea Keep
rate,nperandpmtin the same time unit. For monthly deposits, divide the annual rate by 12 and multiply the years by 12. Mixing a yearly rate with monthly periods gives answers that are badly wrong.
EFFECT and NOMINAL: converting to APY
EFFECT turns a stated (nominal) rate into the effective annual rate, which is what banks call the APY:
This returns 0.051161898, or 5.12%: a 5% rate compounded monthly earns 5.12% over a year. NOMINAL does the reverse. If an account advertises a 5.25% APY with monthly compounding, =NOMINAL(0.0525, 12) returns 0.051277533, or 5.13%. For more on why the two rates differ, see APY vs APR.
NPER: how long until you reach a goal?
NPER returns the number of periods needed to hit a target. Say you have $5,000, can add $400 a month and want $50,000, at an illustrative 5%:
The result is 88.62 months. Since deposits happen once a month, round up to 89 months, or 7 years and 5 months. Divide by 12 inside the formula if you'd rather see years: =NPER(0.05/12,-400,-5000,50000)/12 gives 7.39. The savings goal calculator gives the same kind of answer without the formula.
RATE: what return do you need?
RATE works out the interest rate per period that connects your inputs. To turn $20,000 into $35,000 in 10 years with no further deposits:
This returns 5.76% a year. With monthly deposits, work in months and multiply by 12 at the end. To reach $150,000 in 20 years from $5,000 plus $250 a month:
The result is 6.98% a year, compounded monthly. Wrap the result in EFFECT to see the equivalent APY: =EFFECT(RATE(240,-250,-5000,150000)*12, 12) returns 7.21%. Remember that RATE tells you the return required, not the return you'll get; investment returns are never guaranteed.
Build a year-by-year table
A table shows how the balance grows and makes errors easy to spot. Here is a version with a $5,000 start, $3,000 added at the end of each year and 6% compounded yearly. Put the rate in B1, the yearly deposit in B2 and the starting amount in B3, then:
- A7:
1, and A8:=A7+1 - B7 (start balance):
=B3, and B8:=E7 - C7 (interest):
=B7*$B$1 - D7 (deposit):
=$B$2 - E7 (end balance):
=B7+C7+D7
Fill row 8 down as far as you need. The dollar signs keep the rate and deposit cells fixed as you copy. The first five years look like this:
| Year | Interest | End balance |
|---|---|---|
| 1 | $300.00 | $8,300.00 |
| 2 | $498.00 | $11,798.00 |
| 3 | $707.88 | $15,505.88 |
| 4 | $930.35 | $19,436.23 |
| 5 | $1,166.17 | $23,602.41 |
To check the table, =FV(0.06, 5, -3000, -5000) should match year 5: $23,602.41. For a monthly table, use the monthly rate ($B$1/12) and one row per month.
Common mistakes and fixes
| Problem | Likely cause | Fix |
|---|---|---|
| Result is absurdly large | Rate typed as 5 instead of 5%, or a yearly rate used with monthly periods | Enter 5%, and divide the rate by 12 for monthly periods |
| Result is far too small | Years entered as nper with monthly deposits | Multiply the years by 12 |
| Result is negative | Sign convention | Enter pv and pmt as negatives |
| #NUM! from NPER or RATE | All cash flows have the same sign, or no solution | Make deposits negative and the target positive |
| Formula won't parse | Regional settings use semicolons | Replace commas with semicolons |
Quick reference
| Question | Formula |
|---|---|
| What will one deposit grow to? | =P*(1+r/n)^(n*t) |
| What will deposits plus a start balance grow to? | =FV(r/12, years*12, -monthly, -start) |
| What is the APY of a nominal rate? | =EFFECT(rate, n) |
| How many months to a goal? | =NPER(r/12, -monthly, -start, goal) |
| What rate do I need? | =RATE(months, -monthly, -start, goal)*12 |
If you work with loans as well, the same sign convention applies to PMT; see how to calculate a loan payment.
Frequently asked questions
Do Excel and Google Sheets give the same answers?
Yes. FV, EFFECT, NOMINAL, NPER and RATE use the same math and argument order in both, so the examples above return the same results.
Why doesn't my spreadsheet match my bank statement?
Banks often calculate interest daily on a changing balance, credit it monthly, and use the actual number of days in each month. A spreadsheet that uses a fixed monthly rate will be close but rarely exact to the cent.
Is there a single compound interest function?
Not one called that. FV is the closest, and it handles both a starting balance and regular deposits. For a one-off deposit, the written-out formula is just as quick.
How do I show simple interest for comparison?
Use =P*(1+r*t). Our guide to simple vs compound interest shows how far apart the two get over time.
Next steps
- Set up the four input cells and try Method 1 with your own savings.
- Switch to FV once you add regular deposits.
- Use NPER for "how long" questions and RATE for "what return" questions.
- Cross-check any important result in the compound interest calculator before you rely on it.
This article is for general education and is not financial advice. Rules, rates and products vary by lender and country. See our disclaimer.