$1,000 earning 5% becomes $1,050 after one year. But the next year's interest isn't another $50 if you leave the interest in the account. It's $52.50. That small difference is where I start when explaining how to calculate compound interest. I'll walk you through the formula, show what changes with monthly deposits, and help you check the result without confusing your own money with the interest it earned.
What is compound interest, and how is it different?
I think of compound interest as a repeating calculation on a changing balance. Interest gets added, then the next calculation includes that interest. Your starting money is called the principal. Once interest joins it, the amount earning interest can grow even if you add nothing yourself.
My starting example: $1,000 at 5%
I use the example in the CFPB explanation of compound interest: $1,000 at 5%, compounded annually, becomes $1,050 after one year and $1,102.50 after two. The second year's interest is calculated on $1,050, not just the original $1,000. That gives you $52.50 in year two.
| Method | What earns interest | Ending balance | Interest earned |
|---|---|---|---|
| Simple interest | Original $1,000 only | $1,100.00 | $100.00 |
| Annual compound interest | Principal plus earlier interest | $1,102.50 | $102.50 |
I wouldn't call the ending balance your earnings. Most of that balance is still money you put in. Keeping those two amounts separate is the easiest way I know to read a calculator result correctly. And I treat a fixed-rate savings example differently from an investment estimate, where returns can vary.
What is the compound interest formula?
For one deposit at a fixed nominal annual rate, I use A = P(1 + r/n)^(nt). The ^ sign means raise the preceding bracket to a power. In plain words, I calculate the growth factor for one period, repeat that growth for every period, then multiply by my starting money.
- A is the final balance, including the starting deposit and interest.
- P is the principal, or money deposited at the start.
- r is the nominal annual interest rate written as a decimal.
- n is the number of compounding periods in one year.
- t is the length of time in years.
How I convert a percentage to a decimal
I divide the percentage by 100. So 5% becomes 0.05 in the formula. Entering 5 instead would mean a rate of 500%, which explains some wildly high answers. If you want to check this conversion separately, I built the Percentage Calculator for percentage calculations.
Tip from me: I write the units beside my inputs before calculating: annual rate, periods per year, and years. If one input says months while another expects years, I fix that before touching the formula.
How do I calculate compound interest step by step?
I'll keep the useful monthly example from my earlier version: $1,000 at a 5% nominal annual rate, compounded monthly for three years. There are no extra deposits or withdrawals. I assume the rate stays fixed and leave fees out, so you can see the calculation without other moving parts.
- Write down the inputs: P = 1000, r = 0.05, n = 12, and t = 3.
- Divide the annual rate by 12: 0.05/12 = 0.0041666667 approximately.
- Add 1 to get the monthly growth factor: approximately 1.0041666667.
- Count the periods: 12 times 3 = 36 monthly periods.
- Raise the growth factor to the 36th power, then multiply by 1000.
- Round the final balance to cents: approximately $1,161.47.
My full calculation is A = 1000(1 + 0.05/12)^(12 times 3). I keep the division inside the formula rather than typing a shortened decimal back into it. That avoids letting an early rounding choice affect every later period.
How I calculate interest earned
I subtract the original $1,000 from $1,161.47. That gives $161.47 in interest, not $1,161.47. For a quick check, the first month's interest should be about $4.17: 1000 times 0.05/12. If my first period produces $50, I've probably used the annual rate as though it were monthly.
How does annual, monthly or daily compounding change the answer?
I change n to match the account's compounding schedule. Annual compounding uses 1, quarterly uses 4, and monthly uses 12. For daily compounding, I check the account terms rather than assuming every product uses the same day-count basis.
| Compounding | Periods used | Ending balance | Interest earned |
|---|---|---|---|
| Annual | 1 | $1,050.00 | $50.00 |
| Quarterly | 4 | $1,050.95 | $50.95 |
| Monthly | 12 | $1,051.16 | $51.16 |
| Daily, assuming 365 periods | 365 | $1,051.27 | $51.27 |
At the same positive nominal rate, more frequent compounding gives interest more chances to earn interest. But I wouldn't choose an account from that fact alone. In this example, daily rather than monthly compounding changes the rounded annual result by just $0.11. A different rate or account charge can matter more.
I also separate the compounding schedule from when interest appears on a statement. To reproduce an actual account balance, I need its terms for compounding, crediting, day counts and rounding. A textbook schedule is useful for learning, but it isn't a substitute for those details.
How do APY and APR affect the calculation?
Before entering a rate, I check what it measures. The standard periodic formula needs a nominal annual rate. APY already reflects compounding over a year in U.S. deposit-account disclosures. Treating an APY as a nominal rate and compounding it again can overstate your result.
How I calculate APY from a nominal rate
For the fixed-rate model here, I calculate APY as (1 + r/n)^n - 1. With a 5% nominal rate compounded monthly, that is (1 + 0.05/12)^12 - 1, or about 5.116%. This is why the one-year monthly balance in my table is $1,051.16 rather than $1,050.
| What you have | What I do | What I avoid |
|---|---|---|
| Nominal annual rate and frequency | Use A = P(1 + r/n)^(nt) | Forgetting to divide r by n |
| APY for a one-year, single-deposit estimate | Multiply principal by 1 plus APY as a decimal | Compounding the APY again |
| A rate labelled APR | Read the product definition and calculation terms | Assuming every APR label means the same thing |
| Variable investment return estimate | Treat the result as a scenario | Calling the projected balance guaranteed |
I use the CFPB's APY disclosure rules for the U.S. deposit-account definition. I don't extend that definition to every country or financial product. If a calculator asks for an annual rate without explaining which kind, I check its assumptions before trusting the number.
How do I calculate compound interest with monthly deposits?
I can't put all future deposits into P and pretend they were there from the start. Each deposit has a different amount of time to grow. For equal monthly deposits and monthly compounding, I use a formula that adds the growth of those deposits to the growth of the starting balance.
My formula for deposits at month-end
I define i = r/12, m = 12 times t, and C as the monthly deposit. For deposits made at the end of each month, A = P(1 + i)^m + C[((1 + i)^m - 1)/i]. The first part grows the starting money. The second part grows the monthly deposits. If the rate is zero, I simply add P + C times m instead.
- I start with the same $1,000, 5% nominal annual rate, and three years of monthly compounding.
- I add $100 at the end of each month.
- There are 36 deposits, totalling $3,600.
- I calculate a final balance of approximately $5,036.81.
- Total money deposited is $1,000 + $3,600 = $4,600.
- Interest earned is $5,036.81 - $4,600 = $436.81.
If I move every contribution to the beginning of its month, each gets one extra period of growth. I multiply only the contribution part by (1 + i). This changes the example's final balance to about $5,052.95. So deposit timing isn't a tiny detail I can leave unstated.
Tip from me: I label every contribution example with its timing. If your account uses actual deposit dates and daily calculations, don't expect a month-end model to reproduce its statement exactly.
How do I check the result with Compound Interest Calculator?
I built Compound Interest Calculator and test my tools on a budget Android phone and a laptop. My preferred check starts with a plain single-deposit example. Once that matches the hand calculation, I have a useful baseline before comparing more complicated savings plans.
- Open Compound Interest Calculator and enter 1000 as the starting principal.
- Use 5 for a percentage-based annual-rate input. The formula uses 0.05, but a field asking for a percentage needs 5.
- Set the duration to three years and the compounding frequency to monthly.
- Keep extra contributions at zero for this check, then run the calculation.
- Compare the result with $1,161.47 total and $161.47 interest, allowing for displayed rounding.
I check inputs before blaming a mismatch on the maths. A percentage field and a decimal formula expect different ways of writing the same rate. Annual instead of monthly compounding also gives a different answer, even if every other number matches.
For a second comparison involving contributions, I can use Investor.gov's Compound Interest Calculator. It accepts monthly contributions and a compounding frequency. I still check contribution timing rather than assuming two calculators use identical rules. For a repayment schedule instead of untouched savings, I'd start with my Loan and EMI Calculator.
What compound interest mistakes should I avoid?
When a result looks wrong, I check the setup before repeating the calculation. Repeating the same wrong inputs more carefully won't fix them. These are the differences I look for first, especially when a hand calculation and an online estimate disagree.
- Mixing percentages and decimals. I use 0.05 in the formula for 5%, but follow the calculator field's stated units.
- Mixing months and years. In the standard formula, three years is t = 3, not t = 36.
- Compounding APY again. I establish the rate type before choosing my calculation.
- Subtracting only the starting principal when there are deposits. I subtract all contributed money to find interest earned.
- Rounding every intermediate step. I retain the full calculation and round the displayed answer at the end.
I also avoid making a savings formula do a loan schedule's job. Payments, fees and the order in which money is applied can change a debt balance. A calculation that assumes money sits untouched doesn't automatically describe what you owe after regular repayments.
And I don't treat a projected investment return as promised interest. The formula can show what would happen under a fixed assumption. It doesn't establish that the assumption will happen, or account for every charge and change in value.
How do I make my estimate useful for a real account?
I start with the product terms, not the biggest number on a comparison page. I need the rate type, compounding schedule, contribution dates and any charges that affect the balance. If the rate can change, I describe my result as an estimate under the rate I've chosen.
Then I change one input at a time. I compare a different monthly deposit while holding the rate and duration steady. Next I can test a different rate with the same deposits. This tells me what caused the change instead of leaving me with two balances I can't explain.
For an exact time interval, I can check the dates with my Date Difference Calculator, but I still need the account's rule for turning those dates into interest periods. Finally, I keep starting money, later deposits and interest in separate lines. That gives you a result you can check and explain.
Questions people ask
What is the formula for compound interest?
I use A = P(1 + r/n)^(nt) for one starting deposit at a fixed nominal annual rate. P is principal, r is the annual rate as a decimal, n is compounding periods per year, and t is years. I subtract P from A to find interest earned when there are no later deposits.
How do I calculate compound interest compounded monthly?
I set n to 12, divide the nominal annual decimal rate by 12, and multiply the years by 12. For $1,000 at 5% over three years, I calculate 1000(1 + 0.05/12)^36. That gives about $1,161.47, including $161.47 in interest, assuming no contributions or withdrawals.
How do I calculate compound interest with monthly deposits?
I calculate the growth of the starting deposit and add the growth of the recurring deposits. With monthly compounding and month-end deposits, I use A = P(1 + i)^m + C[((1 + i)^m - 1)/i]. Here i is the monthly decimal rate, m is months, and C is each monthly deposit.
Do monthly deposits earn interest immediately or from the next period?
I check the deposit timing assumed by the calculation and the actual account terms. In a month-end model, the new deposit doesn't earn interest during the month that just ended. In a beginning-of-month model, it gets that month's growth. An account using actual dates may require a more detailed calculation.
How does APY differ from APR when calculating compound interest?
I treat APY as a rate that already reflects annual compounding effects in U.S. deposit disclosures. I don't assume an APR label always has identical meaning across products. The standard periodic formula needs a nominal annual rate and frequency, so I read the terms before entering either figure.
Why does my compound-interest calculation differ from an online calculator?
I compare the rate type, percentage units, compounding frequency, duration and contribution timing first. Then I check rounding, fees, changing rates and day-count rules. Two calculations can both be internally correct while modelling different assumptions. I use a single-deposit example first because it removes contribution timing from the comparison.
What to do next
I'd start with one clean check: $1,000, a 5% nominal annual rate, monthly compounding and three years without extra deposits. Open my Compound Interest Calculator and compare your result with $1,161.47. Then replace those inputs with your own account terms. If you add money monthly, include the deposit schedule and confirm its timing before comparing results. Keep total deposits separate from interest earned, and check whether your quoted rate is nominal or APY. Those steps give you something more useful than a large final number: an estimate you understand and can check.