Compound Interest Formula in Excel and Google Sheets

Compound interest with the exponent formula or FV, monthly deposits, and why daily compounding ends a few dollars above monthly. Measured in Google Sheets.

On this page

A sheet that compounds 12,000 at 4.5% monthly for three years shows 13,730.97. An account that credits the same 4.5% every day shows 13,734.33 after those three years. Neither is a formula mistake. The 3.35 between them comes from how often the interest is credited.

Enter this in A1:B5, typing the rate with the percent sign so Sheets stores 0.045.

InputValue
Principal12000
Annual rate4.5%
Periods per year12
Years3

The balance after three years of monthly compounding is:

=B2*(1+B3/B4)^(B4*B5)
=FV(B3/B4,B4*B5,0,-B2)

Both return 13,730.97. The first divides the annual rate by 12 to get one month’s rate, then raises 1+rate to the 36th power. For the interest alone, subtract the principal: =B2*(1+B3/B4)^(B4*B5)-B2 returns 1,730.97. The figures in this article were measured in Google Sheets and displayed with two decimals; FV, EXP and ROUND also exist in Excel.

FV flips the sign unless you flip it first

FV(rate, nper, pmt, pv) treats money you pay in as negative and money you get back as positive. That is why the formula above passes -B2. Pass B2 instead and the same cell shows -13,730.97. The function is reporting the balance from the other side of the deposit, so negate the principal or put a minus in front of the whole function.

Why daily compounding lands higher

In this table only the crediting schedule changes. Same 12,000, same 4.5%, three years:

CompoundingFormulaBalance
Monthly=B2*(1+B3/12)^(12*B5)13,730.97
Daily, 365-day year=B2*(1+B3/365)^(365*B5)13,734.33
Daily, 360-day year=B2*(1+B3/360)^(360*B5)13,734.33
Continuous=B2*EXP(B3*B5)13,734.44

=FV(B3/365,365*B5,0,-B2) equals the 365 row. The 360 and 365 rows differ by 0.0016 before display rounding, so for a three-year, five-figure balance the day-count convention changes nothing you can see. Continuous compounding is the ceiling, a model rather than something an ordinary savings account posts.

Calendar days matter more than the convention when your start and end dates are real. Put 2026-01-15 in B7 and 2029-01-15 in B8; the subtraction =B8-B7 returns 1096, because February 2028 has 29 days. Use that as the exponent:

=B2*(1+B3/365)^(B8-B7)

It returns 13,736.02 for daily compounding over those exact dates. A date stored as text, “2029-01-15”, subtracted fine in this test and gave the same 1096; check ISNUMBER(B8) anyway if the dates came from an import.

Daily credit versus daily counting

A statement can count days without compounding daily. I built twelve rows for 2026, one per month, with the days in each month (31, 28, 31 and so on, 365 in total), and grew the balance by balance*(1+B3*days/365) each month. It ended at 12,551.28. Monthly compounding with B3/12 over one year is also 12,551.28, while daily compounding gives 12,552.30. If the account’s own figure is a dollar above yours after a year, ask whether interest is credited daily, not whether it uses 28-to-31-day months.

Cents rounded every month

If an account posts whole cents each month, the balance carries that rounding forward. A 36-row ledger with =ROUND($B$2*(1+$B$3/12),2) in D2 and =ROUND(D2*(1+$B$3/12),2) in D3, filled down to D37, ended at 13,731.01, four cents above the unrounded 13,730.97. When your sheet is a few cents off a statement, try rounding each month’s balance first.

Adding a deposit every month

The pmt argument carries the deposits. For 200 at the end of each month on top of the 12,000:

=FV(B3/12,12*B5,-200,-B2,0)

It returns 21,424.19. The same formula with the last argument changed to 1, deposits at the start of each month, returns 21,453.04, because each deposit earns one extra month. Leaving the argument out behaves as 0. Of the 21,424.19, 12,000 plus 36 deposits of 200 is 19,200 paid in and 2,224.19 is interest. A 36-row ledger built as the previous balance times 1+B3/12, plus 200, ended within 2e-10 of the function.

