Compound Interest Formula: A = P(1 + r/n)^(nt) Explained

Formulas & functions · Updated November 23, 2026

The formula is A = P(1 + r/n)^(nt), where A is the future value of the investment/loan including interest, P is the principal amount, r is the annual nominal interest rate (as a decimal), n is the number of compounding periods per year, and t is the time in years. This is the standard compound interest formula used in finance to calculate how an amount grows when interest is added to the principal at regular intervals.

What Each Variable Means

Breaking the formula into its parts makes it easier to use correctly:

  • P (Principal): The initial amount of money deposited or borrowed. For example, $1,000.
  • r (Annual interest rate): The nominal interest rate per year, expressed as a decimal. If your bank offers 5% per year, r = 0.05.
  • n (Compounding frequency): How many times interest is applied per year. Common values: 1 (annually), 2 (semiannually), 4 (quarterly), 12 (monthly), 365 (daily).
  • t (Time): The total number of years the money is invested or borrowed.
  • A (Amount): The total balance after t years, including the original principal and all accumulated interest.

Notice that the exponent nt multiplies the number of years by the compounding frequency. This is the core of compound interest: you earn interest on previously earned interest, not just on the original principal.

How the Formula Works: A Concrete Example

Suppose you deposit $5,000 into a savings account that pays 4% annual interest compounded monthly. You plan to leave it for 3 years.

Here, P = 5000, r = 0.04, n = 12, t = 3. Plug into the formula:

A = 5000 * (1 + 0.04/12)^(12*3)

First, calculate the inside: 0.04/12 = 0.003333… Then add 1 to get 1.003333. The exponent is 12*3 = 36. Raise 1.003333 to the 36th power (about 1.12727). Multiply by 5000 to get approximately $5,636.36. So after 3 years, you have $5,636.36, meaning you earned $636.36 in interest.

If the same account compounded annually (n=1), you would have 5000*(1+0.04)^3 = 5000*1.124864 = $5,624.32. The difference is about $12.04 – not huge over 3 years, but over 30 years it becomes significant.

How to Choose n (Compounding Frequency)

When you open an account or take a loan, the compounding frequency is set by the institution. But when comparing options, you need to know that a higher n means more interest for you (as an investor) or more cost (as a borrower).

  • Daily compounding (n=365) is common for credit cards and some high-yield savings accounts.
  • Monthly compounding (n=12) is typical for mortgages, car loans, and many savings accounts.
  • Quarterly (n=4) is used for some certificates of deposit (CDs).
  • Annual (n=1) is used for some bonds and simple investment products.

To compare two accounts with different compounding frequencies, look at the Annual Percentage Yield (APY) or Effective Annual Rate (EAR), which is calculated as (1 + r/n)^n - 1. This tells you the actual yearly return after compounding. For example, a 5% APR compounded monthly gives an APY of about 5.12%.

Common Mistakes and Misconceptions

One frequent error is using the percentage (e.g., 5) instead of the decimal (0.05) for r. Always divide the percentage by 100 first.

Another mistake is confusing the nominal rate (r) with the effective rate. The formula uses the nominal rate, not the APY. If you plug in the APY as r, you will double-count compounding.

Also, the formula assumes that no additional deposits or withdrawals are made during the period. If you add money regularly, you need a more complex formula or a spreadsheet with periodic contributions.

Finally, some people think that compounding frequency matters more than the interest rate. In reality, a small difference in r has a much larger impact than changing n from 12 to 365. Always compare rates first, then compounding.

Using the Formula in a Spreadsheet

If you want to calculate compound interest in Excel or Google Sheets, you can use the built-in FV function, but you can also write the formula directly.

Assume you put the principal in cell B1, the annual rate in B2 (as a decimal, e.g., 0.05), the number of compounding periods per year in B3, and the years in B4. Then in any cell, enter:

=B1*(1+B2/B3)^(B3*B4)

For the example above (P=5000, r=0.04, n=12, t=3), this returns $5,636.36. If you prefer the FV function, use =FV(B2/B3, B3*B4, 0, -B1) – note the negative sign on the principal to get a positive result.

In Google Sheets, the same formulas work identically. In Excel for Mac, the syntax is the same; just use comma separators as shown.

Continuous Compounding: The Limit Case

As n approaches infinity (compounding every instant), the formula becomes A = P * e^(rt), where e is Euler’s number (approximately 2.71828). This is called continuous compounding and is used in theoretical finance and some options pricing models.

For example, $1,000 at 5% for 10 years continuously compounded gives 1000 * e^(0.05*10) = 1000 * e^0.5 ≈ $1,648.72. The same amount compounded annually gives $1,628.89. The difference is about $19.83, showing that continuous compounding is only slightly better than daily compounding in practice.

Most real-world accounts use discrete compounding (n is a finite number), so the original formula is what you need for everyday calculations.

Frequently Asked Questions

What does the ‘nt’ in the exponent mean? It multiplies the number of years by the compounding frequency. If you compound monthly for 5 years, nt = 12*5 = 60, meaning interest is applied 60 times.

Is this formula the same as the one for loans? Yes, the same formula calculates the total amount owed on a loan if no payments are made. However, most loans have regular payments, so the amortization formula is different. This formula is for a lump sum that grows or accrues without payments.

How do I find the interest rate if I know the final amount? You can rearrange the formula to solve for r: r = n * ((A/P)^(1/(nt)) - 1). This is useful when you want to know the effective rate of an investment.

Does this formula account for inflation? No, it gives the nominal future value. To get the real value (purchasing power), you would need to adjust for inflation separately, often using the Fisher equation.

What if I make regular contributions? The formula assumes no additional deposits. For periodic contributions, use the future value of an annuity formula: FV = PMT * (((1 + r/n)^(nt) - 1) / (r/n)), where PMT is the contribution per period.

Why is my bank’s APY higher than the stated interest rate? Because the APY includes the effect of compounding. The formula (1 + r/n)^n - 1 gives the APY. For example, a 4% rate compounded monthly gives an APY of about 4.07%.

Related

Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.

More in Formulas & functions

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.