The Math of Investing · Lesson 7 · 12 min read

Compound interest

Compound interest in investing is growth on both your original money and the returns you have already earned. See how reinvesting and starting early can build growth over time, and how fees, debt and inflation affect it.

Written by the StockEducation Editorial Team · Reviewed by Associate Professor Charles Lo, CPA, PhD · Updated · How we check lessons

Quick answer

What is compound interest?

Compound interest is growth earned on both your original money and the returns it has already made, so the dollar gains get bigger each year. At a steady 8%, $10,000 becomes about $100,627 in 30 years with nothing added. You get the most from it by starting early, adding money steadily, reinvesting dividends, keeping fees and taxes low and not interrupting it.

Key takeaways

  1. Compound interest is interest earned on interest: $10,000 at 8% adds about $11,600 in its first decade and $54,000 in its third.
  2. Rule of 72: divide 72 by the annual rate to estimate doubling time. At 10% that’s about 7.2 years.
  3. Time is the biggest lever. $50,000 invested from 25 to 34 can end three times larger at 65 than the same $50,000 spread over 35 to 64, though much larger contributions can still close the gap.
  4. Reinvesting dividends, using tax advantaged accounts and avoiding needless sales all leave more money compounding.
  5. Compounding works against you too: high interest debt, fund fees and inflation all compound against your wealth.
The original compounding illustration: returns can earn further returns over time.
The original compounding illustration: returns can earn further returns over time.

Start the lessonTake the quick checkRead the FAQSee the sources

All 6 parts of this lesson

Part 1 of 6 · Growth on growth

What is compound interest?

Compound interest is interest earned on interest. Put $10,000 to work at 8% a year. Year one earns $800. Year two earns 8% on $10,800, which is $864, and year three earns it on $11,664. The base grows, so the growth itself grows.

Leave it alone and the $10,000 grows to about $21,589 after 10 years, $46,610 after 20 and $100,627 after 30, before taxes and fees and with nothing added. The last 10 years add about $54,000, more than the first 20 years combined (about $36,600).

A separate hypothetical example: $1,000 at 10% for 30 years becomes about $17,449 with compounding, versus $4,000 with simple interest. The surrounding $10,000 example uses 8%.
A separate hypothetical example: $1,000 at 10% for 30 years becomes about $17,449 with compounding, versus $4,000 with simple interest. The surrounding $10,000 example uses 8%.

Notice the shape. The separate $1,000 at 10% illustration above shows compounding pulling away from simple interest. In the earlier $10,000 at 8% example, simple interest adds a flat $800 a year. Later the dollar gains get much bigger, because the same percentage now applies to a much larger balance. There is no magic date when it speeds up; the shape depends on the rate, the years and what you add.

Doubling time at 8% (rule of 72)9 yrs
$10,000 at 8% for 30 years$100,627
Share of Buffett’s net worth gained after age 5099%

The first two tiles come from the standard compounding formula. The 99% figure is from Morgan Housel, The Psychology of Money (2020), chapter 4.1 Real investments do not pay a steady rate: returns vary from year to year and can be negative, and fees, taxes and contributions all change the result.

The rule

Leave your gains invested, because each year’s return is then earned on a larger base.

Marks Part 1 done

Part 2 of 6 · The rule of 72

How long does it take money to double?

The rule of 72 is a quick mental shortcut: divide 72 by the annual rate to estimate how many years it takes money to double. At 6% that’s about 12 years. At 10% it’s about 7.2 years, and at 24% about 3 years.

It’s an approximation. The exact answer depends on how often interest compounds, and the shortcut gets less accurate at high rates. At 22%, for example, the rule says 3.3 years, but annual compounding actually takes about 3.5. For debt, payments, fees and changing rates also matter, so use a full calculator such as the one on Investor.gov when the number matters.2

The rule works for anything that compounds, good or bad. The chart shows how fast different forces double, using rough typical rates.

Years to double at typical rates (rule of 72)

72 divided by the rate. These are rough typical rates, not forecasts: a credit card balance at 22% doubles about seven times faster than prices at 3% inflation.

