Methodology

How we calculate compound interest

Our methodology for the Compound Interest calculator: the formula, step-by-step calculation, authoritative sources, and limitations. Reviewed quarterly.

Formula

A = P(1 + r/n)^(nt)

Step-by-step

  1. 1

    Identify the principal (P): the initial deposit or investment.

  2. 2

    Identify the annual interest rate (r) as a decimal (5% → 0.05).

  3. 3

    Identify the compounding frequency (n): annually = 1, quarterly = 4, monthly = 12, daily = 365.

  4. 4

    Identify the time in years (t).

  5. 5

    Compute (1 + r/n): the per-period growth rate.

  6. 6

    Raise that to the power n×t: the total number of compounding periods.

  7. 7

    Multiply by P: that is the future value (A). Subtract P to get interest earned.

  8. 8

    For monthly contributions, add a second term: PMT × [((1 + r/n)^(n×t) − 1) / (r/n)]. Total = lump sum + contributions.

  9. 9

    Compare APY vs APR: APY = (1 + r/n)^n − 1, which is the true annual yield including compounding.

Authoritative sources

Every claim on this page is backed by an authoritative source.

Assumptions

What we take to be true when applying this formula.

Limitations

What this method does NOT capture.

Editorial note

Reviewed against SEC investor education and Investopedia methodology. Covers lump-sum, contributions, APY vs APR, sequence-of-returns risk, currency inflation, and Rule of 72 precision.

Open the calculator →

Last reviewed: 2026-06-15 • Reviewed by: CalcxApp editorial team