Investing

Compound interest, contributions and inflation: the exponential your intuition reads as a line

Compound interest is an exponential function, and the human mind thinks in straight lines. That gap is where almost every gut-feel error about money over time is born: people add when they should multiply, divide by 12 when they should take a root, and celebrate a nominal balance that inflation has already eaten. This guide splits the topic into three stacked layers. First pure compounding, the famous "interest on interest" that makes the curve take off. Then periodic contributions, where each deposit becomes a small exponential with its own term. Finally what is left after tax and inflation, the real net return, the only one that buys bread. Each step has its formula derived by hand and a figure checked twice. Run the numbers alongside in the [compound interest calculator](tool:calculadora-juros-compostos) as you read.

J-Kit16 min readIntermediate
  • Compound interest
  • Investing
  • Inflation
  • Income tax
  • Financial math

Key takeaways

  • Compound interest grows like an exponential, C·(1+i)^n; simple interest grows like a line. The gap between the two curves is the whole case for investing early.
  • Rates convert by a power, not by multiplication: 1%/month is 12.68%/year, not 12%. Multiplying by 12 understates the return.
  • With contributions, the balance is the compounded principal plus an annuity PMT·((1+i)^n−1)/i, each deposit earns only from the month it enters.
  • Only the real net return counts: strip out the regressive income tax (22.5% to 15%) and inflation using the Fisher formula, not the rough subtraction.

Exponential, not a line

Under simple interest, interest is always charged on the initial capital and is the same every period: the balance grows like a straight line. Under compound interest, each period's interest joins the base of the next period, so you earn interest on the capital and interest on the interest already accrued. The base grows, and on a larger base the interest is larger, a loop that feeds itself. The result is not a line, it is an exponential. Intuition fails precisely here: because in the early years the two curves nearly touch, it is easy to conclude the difference is small. It is not; it just takes time to show up, and then it explodes.

M = C · (1 + i)^n
M
final amount (capital plus interest)
C
initial capital invested
i
interest rate per period, in decimal (1% = 0.01)
n
number of compounding periods
Amount under compounding: the capital multiplied by (1 + rate) once per period. It is the (1 + i)^n, the power, that makes the curve exponential.

Put the two formulas side by side on the same capital and rate and the difference stops being abstract. Take R$ 10,000 at 10% per year. Under simple interest you add R$ 1,000 every year, always: in 30 years the balance is R$ 40,000. Under compound interest each year earns 10% on a balance larger than the year before. The chart below traces both curves year by year.

043,623.587,247130,870.5174,49401530YearsBalance (R$)Compound interestSimple interest
R$ 10,000 at 10% per year: simple interest (a line) against compound interest (an exponential). In 30 years compounding reaches R$ 174,494, over four times the R$ 40,000 of simple interest. The distance between the curves is what time does for interest.
View the data
xCompound interestSimple interest
010,00010,000
516,10515,000
1025,93720,000
1541,77225,000
2067,27530,000
25108,34735,000
30174,49440,000

Notice the shape: up to about five years the curves run almost together, which is deceptive. It is at the end that the exponential leaves the line behind. That is why time is the most powerful variable in the simulation, far more than the rate, and even more than the starting amount. A simulation combines five inputs, and each one moves the result in a different way.

The five inputs of a simulation and each one's effect on the amount.
VariableWhat it does to the result
Initial capitalCompounds over the whole term; the starting point of the exponential.
Monthly contributionEach deposit becomes a smaller exponential, earning only from the month it enters.
Rate per periodIt is the base of the exponent; small gains or losses in the rate become huge differences at the end.
Term (n)It is the exponent; the strongest variable, because the exponential only takes off with time.
InflationDoes not change the nominal, but erodes purchasing power; an exponential pulling the other way.

Converting rates: the power, not the multiplication

The costliest everyday intuition error is converting rates by simple multiplication or division. If 1% per month were 12% per year, you could just multiply. But under compounding the next month earns on a balance that already absorbed the previous month's interest, so there is interest on the monthly interest itself, which multiplying by 12 ignores. The correct conversion uses a power: you compound the monthly rate twelve times.