None of these rates is a forecast. The rule only tells you what a rate does if it holds.

The rule

Divide 72 by the annual rate for a quick doubling estimate, but use the full formula when accuracy matters.

Marks Part 2 done

Part 3 of 6 · Time

Why does starting early matter so much?

Time is the biggest lever in compounding, because each extra year multiplies everything already there. Putting off a start by one year removes a year of growth from every dollar you would have invested.

Worked example

Two investors each put in a total of $50,000. Investor A puts in $5,000 a year from age 25 to 34, then stops. Investor B puts in about $1,667 a year from 35 to 64. At an assumed steady 7% a year, A ends at 65 with about $526,000 and B with about $157,000. Same money in, but A’s dollars had more years to compound.

Same $50,000 in, very different results at 65 (hypothetical)

A invests$0$200,000$400,000$600,000Investor AInvestor BAge 2535455565

Investor A Investor B

Investor A puts in $5,000 a year from 25 to 34 and then stops. Investor B puts in about $1,667 a year from 35 to 64. Both invest $50,000 in total. Computed in Python at a steady 7% a year with deposits at year end and no fees or taxes: A ends near $526,000, B near $157,000.

Time doesn’t beat everything, though. Starting from zero with a steady 10% a year compounded monthly, $50 a month from age 22 grows to about $428,390 by 65. But $500 a month from age 40 grows to about $663,417. Both figures leave out fees, tax and inflation. A later start can still win if it comes with much larger contributions.

Housel makes the same point about Warren Buffett: about 99% of his net worth came after his 50th birthday, because he kept compounding for decades.1 Buffett himself credits three things.

“My wealth has come from a combination of living in America, some lucky genes, and compound interest.”

Warren Buffett, Giving Pledge letter, 2010
The rule

Start investing as early as you can, because the dollars you invest first have the longest time to compound.

Marks Part 3 done

Part 4 of 6 · Five habits

How do you put compounding to work?

You can’t control returns. You can control when you start, how steadily you add money, what happens to dividends, which account you use and whether you break the chain.

  1. Start now, with whatever amount. Your first dollar matters most because it has the most time to grow. A small amount today gets years a bigger amount later can’t.
  2. Automate. A scheduled transfer from each paycheck makes a plan easier to keep. Pick an amount you can afford and review it when your income changes. Our savings goal calculator works out what to set aside each month.
  3. Decide what to do with dividends. Reinvesting buys more shares that earn their own dividends. Taking cash may suit an income need. Either way, reinvested dividends are still taxable in a regular account.3
  4. Compare account types. Retirement accounts such as 401(k)s and IRAs let gains compound without tax on each sale, though traditional accounts are taxed when you withdraw.4 Weigh tax rules, fees, any employer match and when you can reach the money.
  5. Avoid needless pauses. Selling at a low, pausing contributions in a recession or raiding the account for a big purchase all leave less money compounding. A separate cash buffer helps you avoid selling under pressure.

Why reinvesting dividends matters

S&P Dow Jones Indices estimates that dividends supplied about 31% of the S&P 500’s total return since 1926.5 Here’s a hypothetical: $10,000 growing at 10% a year for 30 years reaches about $174,000. If 3 percentage points of that return were paid out and spent each year, leaving 7%, it would reach about $76,000. Spending dividends doesn’t halve your growth rate, but it leaves fewer shares compounding.

A dividend reinvestment plan, or DRIP, uses each payout to buy more shares automatically. Check the fees, timing and tax treatment with your broker first.

Why taxes and trading leak growth

Each time you sell at a gain in a taxable account and pay capital gains tax, that money leaves the compounding base. Frequent trading turns this into a steady leak. Charlie Munger put numbers on the benefit of waiting:

“If you're going to buy something which compounds for 30 years at 15% per annum and you pay one 35% tax at the very end, the way that works out is that after taxes, you keep 13.3% per annum.”

Charlie Munger, A Lesson on Elementary, Worldly Wisdom, USC Business School, 1994

