Skip to main content
HS Calculadora
  • interés compuesto
  • ahorro
  • inversión
  • finanzas

How to Calculate Compound Interest: Formula, Example and Rule of 72

8 min read

A plant sprouting from a jar of coins, a symbol of compound interest
In this article
  1. What is compound interest?
  2. How do you calculate compound interest?
  3. Does compounding frequency matter?
  4. What is the rule of 72?
  5. How does inflation affect compound interest?
  6. What are the most common compound interest mistakes?
  7. Frequently asked questions

Compound interest is interest calculated on your initial capital plus the interest already earned, so every period you earn interest on interest. It is calculated with the formula A = P × (1 + r/n)^(n × t). For example, €10,000 at 5% a year for 10 years grows to €16,288.95. You can model your own numbers with the compound interest calculator. Below you will find the formula explained, a year-by-year table, the effect of compounding frequency, the rule of 72 and how inflation changes the picture.

Key takeaways

  • Formula: A = P × (1 + r/n)^(n × t), where r is the annual rate, n the number of compounding periods per year and t the number of years.
  • €10,000 at 5% compounded annually for 10 years earns €6,288.95 in interest; with simple interest it would be €5,000.
  • The rule of 72 estimates how many years it takes to double your money: 72 divided by the interest rate (at 5%, about 14.4 years).
  • What really matters is the real return: the interest rate after inflation, taxes and fees.

What is compound interest?

Compound interest is a way of accumulating returns in which each period's interest is added to the principal and starts earning interest of its own. It is the opposite of simple interest, where interest is always calculated on the original principal and is never reinvested.

The difference is small at first and large over time. In year one, €10,000 at 5% earns €500 under both simple and compound interest. In year ten, simple interest still pays €500, but compound interest pays €775.66 because the balance has already grown. If you want to compare both methods side by side, the simple interest calculator shows the other half of the equation.

How do you calculate compound interest?

Multiply the starting principal by (1 + rate per period) raised to the total number of periods. The general formula is:

A = P × (1 + r / n)^(n × t)

  • A: final amount, what you will have at the end.
  • P: principal, the money you invest or save at the start.
  • r: nominal annual interest rate as a decimal (5% = 0.05).
  • n: number of times interest is compounded per year (1 for annual, 12 for monthly).
  • t: number of years.

The interest earned is simply A − P. If interest is paid once a year, the formula simplifies to A = P × (1 + r)^t.

Worked example: €10,000 at 5% for 10 years

With annual compounding: A = 10,000 × 1.05^10. Since 1.05^10 = 1.628895, the final amount is €16,288.95 and the interest earned is €6,288.95. With simple interest you would have earned 10,000 × 0.05 × 10 = €5,000, so compounding adds an extra €1,288.95.

Here is the year-by-year growth, with each year's interest rounded to the cent (which is why the last figure is one cent below the exact formula result):

YearStarting balanceInterest for the yearEnding balance
1€10,000.00€500.00€10,500.00
2€10,500.00€525.00€11,025.00
3€11,025.00€551.25€11,576.25
4€11,576.25€578.81€12,155.06
5€12,155.06€607.75€12,762.81
6€12,762.81€638.14€13,400.95
7€13,400.95€670.05€14,071.00
8€14,071.00€703.55€14,774.55
9€14,774.55€738.73€15,513.28
10€15,513.28€775.66€16,288.94

Look at the interest column: it rises every year even though the rate never changes. Leave the money for 20 years and the same principal reaches €26,532.98; after 30 years, €43,219.42. Time matters more than almost any other variable.

What if you also add money every month?

Most people do not invest once; they save regularly. If you add €100 at the end of every month to that €10,000 for 10 years, at 5% a year compounded monthly, the final amount is about €31,998.32: €16,470.09 comes from the initial principal and €15,528.23 from the contributions, of which €12,000 is money you paid in yourself. To plan towards a specific target, the savings goal calculator tells you how much to put aside each month.

Does compounding frequency matter?

Yes: the more often interest is compounded, the slightly more you earn at the same nominal rate, although the difference is modest. These are the results for €10,000 at a 5% nominal rate over 10 years:

CompoundingnFinal amount
Annual1€16,288.95
Quarterly4€16,436.19
Monthly12€16,470.09
Daily365€16,486.65
Continuous—€16,487.21