(1 + i_ano) = (1 + i_mês)^12
i_ano
effective annual rate, in decimal
i_mês
effective monthly rate, in decimal
12
number of monthly compoundings in a year
Rate equivalence under compounding. To go from annual to monthly, invert it: i_month = (1 + i_year)^(1/12) − 1. Never divide or multiply by 12.

Applying the formula, 1% per month becomes (1.01)^12 − 1 = 12.6825%, not 12%. The 0.68 percentage-point gap is precisely the interest that the monthly interest earned across the year, invisible to anyone who multiplies. And the error grows with the rate: 2% per month equals 26.82% per year, not 24%. The higher the rate, the more multiplying by 12 lies downward.

Worked example 1, the error of annualizing by 12. You invest R$ 10,000 at 1% per month for 10 years (120 months). The correct move is to compound the monthly rate: 10,000 × (1.01)^120 = R$ 33,003.87. If you treated 1% per month as "12% per year" and projected annually, you would get 10,000 × (1.12)^10 = R$ 31,058.48. The difference is R$ 1,945.39, nearly 6% of the total, and it exists only because the wrong version threw away the interest on the monthly interest for a decade.

12.68%annual equivalent of 1%/mo (compounded)
R$ 33,003.87true balance at 1%/mo for 10 years
R$ 1,945.39error of saying "12%/yr" (multiplying by 12)

Periodic contributions: the annuity formula

When there are monthly contributions, the balance stops being a single exponential and becomes the sum of many. The initial capital compounds over all n months. The first deposit compounds for n−1 months; the second, for n−2; and the last, made at the end, barely earns. Summing all those terms looks laborious, but they form a geometric progression, and the sum of a geometric progression has a closed form. That is where the future-value-of-an-annuity formula comes from.

The one-line derivation: sum the compounded PMT contributions, FV = PMT·[(1+i)^(n−1) + (1+i)^(n−2) + ... + (1+i) + 1]. The bracketed term is a geometric sum with ratio (1+i) and n terms, which equals ((1+i)^n − 1) / i. Substituting, you reach the closed form below. It holds for contributions made at the end of each period, the convention our calculator uses.

VF = PMT · [ (1 + i)^n − 1 ] / i
VF
future value of the contribution stream
PMT
amount of each periodic contribution
i
rate per period, in decimal
n
number of contributions
Future value of a series of equal contributions (ordinary annuity). Add to this FV the compounded initial capital, C·(1+i)^n, to get the total balance.

Worked example 2 (nominal part), R$ 1,000 of initial capital, R$ 500 contributed per month, 0.7% per month (equivalent to 8.73% per year), for 20 years (240 months). The initial capital becomes 1,000 × (1.007)^240 = R$ 5,334.24. The contribution stream becomes 500 × [(1.007)^240 − 1] / 0.007 = R$ 309,588.91. Summing, the nominal balance is R$ 314,923.15. Of that total, you deposited R$ 121,000 (the capital plus 240 contributions of R$ 500) and interest added R$ 193,923.15, more than you put in. Notice the imbalance: almost all the balance came from the contributions and from time, not from the initial capital. Check it in the calculator below.

R$ 314,923.15nominal balance in 20 years
R$ 121,000.00total contributed (capital + 240 deposits)
R$ 193,923.15accumulated interest
Reproduce the example: capital R$ 1,000, contribution R$ 500, rate 0.7% per month, 20 years. The tool splits capital, contributions, interest and real value, and draws the curve.Open the tool full page

The real return: stripping out tax and inflation

The nominal balance is a partial illusion: part of it the government takes in tax, and part inflation hollows out from within. On fixed income (CDB, Treasury bonds, LC), income tax is withheld at source upon redemption, at a rate that falls with the term, the regressive table of Law 11,033/2004. It applies only to the yield, never to the principal. Leaving the money in for over two years drops the bite from 22.5% to 15%.

Regressive income-tax table on fixed-income yield (Law 11,033/2004, art. 1). Days are counted as calendar days from the investment date.
Investment termIncome-tax rate
Up to 180 days22.5%
From 181 to 360 days20%
From 361 to 720 days17.5%
Over 720 days15%