Still, tax alone is a poor reason to keep an investment that no longer fits. And life can justify a pause: a home purchase, an emergency or a drop in income. Compare the options rather than treating every pause as a mistake.

The original practical checklist. Account types are examples from different jurisdictions; eligibility and tax treatment depend on individual circumstances.
The original practical checklist. Account types are examples from different jurisdictions; eligibility and tax treatment depend on individual circumstances.
The rule

Set up an automatic, affordable contribution, then let it run without needless interruptions.

Marks Part 4 done

Part 5 of 6 · Compounding in reverse

When does compounding work against you?

Debt

On credit cards that charged interest, the average rate was about 22% in the Federal Reserve’s October 2026 consumer credit release.6 Picture $5,000 at a constant 22% compounded once a year, with no payments, no new charges and no fees. It grows to about $98,711 after 15 years ($5,000 × 1.22¹⁵).

$5,000 of card debt at 22% with no payments (hypothetical)

$0$25,000$50,000$75,000$100,000$125,000$20,114Year 0Year 5Year 10Year 15
$5,000 × 1.22 to the power of the year, compounded once a year with no payments, fees or new charges. The balance passes $20,000 in year 7 and reaches about $98,711 in year 15. Real cards charge interest daily and payments change the path, but the shape is the same. The 22% rate is the average on cards that charged interest in the Federal Reserve's October 2026 release. Source: Federal Reserve G.19 consumer credit release.

Real cards behave differently. Card interest is often calculated daily, and payments, fees and rate changes all alter the balance. The lesson holds: deal with high interest debt before you invest.7

Fees

A 1% yearly fee taken from your portfolio lowers the rate at which the whole balance compounds. At an assumed 7% return before fees, a 1% fee leaves the balance about 25% lower after 30 years than no fee would.8 Every dollar paid in fees also loses all its future growth, so check expense ratios.

$10,000 after 30 years at 7%, with and without a 1% fee (hypothetical)

A 1% fee looks small each year but leaves about $18,700 less after 30 years, about 25% of the balance. Computed as $10,000 × 1.07 or 1.06 to the 30th power. Source: Investor.gov: How fees and expenses affect your investment portfolio.

Inflation

Say cash earns 1% a year while prices rise 4%. Your purchasing power shrinks by about 2.88% a year (1.01 ÷ 1.04, minus 1). After 20 years it’s worth about 56% of what it was, before tax. Cash still has a job for short term spending and emergencies, but over decades inflation eats it.

Selling in a downturn

Selling after a steep fall to cover living costs is a costly interruption. The shares you sell can’t take part in any later recovery. An emergency fund lowers the chance you’ll have to sell under pressure.

The rule

Compounding also works against you, so deal with high interest debt and watch fees before chasing returns.

Marks Part 5 done

Part 6 of 6 · Patience

What do great investors say about patience?

The investors who got the most from compounding all say some version of the same thing: buy carefully, then wait.

“Impulse is your enemy, and patience and consistency are your friends.”

John C. Bogle, The Twelve Pillars of Wisdom, Arizona Republic Investment Strategies Forum, 2001

A longer horizon gives returns more time to compound, while needless trading adds costs. Make boring, repeated contributions and resist the urge to be clever.

“There are huge advantages for an individual to get into a position where you make a few great investments and just sit back and wait: You're paying less to brokers. You're listening to less nonsense.”

Charlie Munger, A Lesson on Elementary, Worldly Wisdom, USC Business School, 1994

Fewer, longer holdings cut trading costs and the pull of market noise. Spend more time researching what you buy and less time watching what you own.

“Our stay put behavior reflects our view that the stock market serves as a relocation center at which money is moved from the active to the patient.”

Warren Buffett, 1991 letter to Berkshire Hathaway shareholders

Buffett believes the market tends to move money from frequent traders to patient owners. Aim to be on the receiving end.

“Time is the friend of the wonderful business, the enemy of the mediocre.”

Warren Buffett, 1989 letter to Berkshire Hathaway shareholders

Patience isn’t blind. Time strengthens a durable business and magnifies the problems of a weak one, so before you plan to hold something for years, ask which kind it is.