That is why, to compare products, Spain uses the TAE (tasa anual equivalente, equivalent to an annual percentage yield), which the Banco de España describes as the indicator that reflects the effective annual cost or return, including payment frequency and certain fees. A 5% nominal rate compounded monthly works out to an effective rate of about 5.12%. You can convert between nominal and effective rates with the effective annual rate calculator.

What is the rule of 72?

The rule of 72 is a mental shortcut for how many years it takes money to double: divide 72 by the annual interest rate in percent. At 5%, 72 / 5 = 14.4 years; at 8%, 72 / 8 = 9 years.

It is an approximation. The exact figure at 5% is ln(2) / ln(1.05) = 14.21 years, so the rule is about two months off. It works best for rates between 6% and 10% and loses accuracy at very high rates. It also works in reverse: with 3% inflation, the purchasing power of your money halves in about 24 years. To try different rates, use the rule of 72 calculator.

How does inflation affect compound interest?

Inflation behaves like compound interest working against you: every year it reduces what the same money can buy. That is why the figure that matters is the real return, calculated as:

Real return = (1 + nominal rate) / (1 + inflation) − 1

With a 5% return and 2% inflation (the European Central Bank's medium-term target), the real return is 1.05 / 1.02 − 1 = 2.94%. The €16,288.95 from the example, expressed in today's euros, is worth about €13,362.61. That is still more than the original €10,000, but considerably less than the nominal figure suggests. To see how much your money loses over time, try the inflation calculator.

What are the most common compound interest mistakes?

  • Confusing the nominal rate with the effective rate. The nominal rate (TIN in Spain) ignores compounding frequency and fees; to compare offers, use the TAE or APY.
  • Forgetting taxes. In Spain, interest and investment gains are taxed in the savings base of personal income tax (IRPF), at rates starting at 19%. A 5% gross return is not a 5% net return.
  • Assuming a constant return. A fixed-term deposit can guarantee a rate, but shares and funds cannot: a 7% historical average does not mean 7% every year.
  • Ignoring fees. A 1% annual fee compounds too, and over 30 years it eats a meaningful share of the result.
  • Typing the rate as a percentage inside the formula. It is 1.05, not 1 + 5.

Keep in mind that these calculations are estimates for educational purposes and are not financial advice; before investing, check the product terms or speak to a qualified professional.

Frequently asked questions

What is the compound interest formula?

The formula is A = P × (1 + r/n)^(n × t), where A is the final amount, P the initial principal, r the annual interest rate as a decimal, n the number of compounding periods per year and t the number of years. With annual compounding it simplifies to A = P × (1 + r)^t. The interest earned is the difference between the final amount and the principal.

How much does €10,000 earn at 5% compound interest?

With annual compounding, €10,000 at 5% grows to €12,762.82 after 5 years, €16,288.95 after 10 years and €26,532.98 after 20 years. These are gross figures: in Spain you would need to subtract income tax on savings returns and any fees, and adjust for inflation, to know the real gain in purchasing power.

What is the difference between simple and compound interest?

With simple interest, interest is always calculated on the original principal, so you earn the same amount every year. With compound interest, interest is added to the balance and earns interest of its own. With €10,000 at 5% for 10 years, simple interest produces €5,000 and compound interest €6,288.95, and the gap widens with every extra year.

What is the rule of 72 used for?

It lets you estimate in your head how many years an investment takes to double: divide 72 by the annual interest rate. At 6% money doubles in about 12 years and at 9% in about 8. It is a fairly reliable approximation for rates between 6% and 10%, and it also shows how quickly inflation halves your purchasing power.

Is monthly compounding better than annual compounding?

At the same nominal rate, monthly compounding earns a little more because interest starts earning interest sooner. With €10,000 at 5% for 10 years, the difference is €181.14 (€16,470.09 versus €16,288.95). To compare products with different compounding frequencies, look at the effective annual rate (TAE or APY), which already includes this effect.

To see how your own savings could grow with different rates, time frames and contributions, enter your figures in the compound interest calculator and get the final amount and interest earned instantly.

Informational content prepared by the HS Calculadora. Back to the blog

Calculators in this article

Finance

Compound Interest Calculator

See how savings grow with compound interest.

Finance

Simple Interest Calculator

Calculate simple interest on a principal.

Finance

Savings Goal Calculator

Find how long it takes to reach a savings target.

Finance

Effective Annual Rate Calculator

Convert a nominal rate into its true annual yield.

Finance

Rule of 72 Calculator

Estimate how long it takes an investment to double.

Finance

Inflation Calculator

Find the equivalent value of money across any time period.

Keep reading