Finance & Math

How Compound Interest Works: Formulas, APY vs APR & the Rule of 72

By CalculatorMint Editorial· October 9, 2026 · 7 min read

Albert Einstein famously called compound interest the “eighth wonder of the world” — noting that he who understands it, earns it; he who does not, pays it. In personal finance, retirement planning, and economics, compound interest is the engine that transforms modest, consistent savings into exponential long-term wealth.

While the general concept is intuitive — you earn interest on your principal, and then earn future interest on that accumulated interest — the underlying mathematics, compounding schedules, and deposit formulas contain important nuances. In this guide, we break down the exact formulas, compare compounding frequencies, explain the distinction between APR and APY, and explore practical mental math shortcuts like the Rule of 72.

1. Simple Interest vs. Compound Interest

To understand compounding, it helps to start with what it is not: simple interest.

  • Simple Interest: Interest is paid strictly on the original principal sum. Formula: I = P × r × t. If you deposit $1,000 at 5% simple interest, you earn $50 every year, forever. After 20 years, you have earned $1,000 in interest ($2,000 total balance).
  • Compound Interest: Interest is calculated on the initial principalplus all previous accumulated earnings. In year one you earn $50; in year two you earn 5% of $1,050 ($52.50); in year three you earn 5% of $1,102.50 ($55.13). After 20 years at annual compounding, you have $2,653.30 — an extra $653.30 with zero extra effort.

2. The Core Mathematical Formula

The standard equation for calculating the future value of a single lump sum subject to periodic compounding is:

A = P × (1 + r ÷ n)n × t
VariableMeaningExample Value
AFinal Accrued Amount (Principal + Interest)$10,210.25
PInitial Principal Investment$5,000.00
rAnnual Nominal Interest Rate (decimal)0.07 (7.0%)
nCompounding Frequency per year12 (Monthly)
tNumber of Years Invested10 years

Worked Step-by-Step Calculation

Suppose you invest $5,000 at 7% annual interest compounded monthly for 10 years:

  1. Convert rate to decimal: r = 0.07
  2. Divide by compounding periods: r / n = 0.07 / 12 = 0.0058333
  3. Add 1: 1 + 0.0058333 = 1.0058333
  4. Determine total compounding cycles: n × t = 12 × 10 = 120 cycles
  5. Raise to the exponent: 1.0058333^120 = 2.00966
  6. Multiply by principal: $5,000 × 2.00966 = $10,048.31

Your original $5,000 more than doubles, yielding $5,048.31 in pure compound interest.

3. How Compounding Frequency Matters (Annual vs Monthly vs Daily)

How much difference does the compounding schedule make? Let us compare $10,000 invested at 6% over 20 years across different compounding schedules:

FrequencyTimes per Year (n)Final Balance (20 Years)Total Interest Earned
Annually1$32,071.35$22,071.35
Quarterly4$32,906.63$22,906.63
Monthly12$33,102.04$23,102.04
Daily365$33,198.61$23,198.61

More frequent compounding yields higher returns, though the marginal benefit follows the law of diminishing returns as frequency approaches continuous compounding (the mathematical limit defined by Euler’s number e: A = P × e^(rt)).

4. The Power of Periodic Deposits (Future Value of Annuity)

Most savers do not invest a single lump sum and walk away; they contribute regular monthly deposits from their paycheck. When you add a periodic deposit (PMT), the equation combines the initial principal growth with the future value of a series of payments:

Future Value = P × (1 + r/n)nt + PMT × [((1 + i)m- 1) ÷ i]

Where i is the effective interest rate per payment period and m is the total count of deposits.

Real-World Impact: Depositing just $200/month into a fund averaging 8% annual return over 30 years results in:

  • Total out-of-pocket deposits: $200 × 360 months = $72,000
  • Total ending balance: $298,072.00
  • Compound interest generated: $226,072.00 (over 3 times your actual contributions!)

5. The Rule of 72: Instant Mental Math

Want to know how long it takes for your investment to double without pulling up a spreadsheet? Use the Rule of 72:

Years to Double ≈ 72 ÷ Annual Interest Rate (%)
  • At 6% interest: 72 ÷ 6 = 12 years to double.
  • At 8% interest: 72 ÷ 8 = 9 years to double.
  • At 10% interest: 72 ÷ 10 = 7.2 years to double.

6. APR vs. APY: What Financial Institutions Mean

When reading bank statements or loan documents, you will encounter both terms:

  • APR (Annual Percentage Rate): The nominal, uncompounded annual interest rate. It does not reflect compounding within the year.
  • APY (Annual Percentage Yield): The effective annual rate that accounts for compounding.
    APY = (1 + APR ÷ n)n - 1

For example, a high-yield savings account offering a 5.00% APR compounded daily has an APY of 5.13%.