How to use the compound interest formula calculator
First identify the unknown. If you already know the starting amount, rate, and duration, solve for future value A. If you know the ending target instead, you can solve for principal P, annual rate r, or time t. The number of compounding periods n remains a supplied input.
- Select the value to calculate. Leave that quantity to the solver and supply the remaining variables.
- Enter the known amounts and annual rate. Keep both monetary amounts in US dollars. A percentage input of 6 corresponds to 0.06 inside the formula.
- Set the compounding frequency. Monthly compounding means 12 periods per year; quarterly means four, and annual means one.
- Check the time unit. The equation uses years. Eighteen months is 1.5 years, not 18 years.
Use a nominal annual rate with this equation. An effective annual yield already incorporates compounding, so substituting it directly for the nominal rate can change the result. The distinction matters especially when comparing calculations with different frequencies.
The compound interest formula and its variables
The base equation is A = P(1 + r/n)^(nt). Here, A is the final amount, P the initial principal, r the nominal annual rate as a decimal, n the number of compounding periods per year, and t the duration in years.
The factor 1 + r/n describes growth during one period. Raising it to nt applies that factor across the modeled duration. The formula assumes that interest remains invested and that no money enters or leaves after the initial deposit.
| Unknown | Rearranged equation | Meaning |
|---|---|---|
| Future value A | A = P × (1 + r/n)^(nt) | Final balance from the known starting amount |
| Principal P | P = A / (1 + r/n)^(nt) | Starting amount required for the target |
| Annual rate r | r = n × ((A/P)^(1/(nt)) − 1) | Constant nominal annual rate implied by the inputs |
| Time t | t = ln(A/P) / (n × ln(1 + r/n)) | Duration implied by the target and rate |
The symbol ln means the natural logarithm. These are rearrangements of one relationship, not four separate financial models. Rate and time solutions require positive starting and ending amounts, and the periodic growth factor must be positive. Solving for a rate also requires a positive duration.
Example: checking a $10,000 deposit
Assume a $10,000 initial deposit, an illustrative nominal annual rate of 6%, monthly compounding, and a 10-year duration. The calculation uses P = 10000, r = 0.06, n = 12, and t = 10.
A = $10,000 × (1 + 0.06/12)^120 = $18,193.97
The future balance includes the original $10,000 and approximately $8,193.97 of interest. The result is calculated at full precision, then rounded to cents for display. This rate is a hypothetical input, not an available offer or an expected investment return.
Using the unrounded ending value, reversing the calculation returns the same $10,000 principal, 6% nominal annual rate, or 10-year duration. If you enter the rounded $18,193.97 instead, small differences in the reverse calculation are normal because the original ending value had more decimal places.
Reading a rate or time result correctly
A solved annual rate is the constant rate required by the equation. It does not show whether an account or investment can deliver that rate. To express it as an effective annual yield, calculate (1 + r/n)^n − 1. In the example, 6% nominal interest compounded monthly corresponds to approximately 6.1678% effective annual yield.
A time result may contain a fraction of a year. Multiply the fractional part by 12 for an approximate number of months. This does not identify an exact calendar date. An actual account may credit interest only at specified dates, so a fractional mathematical duration is not automatically a withdrawal or maturity date.
Zero rates, unreachable targets, and model limits
At a zero rate, A equals P for every duration. If the target equals the principal, there is no unique time solution. If it differs, no duration reaches it under that zero-rate assumption.
With a positive rate, a target below a positive starting balance would require negative time, so it has no future-time solution in this model. Conversely, a constant negative rate cannot grow a single positive deposit to a larger target. An invalid or non-unique result is not evidence of a calculator error.
Taxes, fees, and variable returns are excluded. The result is not personalized financial advice. For monthly deposits, use the compound interest calculator. For actual dates and day-count rules, use the daily compound interest calculator. The continuous compound interest calculator uses exponential growth rather than a finite compounding frequency.
Choose the unknown above and check that every supplied value belongs to the same scenario before calculating.