Try it with your numbers
Show every step
The solver above shows every step for your own numbers. The rest of this page explains why those steps work, how to run the formula backward, and where it quietly goes wrong.
What do A, P, r, n and t mean in the compound interest formula?
Each letter has one job, and most errors come from feeding one of them the wrong kind of number.
- : the final amount, principal and interest together.
- : the principal, the money you start with.
- : the annual rate as a decimal, so becomes .
- : how many times per year interest is added (1, 4, 12 or 365 are typical).
- : the time in years, even if the problem speaks in months.
Read the formula as two pieces. The base is the growth factor for a single period, and the exponent counts the periods. A rate of compounded monthly is not per month. It is per month, applied 12 times a year.
A useful sanity check is . The exponent becomes , and anything nonzero to the zero power is 1 (see why anything to the zero power is 1), so . No time, no interest. Any formula you build or rearrange should pass this test.
Where does the compound interest formula come from?
The whole formula is one idea: growth by a percentage means multiplying. If a period’s interest rate is , then after one period the balance is . The next period multiplies that new balance by the same factor, giving .
Repeating this times multiplies by a total of times. Using the rules of exponents, repeated multiplication of the same base collapses into a power:
Substituting and gives the standard form. Nothing else is hidden in it.
Expand . The is two periods of ordinary interest, and the is interest earned on interest. For and , that is .
That extra term is why compound growth pulls away from a straight line. Each period’s interest adds a little more than the one before.
Quick check
Answer:
Compound interest formula example: quarterly compounding
Find the balance when $2,500 is invested at compounded quarterly for 5 years.
Identify the inputs: , , , . The per-period rate is , and the number of periods is .
On a calculator, . Then:
The balance is about $3,367.14, so the interest earned is 867.14$.
A fast mental check: simple interest would earn . Compounding should land a bit above that, and $867 does. If your answer came out below $750 or near double it, something is off. Keep at least six digits of the growth factor before multiplying by .
Does compounding more often really earn more?
Yes, but with sharply diminishing returns. Here is $1,000 at for one year at different frequencies:
| Compounding | Balance after 1 year | |
|---|---|---|
| Annually | 1 | $1,080.00 |
| Quarterly | 4 | $1,082.43 |
| Monthly | 12 | $1,082.99 |
| Daily | 365 | $1,083.28 |
Going from annual to monthly gains about $2.99. Going from monthly to daily gains only about $0.29. Pushing toward infinity does not blow up, it settles at a limit.
To compare accounts with different , convert each to one yearly figure: . For monthly, that is .
That limit is continuous compounding, where approaches and the formula becomes . For $1,500 at for 8 years, . Continuous compounding is the ceiling that daily or hourly compounding approaches, and it is the version used in physics and calculus.
Quick check
Answer:
How do you solve for time, principal or rate?