Short term prices swing with mood. Over long periods, prices have tended to follow business results more closely, so hold long enough for the business, not the mood, to set the result.

The rule

Make steady, boring contributions and resist impulsive trades, which add costs that work against compounding.

Marks Part 6 done

Quick check

Quick quiz: test what you just read

Pick an answer to see why it is right. 5 questions, no account needed.

0 of 5 answered

1. $10,000 earns 8% a year. How much does year two earn?

Answer: B.Year one adds $800, so year two applies 8% to $10,800, which is $864. That extra $64 is interest on interest.

2. Using the rule of 72, about how long does money take to double at 4% a year?

Answer: C.72 divided by 4 is 18. At 10% it is about 7.2 years and at 22% about 3.3 years.

3. Investor A invests $5,000 a year from 25 to 34 and stops. Investor B invests about $1,667 a year from 35 to 64. Both put in $50,000. At a steady 7%, who has more at 65?

Answer: C.A ends near $526,000 and B near $157,000. A's dollars had the most years to compound.

4. At an assumed 7% return, what does a 1% yearly fee do to the balance after 30 years?

Answer: C.$10,000 grows to about $76,123 at 7% and $57,435 at 6%, about 25% less. Every dollar paid in fees also loses all its future growth.

5. Why does debt at 22% deserve attention before investing?

Answer: A.At 22%, a balance doubles roughly every 3.3 years. Few investments can be expected to outrun that.

Questions people ask

Compound interest FAQ

What is the difference between simple and compound interest?

Simple interest is paid only on your original amount, so $1,000 at 7% gains $70 every year. Compound interest is also earned on growth already added. Year two adds $74.90 instead of $70, because 7% now applies to $1,070. The gap widens every year you stay invested.

Is it too late to benefit from compounding if I start later?

No. Starting later means fewer years of growth, but compounding still works on every dollar you invest from now on. Investing more each month can close part of the gap. The costly habit is postponing again and again.

How do fees affect compound growth?

Fees compound against you the same way returns compound for you, because every dollar taken in fees loses all its future growth. At an assumed 7% return, a 1% yearly fee leaves you about 25% less after 30 years.8 Cost is one of the few things you control.

Does compound interest work against you with debt?

Yes. Unpaid interest is added to the balance and then charged interest itself. At a constant 22% with no payments, $5,000 grows to about $98,711 in 15 years. Real card balances differ because of daily interest, payments and fees, but high interest debt deserves attention before investing.

Does a compound interest calculator predict my returns?

No. A steady rate is an assumption. Real returns change every year and can be negative, so treat any result as an illustration of what a rate would do, not a promise.

Next steps

You finished this lesson.

You now have the main ideas from this lesson. Next, practice where mistakes cost nothing: a free account saves your progress and unlocks the practice simulator with virtual money.

Free, no card. Lessons stay free to read without an account.

Your notes on one card, and what comes next
  1. Step 1 · DoneCompound interest
    See your notes on one card
    1. Compound interest is interest earned on interest: $10,000 at 8% adds about $11,600 in its first decade and $54,000 in its third.
    2. Rule of 72: divide 72 by the annual rate to estimate doubling time. At 10% that’s about 7.2 years.
    3. Time is the biggest lever. $50,000 invested from 25 to 34 can end three times larger at 65 than the same $50,000 spread over 35 to 64, though much larger contributions can still close the gap.
    4. Reinvesting dividends, using tax advantaged accounts and avoiding needless sales all leave more money compounding.
    5. Compounding works against you too: high interest debt, fund fees and inflation all compound against your wealth.
  2. 2
    Step 2 · NowSave your progress with a free account

    Keep your course progress and practice on real U.S. stocks with virtual cash.

    Create your free account No card needed. Lessons stay free to read.
  3. 3
    Step 3Follow the learning path
    The learning pathFree

    Learn the rest in the right order

    Ten modules of lessons, videos, tools and quizzes, ordered so each step builds on the last, from market basics to company analysis and risk.

    Start the learning path

Want the full sequence? See the course outline →

Up nextPart 1 · What is compound interest?
Next ↓