Snowballr provides financial education, not investment advice. Verify any advisor on FINRA BrokerCheck.
Snowballr
More
GuidesProtect your moneyScenariosEmbed on your site
Free · No sign-up required
Free · Taxable / Roth / 401(k) · Federal + State

Compound interest calculator with taxes

Standard compound interest calculators show pre-tax fantasy numbers. This one shows the after-tax reality: $500/mo at 8% over 30 years grows to $746K pre-tax → $661K in taxable, $582K in a 401(k), $746K in a Roth. See your real outcome.

After-tax reality: $500/mo at 8% over 30 years

The compound interest formula A = P(1 + r/n)^(nt) gives you the gross growth. Taxes reduce that depending on the account type. Here's what $180,000 in contributions ($500/month × 30 years) becomes at 8% APY after different tax treatments:

Account typePre-taxTaxAfter-taxDrag
Taxable brokerage (LTCG 15%)
15% LTCG on $566K of gains, contributions untaxed
$746,000$85,000$661,00011.4%
Taxable brokerage (LTCG 20% + NIIT 3.8%)
23.8% on gains for high earners
$746,000$135,000$611,00018.1%
Traditional 401(k) at 22% retirement bracket
Full ordinary income tax on entire withdrawal
$746,000$164,000$582,00022.0%
Traditional 401(k) at 24% retirement bracket
Higher bracket retiree (often dual-income)
$746,000$179,000$567,00024.0%
Roth IRA / Roth 401(k)
Tax-free growth + tax-free withdrawals after 59½
$746,000$0$746,0000%
Taxable + 1% annual dividend drag
0.5-1%/yr drag from annual dividend tax compounds over 30 yrs
$746,000$130,000$616,00017.4%

How to calculate after-tax compound interest

Three different formulas depending on account type:

Taxable brokerage
A_after = P + (A − P) × (1 − ltcg_rate)
Tax applies only to gains (A − P), not contributions. LTCG rate: 0% / 15% / 20% by income bracket. Add 3.8% NIIT if MAGI > $200K single / $250K married.
Traditional 401(k) / IRA
A_after = A × (1 − retirement_marginal_tax_rate)
Full ordinary income tax on the entire withdrawal (including contributions that were pre-tax). Typical retiree bracket: 22% (single $44-95K) or 24% (single $95-182K).
Roth IRA / Roth 401(k)
A_after = A
Zero tax on growth or withdrawal after 59½. Contribution limit $7,000 ($8K at 50+) for Roth IRA in 2026; income phase-out at ~$150K single / $236K married.

The hidden cost of annual dividend tax (taxable accounts)

Most calculators ignore annual tax drag on dividends. Even if you don't sell, S&P 500 funds (VOO, VTI) pay ~1.4% in dividends taxed at 15-20% each year. That's a 0.21-0.28% annual drag, which compounds: over 30 years, it reduces your CAGR from 10% nominal to ~9.7-9.8% — roughly $40K less on a $500K final balance.

Solution: hold dividend-paying funds in tax-advantaged accounts (Roth IRA, 401(k)) and growth-oriented funds in taxable accounts.

State tax matters too

9 states have zero capital gains tax: Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, Washington, Wyoming. If you live in California (13.3% top rate), your real after-tax outcome is much worse:

  • California (13.3% state): $746K pre-tax → ~$549K after fed+state — 26% drag
  • New York (10.9% state): $746K → ~$574K — 23% drag
  • Texas / Florida (0% state): $746K → ~$661K — 11% drag (same as federal-only)
Sources: IRS Publication 550 (Investment Income), Topic 409 (Capital Gains), Federal Income Tax Rates & Brackets. State tax data from individual state revenue departments. Last updated: 2026-06-01.
Last reviewed June 1, 2026Fact-checked against primary sourcesEditorial standards
Built from: IRS · FINRA · SEC · BLS · Federal Reserve · Freddie Mac · Methodology & sources