The formula has four inputs plus the answer, so any one of them can be the unknown. Each needs a different tool.
Solving for time needs logarithms. How long for $4,000 to grow to $6,000 at compounded annually? Divide by , then take a log, which turns the exponent into a multiplier via the logarithm rules:
Interest is only credited at year end, so the balance actually passes $6,000 during year 9. Check: after 8 years it is $5,909.82, after 9 it is $6,205.31.
Solving for principal just divides: , which is the same as , a use of negative exponents. To have $20,000 in 10 years at compounded monthly:
You would need to deposit about $13,415 today.
Solving for rate needs a root. Rearranging gives , where the exponent is an nth root. Practice problem 5 below uses this.
Try this: Rearrange yourself to get alone, using a root, and test it on , , . You should get .
Compound interest formula with fractional years and negative rates
Time rarely arrives as a whole number of years. Convert first: 18 months is , and 7 months is . With monthly compounding, periods, which is clean. The awkward case is a partial period, such as 1.5 years with annual compounding.
Textbooks just allow a fractional exponent: $1,000 at annually for 18 months gives . A real bank would usually credit nothing, or simple interest, for the unfinished period, so check which convention your course uses.
Negative rates work with no changes to the formula. A car that loses of its value each year uses , so the growth factor is . Starting at $20,000, three years later it is worth 12{,}282.50$. A factor below 1 shrinks the balance each period.
Try this: Find the value of $500 at compounded monthly after 9 months. Write first, then compute . The answer is about $522.96.
Compound interest vs simple interest, and the Rule of 72
Simple interest is . Plot balance against time and you get a straight line with starting value and slope , exactly the pattern of slope-intercept form. The balance climbs by the same dollar amount each year, an arithmetic sequence. Compound interest climbs by the same percentage each year, a geometric sequence, which is why its curve bends upward.
After 2 years at on $1,000, simple interest gives $1,200 and compound gives $1,210. The gap looks tiny early and becomes enormous late, because it grows exponentially.
Doubling time in years is roughly . At that predicts 12 years, and the exact value is .
The rule comes from , and 72 is used because it has many divisors, so mental division works. It is accurate for rates from about to . At extreme rates it drifts: at it predicts 2 years, but the true answer is about .
Quick check
Answer:
Where is the compound interest formula used in real life?
Savings accounts and certificates of deposit are the obvious case, but the formula matters just as much on the debt side. A credit card with a APR compounded daily has an effective annual rate of about , so $1,000 left unpaid for a year becomes roughly $1,271. The frequency is hidden in the fine print, and it moves the real cost.
The same mathematics describes any quantity that changes by a fixed percentage per step: population, inflation, and the spread of a signal. That is why the formula is a special case of exponential growth and decay. Use a growth factor above 1 for growth, and below 1 for decay, as in the half-life formula, where the factor is exactly per half-life.
The formula has one limit worth knowing. It describes a single deposit left alone. Regular monthly deposits need a different formula, a sum of many such terms, . And a loan with monthly payments does not follow this formula either, because each payment reduces the balance that is being compounded.
Why is your compound interest answer off?
Most wrong answers trace back to a short list of slips:
- Typing instead of for the rate.
- Using months for while is yearly.
- Rounding before raising it to the power.
- Multiplying inside instead of using the exponent, such as computing .
- Splitting the power over the sum, writing as .
The rounding slip is sneakier than it looks. For $10,000 at compounded monthly over 10 years, the correct growth factor is , giving $14,908.33. Rounding the monthly rate to gives about $14,849.01, roughly $59 short. Keep the full value on your calculator, or store it in memory.
When the answer looks wrong, run two quick checks. First, must exceed for a positive rate. Second, should land slightly above the simple interest result . If it does both, the setup is probably right, and any remaining error is in the arithmetic.
Practice problems
0 of 5 solved
- Find the balance after 3 years when dollars earns interest compounded annually. Round to the cent (answer in dollars).
Answer:
Annual compounding means . . Since , . - Find the balance after 2 years when dollars earns compounded monthly. Round to the cent (answer in dollars).
Answer:
Here and . . Since , . - How much must be deposited today at compounded annually to have dollars in 5 years? Round to the cent (answer in dollars).
Answer:
Solve for . . So . - About how many years does money take to double at compounded annually? Round to 2 decimal places.
Answer:
Set . Take logs: . Then years. - A deposit of dollars grows to dollars in 4 years with annual compounding. Find the annual rate as a percent, to 2 decimal places.
Answer:
, so . Take the fourth root: . So , which is .
Common questions
What is the compound interest formula?
The formula is . is the final amount, the starting principal, the annual rate as a decimal, the number of compounding periods per year and the time in years.
How do you find only the interest earned, not the total balance?
Subtract the principal from the final amount: interest . The formula itself returns the whole balance, principal included.
What does n mean in the compound interest formula?
is how many times per year interest is added to the balance: 1 for annual, 4 for quarterly, 12 for monthly and 365 for daily. It splits the annual rate into per period and sets the number of periods .
How do you solve for time in the compound interest formula?
Divide both sides by , then take a logarithm of both sides. This gives .
What is the difference between simple and compound interest formulas?
Simple interest uses and always earns interest on the original principal only. Compound interest earns interest on the growing balance, so the exponent appears and the growth curves upward.
Can the compound interest formula use a negative rate?
Yes. A negative makes the growth factor smaller than 1, so the balance shrinks. This is how depreciation and exponential decay are modeled.