Understanding Capital Gains Tax for Long-Term Investors
You've done the hard work of investing consistently. You've let compound interest work its magic for decades. Then the tax bill arrives. Capital gains tax is the often-overlooked third drag on investment returns — alongside inflation and fees. We calculated the exact after-tax outcomes for a $100,000 investment at 8% over 20 years at 0%, 15%, and 30% tax rates. The difference between tax-free and taxable investing can mean tens of thousands of dollars.
How Capital Gains Tax Works on Investments
Capital gains tax applies to the profit (the 'gain') when you sell an investment, not the original principal. If you invest $100,000 and it grows to $466,096, your gain is $366,096. The tax is applied to that gain. In the US, long-term capital gains (assets held over 1 year) are taxed at 0%, 15%, or 20% depending on your income, plus a potential 3.8% Net Investment Income Tax (NIIT). Short-term gains (held under 1 year) are taxed as ordinary income — often much higher.
The 20-Year After-Tax Comparison
Using the after-tax calculation feature of our compound interest calculator, we modeled a $100,000 investment at 8% annual return over 20 years at three tax rates. At 0% tax: Final balance = $466,096. Total interest = $366,096. At 15% tax: After-tax balance = $411,181. Tax paid = $54,914. At 30% tax: After-tax balance = $356,267. Tax paid = $109,829. The jump from 15% to 30% tax costs an additional $54,915 — money that goes to the government instead of your retirement.
| Tax Rate | After-tax Balance | Tax Paid |
|---|---|---|
| 0% | $466,096 | $0 |
| 15% | $411,181 | $54,914 |
| 30% | $356,267 | $109,829 |
Tax-Efficient Investing Strategies
- Use tax-advantaged accounts: In the US, 401(k)s and Traditional IRAs defer taxes until withdrawal; Roth IRAs eliminate taxes on qualified withdrawals entirely. Maximize these before investing in taxable accounts.
- Hold investments long-term: Assets held over 1 year qualify for lower long-term capital gains rates. Frequent trading generates short-term gains taxed at higher ordinary income rates.
- Tax-loss harvesting: Sell losing investments to offset gains, reducing your net taxable gain. The IRS allows up to $3,000 of net capital losses to offset ordinary income each year.
- Consider your withdrawal order: In retirement, withdraw from taxable accounts first, then tax-deferred, then tax-free — this gives tax-advantaged accounts more time to compound.
The Impact on Monthly Contributions
For systematic investors who contribute monthly, the after-tax difference accumulates even more dramatically. Investing $500/month for 30 years at 7%: pre-tax balance = $609,986. At 15% tax on gains (gains = $429,986): after-tax = $545,488. At 30% tax: after-tax = $480,996. The difference between 15% and 30% is $64,492 — nearly 3.5 years of contributions. This is why 'tax diversification' (having investments across different tax treatments) is crucial: it gives you flexibility to manage your tax bill in retirement.
Tax Laws Change — Plan Accordingly
Tax rates and rules are not permanent. The current US long-term capital gains brackets (0%/15%/20%) were established by the Tax Cuts and Jobs Act of 2017 and are scheduled to revert to higher pre-2018 levels after 2025 unless Congress acts. Always plan using current law but stay informed about potential changes. A qualified tax professional can help you model different scenarios specific to your situation — this article provides general illustrations, not tax advice.
Key Numbers
- $100,000 lump sum, 8% return, 20 years
- Pre-tax balance: $466,096 (gain: $366,096)
- 0% tax: After-tax = $466,096
- 15% tax: After-tax = $411,181 | Tax = $54,914 (15.0% of gain)
- 30% tax: After-tax = $356,267 | Tax = $109,829 (30.0% of gain)
- Use the 'Capital Gains Tax Rate' field on top.net.im to model your own tax rate.
About the Author
WW0099
Creator of the Compound Interest Calculator. Software engineer passionate about making financial mathematics accessible to everyone.
This article is for educational purposes only and does not constitute financial advice.