HomeFinance › Compound Interest Calculator

Compound Interest Calculator

Computes the future balance of a principal earning compound interest at a chosen compounding frequency, optionally with a fixed deposit at the end of every month, and splits the result into contributions and interest.

When to use

You need to project a savings account, certificate of deposit or investment balance from a starting amount, an annual rate, a term and optional monthly deposits.

Do not use when: Interest is not reinvested (use simple-interest), you need the deposit required to hit a target (use savings-goal), or you are repaying a loan (use loan-payment).

Formula

A = principal × (1 + r/n)^(n·years) with r = annual_rate_percent/100 and n periods per year. Contributions: i_m = (1 + r/n)^(n/12) − 1, m = 12·years, FV_contrib = monthly_contribution × ((1 + i_m)^m − 1) / i_m (m × contribution when r = 0). final_balance = A + FV_contrib.

Interest is credited n times per year at r/n per period. Monthly deposits are assumed at the end of each month and grow at the effective monthly rate of the chosen compounding, so principal and deposits follow one consistent growth curve; the deposit formula assumes 12·years is a whole number of months.

Inputs

ParameterTypeUnitRequiredDescription
principalnumberyesStarting amount deposited or invested, in any currency. Range: ≥ 0, ≤ 1000000000000
annual_rate_percentnumber%yesNominal annual rate (APR) in percent; 5 means 5 %. Range: ≥ 0, ≤ 100
yearsnumberyearsyesLength of the investment in years; fractional years allowed (2.5 = 30 months). Range: > 0, ≤ 200
compounding_frequencyenum: annually | semiannually | quarterly | monthly | weekly | dailydefault monthlyHow often interest is credited: n = 1, 2, 4, 12, 52 or 365 periods per year.
monthly_contributionnumberdefault 0Optional fixed deposit made at the end of every month, compounded at the effective monthly rate implied by compounding_frequency. Range: ≥ 0, ≤ 1000000000

Outputs

OutputTypeUnitDescription
final_balancenumberPrincipal, contributions and all compounded interest at the end of the term.
total_contributionsnumberPrincipal plus all monthly deposits (money paid in).
total_interestnumberfinal_balance − total_contributions.
effective_annual_rate_percentnumber%(1 + r/n)^n − 1: the yield actually earned per year at this compounding frequency.
growth_multiplenumberfinal_balance / total_contributions.

Example

10,000 at 5 % compounded monthly for 10 years: {"principal":10000,"annual_rate_percent":5,"years":10,"compounding_frequency":"monthly"}{"final_balance":16470.09,"total_contributions":10000,"total_interest":6470.09,"effective_annual_rate_percent":5.1162,"growth_multiple":1.647}

5,000 plus 100/month at 6 % monthly for 20 years: {"principal":5000,"annual_rate_percent":6,"years":20,"compounding_frequency":"monthly","monthly_contribution":100}{"final_balance":62755.11,"total_contributions":29000,"total_interest":33755.11}

GET https://tttkmbb.com/api/v1/calculate/compound-interest?principal=10000&annual_rate_percent=5&years=10&compounding_frequency=monthly

Machine access

Sources

FAQ

Does the compounding frequency matter much?

Less than the rate and the time. 5 % compounded annually yields 5.00 %, monthly 5.116 %, daily 5.127 % per year; the effective_annual_rate_percent output shows the difference.

Are contributions made at the start or the end of the month?

At the end of each month (ordinary annuity). Start-of-month deposits would earn one extra month of interest, i.e. FV_contrib × (1 + i_m); use future-value with payment_timing=beginning for that.

Is the rate an APR or an APY?

annual_rate_percent is the nominal APR that is divided by the number of compounding periods. If you only know the APY, enter it with compounding_frequency=annually.

Related calculators