Even before income tax, there is the IOF, a tax that only bites redemptions in the first 30 days. It follows a regressive table from Decree 6,306/2007: 96% of the yield on day one, falling day by day to 3% on day 29 and zeroing on day 30. In practice, anyone who does not redeem within the first month never pays IOF, which is why it barely appears in medium- and long-term simulations, but it punishes very short-term churn. After IOF (if any) and income tax, you are left with the nominal net return. Inflation still has to be stripped out to reach what matters.

The correct real-return calculation is the Fisher effect, formalized by Irving Fisher in "The Theory of Interest" (1930): you do not subtract inflation, you divide by it. The rough subtraction (real return ≈ nominal return − inflation) works as a mental estimate, but errs more and more as rates rise. With a 10% return and 6% inflation, subtraction gives 4%, but the exact figure is (1.10 ÷ 1.06) − 1 = 3.77%, a 0.23-point error. Raise it to a 30% return and 20% inflation and subtraction spits out 10%, when the real figure is (1.30 ÷ 1.20) − 1 = 8.33%: now the error is 1.67 points. Under high rates and high inflation, the approximation becomes a trap.

(1 + r_real) = (1 + r_nominal) / (1 + inflação)
r_real
real return (gain in purchasing power)
r_nominal
nominal return for the period
inflação
accumulated inflation over the same period
Fisher effect (exact form). Isolating: r_real = (1 + r_nominal)/(1 + inflation) − 1. The approximation r_real ≈ r_nominal − inflation only holds when both rates are small.

Worked example 2 (real and net part), go back to the R$ 314,923.15 balance from the contributions example. Interest was R$ 193,923.15; at 15% income tax (term over 720 days), the tax is R$ 29,088.47, and the nominal net balance drops to R$ 285,834.68. Now strip out inflation: at 4.5% per year for 20 years, prices multiply by (1.045)^20 = 2.4117. Dividing the net balance by that factor, today's real purchasing power is R$ 118,519.31. The balance looked like R$ 314k; after tax and inflation, it buys the equivalent of R$ 118.5k in today's money. It is this figure, not the nominal one, that answers "what is this really worth".