The rate and nper must be in the same unit as the deposits. =FV(B3,36,-200,-B2,0) pairs an annual rate with 36 monthly periods and returns 75,761.33.

Inputs that return a confident wrong number

None of these throws an error, which is what makes them easy to miss.

Input or formulaBalance
Rate typed as 4.5 instead of 4.5%1,143,084,616.31
Rate not divided: =B2*(1+B3)^(B4*B5)58,528.54
Exponent is years only: =B2*(1+B3/B4)^B512,135.51
Annual rate, monthly periods, deposits: =FV(B3,36,-200,-B2,0)75,761.33

A rate stored as the text “4.5%” still returned 13,730.97 in this test, because the arithmetic coerced it; ISNUMBER on that cell was FALSE. An empty periods cell produced #DIV/0!. A 0% rate returned 12,000 from both formulas, and 2.5 years worked in either form (13,426.04 with 30 periods).

I use the exponent formula when the sheet has to be audited, since the rate and the power are both visible in the cell. For anything with deposits I use FV, which makes the timing an explicit argument instead of a hidden assumption. To skip building the inputs, the Compound Interest Calculator is the no-setup version. The yield after compounding, as one yearly figure, is covered in the APY formula; for loans, see the loan payment formula; and for the growth between two balances you already have, see percentage change.

Oscar

Spreadsheet nerd who writes about Excel and Google Sheets formulas.

Google Sheets, 2 December 2026, new private unshared spreadsheet (locale en_US, 1000-row grid). Formulas were entered as user input through the Sheets API; displayed amounts were read through TEXT(x,"#,##0.00"). Inputs: principal 12000 in B2, rate typed as 4.5% (stored 0.045) in B3, 12 periods in B4, 3 years in B5. =B2*(1+B3/B4)^(B4*B5) and =FV(B3/B4,B4*B5,0,-B2) both returned 13730.973986458679 (13,730.97); FV with +B2 returned -13,730.97; minus principal returned 1,730.97. Daily with 365 returned 13734.327125192902 and with 360 returned 13734.325538010258 (both 13,734.33); =FV(B3/365,365*B5,0,-B2) matched the 365 result; continuous B2*EXP(B3*B5) returned 13,734.44. Start date 2026-01-15 and end date 2029-01-15 (real dates) gave 1096 days and 13,736.02 with exponent B8-B7; a text date 2029-01-15 gave the same 1096 and 13,736.02 (coerced by subtraction). One year: monthly FV 12,551.28; daily 365 12,552.30; a 12-row schedule from 2026-01-01 with balance*(1+rate*days/365) per month (days 31,28,31,30,31,30,31,31,30,31,30,31, sum 365) ended at 12,551.28. =FV(B3/12,12*B5,-200,-B2,0) returned 21424.191704052806 (21,424.19); type 1 returned 21,453.04; omitting type matched 0; deposits only returned 7,693.22; interest over 12,000 plus 36 deposits of 200 was 2,224.19. A 36-row ledger (=prior*(1+B3/12)+200) ended within 2e-10 of the FV result. A 36-row ledger rounding the balance to cents each month with ROUND(prior*(1+B3/12),2) ended at 13,731.01. Wrong inputs: rate typed as 4.5 returned 1,143,084,616.31 (manual and FV); rate not divided by 12 returned 58,528.54; exponent B5 instead of B4*B5 returned 12,135.51; FV(B3,36,-200,-B2,0) returned 75,761.33; a rate stored as the text 4.5% (ISNUMBER FALSE) still returned 13,730.97; a blank periods cell returned #DIV/0!, "Function DIVIDE parameter 2 cannot be zero."; a 0 rate returned 12,000 from both formulas. 2.5 years gave 13,426.04 from both the manual formula and FV with 30 periods. Excel was not run.

Next in Sheets Errors & Dynamic Arrays Fix QUERY CANNOT_GROUP_WITHOUT_AGG in Google Sheets