Solve A, P, r or t in the compound interest formula

Compound Interest Formula Calculator

Use this compound interest formula calculator to find the missing value in a single-deposit calculation. Choose future value, initial principal, annual interest rate, or time, then enter the other known values and the compounding frequency. The result shows what those inputs imply under a constant-rate model. This tool is useful for checking an equation or comparing a target balance with a starting amount; it does not model regular contributions, withdrawals, or changing returns.

  • No sign-up
  • Runs in your browser
  • Free to use

Choose the missing value

Choose the missing value

This formula models one deposit without recurring contributions.

Your projected result

Your projected result

Solved value—
Starting principal—
Future value—
Effective annual yield—
Growth—

Path implied by the equation

Path implied by the equation

ValuePrincipal

Formula projection

Formula projection

Formula projection
YearPrincipalGrowthValue

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.

  1. Select the value to calculate. Leave that quantity to the solver and supply the remaining variables.
  2. 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.
  3. Set the compounding frequency. Monthly compounding means 12 periods per year; quarterly means four, and annual means one.
  4. 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.

UnknownRearranged equationMeaning
Future value AA = P × (1 + r/n)^(nt)Final balance from the known starting amount
Principal PP = A / (1 + r/n)^(nt)Starting amount required for the target
Annual rate rr = n × ((A/P)^(1/(nt)) − 1)Constant nominal annual rate implied by the inputs
Time tt = 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.

Frequently asked questions

Can I solve for the interest rate?

Yes. Supply a positive principal, a positive target balance, a positive duration, and the compounding frequency. The answer is the nominal annual rate implied by those values, not a prediction of a rate you will earn.

Can I solve for time?

Yes, when the inputs produce a valid time solution. This compound interest formula calculator cannot assign one unique duration when the rate is zero and the starting and target amounts are equal. Some target-and-rate combinations have no positive-time solution.

Does this include monthly contributions?

No. The equation describes one initial deposit without later additions or withdrawals. Adding all future contributions to the starting principal would give them too much time to earn interest. Use the general calculator for a contribution schedule.

What is the difference between nominal and effective rate?

The nominal rate is the annual figure before compounding within the year. The effective rate includes that effect. With n periods, the effective annual yield is (1 + r/n)^n − 1, with r entered as a decimal.