R$ 29,088.4715% income tax on the interest
R$ 285,834.68nominal net balance
R$ 118,519.31real purchasing power (in today's reais)

Useful shortcuts and common traps

The exponential yields a few mental shortcuts worth gold, as long as you know each one's range. The most famous is the rule of 72: to estimate in how many periods money doubles at a rate i (in %), divide 72 by i. At 8% per year, money doubles in about 72 ÷ 8 = 9 years. The rule does not come from nowhere: doubling requires (1+i)^n = 2, that is, n = ln(2)/ln(1+i), and ln(2) ≈ 0.693. For rates in the 6% to 10% band, the number 72 (a bit above 69.3) offsets the rounding and lands right on target.

n ≈ 72 / i(%)
n
number of periods to double
i(%)
rate per period, in percentage points
Rule of 72: periods to double the capital at a rate i per period. An approximation of the exact n = ln(2)/ln(1+i); most precise near 8%.
Where the rule of 72 goes wrong (and why)

The rule is an approximation and drifts from the exact figure at the extremes. At 1% per period, the rule gives 72 periods to double, but the exact is 69.66, it overestimates by about 3.4%. At 8%, rule and reality practically coincide (9.00 versus 9.01). At 20%, the rule gives 3.60 periods, but the exact is 3.80, now it underestimates by 5.3%. At low rates, prefer dividing 69.3 by i; at high rates, the rule of 72 gets too optimistic.

Why savings accounts earn less

Savings-account remuneration is set by law (Law 8,177/1991, art. 12, as amended by Law 12,703/2012), not by the market. When the Selic rate is above 8.5% per year, savings earn 0.5% per month plus the TR, about 6.17% per year, a fixed ceiling even with the Selic much higher. When the Selic is at 8.5% per year or below, savings earn 70% of the Selic plus the TR. Since a CDB paying 100% of the CDI tracks almost the whole Selic, it usually earns much more than savings even after income tax.

The upside of savings is the income-tax exemption for individuals (Law 8,981/1995, art. 68, III) and liquidity, but the monthly "anniversary" means redeeming before the month closes forfeits that period's yield. Compare both net scenarios in savings yield and CDB yield.

Nominal vs real: when each one matters

The nominal value is the number on the bank screen; the real value is what that number buys. To pay a fixed debt in reais, the nominal is enough. For long-term goals, retirement, a home down payment, a child's tuition, only the real tells the truth, because the target also rises with inflation. An investment can have a positive nominal return and a negative real return at the same time: if it earns 5% in a year of 7% inflation, the balance grows in reais but shrinks in purchasing power. Always compare the yield against a price index (IPCA) over the same period, not just against zero.

The same ideas resurface in other financial calculations. The logic of summing a series of compounded installments is at the heart of a loan, see SAC versus Price. Converting between a percentage change and a multiplicative factor is the foundation of all of this, revisit it in percentage increase and discount. And when the topic is restating a value over time by an official index, the guide to monetary restatement by Selic and IPCA-E shows the same math applied to debts and judgments.

Frequently asked questions

Is 1% per month the same as 12% per year?
No. By compound equivalence, 1% per month equals (1.01)^12 − 1 = 12.68% per year, because each month's interest starts earning in the following months. Multiplying by 12 gives a nominal rate, not the effective one, and understates the real return, the higher the rate, the bigger the error.
How do you compute compound interest with monthly contributions?
Add two parts: the compounded initial capital, C·(1+i)^n, plus the future value of the contributions, PMT·((1+i)^n − 1)/i. The second formula is the sum of the geometric progression of the deposits, each compounded from the month it entered until the end. It assumes contributions at the end of each period, our calculator's convention.
What is the income tax on CDB and Treasury bonds?
The regressive table of Law 11,033/2004: 22.5% for terms up to 180 days, 20% from 181 to 360, 17.5% from 361 to 720 and 15% over 720 days. Income tax applies only to the yield, is withheld at source upon redemption, and savings accounts are exempt for individuals (Law 8,981/1995).
How do you strip inflation out of a return?
By the Fisher formula: (1 + real return) = (1 + nominal return) / (1 + inflation). Divide, do not subtract. The subtraction (nominal − inflation) is just an estimate that errs more and more as rates rise, with a 30% return and 20% inflation, subtraction gives 10%, but the real figure is 8.33%.
Is the rule of 72 reliable?
It is a good approximation for rates between 6% and 10%, where it lands almost exactly. Outside that band it drifts: at 1% per period it overestimates the doubling time by about 3.4%; at 20% it underestimates by 5.3%. The exact formula is n = ln(2)/ln(1+i). For low rates, dividing 69.3 by i is more precise.
Why do contributions earn less than the initial capital?
Because each contribution stays invested for less time: the last month's deposit barely earns, while the initial capital compounds over the whole period. On the other hand, over a long term, the sum of many contributions usually outweighs the initial capital, in the 20-year example, the contributions formed almost the entire balance, and interest exceeded the total deposited.

Compound interest is an exponential: C·(1+i)^n for the capital, plus the annuity PMT·((1+i)^n−1)/i for the contributions. Treat it as a line and you err, adding when you should multiply, dividing by 12 when you should take a root. And the number that matters is not the nominal balance: strip out the regressive income tax (22.5% to 15%) and inflation via the Fisher formula (divide, do not subtract) to reach the real net return, the only one that buys bread. Check each scenario in the compound interest calculator.

Sources & references

  1. Law 11,033/2004, art. 1, regressive income-tax table on fixed income
  2. Law 8,177/1991, art. 12, savings remuneration (as amended by Law 12,703/2012)
  3. Law 12,703/2012, new savings-account yield rule
  4. Law 8,981/1995, art. 68, III, income-tax exemption of savings for individuals
  5. Decree 6,306/2007, IOF regulation (30-day regressive table)
  6. Irving Fisher, "The Theory of Interest" (1930), the Fisher effect (real return)
  7. Central Bank of Brazil, Citizen's Calculator (financial applications)