Capital gains tax is the silent partner in every investment decision you make. Buy a stock for $50 and sell it for $100? The government wants a cut of that $50 profit. The size of that cut depends on how long you held the investment, your income level, and the type of asset — and the difference between the best and worst tax outcomes can be enormous.
This data-driven guide breaks down exactly how capital gains taxes work, provides current rate tables for every income level, and shows you the strategies that investors use to legally minimize their tax liability.
Short-term or long-term, single or joint — our calculator handles every scenario.
Try the Capital Gains Tax Calculator →The single most important factor in your capital gains tax rate is how long you hold the investment before selling. The IRS draws a hard line at one year, and the difference in tax treatment is dramatic.
An investor in the 24% ordinary income bracket sells a stock with a $50,000 gain. If held for 11 months, the tax is $12,000 (24%). If held for 13 months, the tax is $7,500 (15%). Waiting 60 days saves $4,500 on a single trade. Multiply this across a portfolio, and the savings reach tens of thousands of dollars.
Long-term capital gains have their own set of brackets, separate from ordinary income brackets. The thresholds are based on your taxable income (after deductions).
| Tax Rate | Taxable Income |
|---|---|
| 0% | $0 – $48,350 |
| 15% | $48,351 – $533,400 |
| 20% | Over $533,400 |
| Tax Rate | Taxable Income |
|---|---|
| 0% | $0 – $96,700 |
| 15% | $96,701 – $600,050 |
| 20% | Over $600,050 |
| Tax Rate | Taxable Income |
|---|---|
| 0% | $0 – $64,750 |
| 15% | $64,751 – $566,700 |
| 20% | Over $566,700 |
Capital gains aren't just subject to the base rates. Two additional taxes can increase your effective rate significantly:
A 3.8% surtax applies to net investment income if your modified adjusted gross income (MAGI) exceeds $200,000 (single) or $250,000 (married filing jointly). This means the actual top capital gains rate for high earners is 23.8%, not 20%.
| Filing Status | NIIT Threshold | Effective Top Rate |
|---|---|---|
| Single | $200,000 MAGI | 23.8% |
| Married Filing Jointly | $250,000 MAGI | 23.8% |
| Married Filing Separately | $125,000 MAGI | 23.8% |
| Head of Household | $200,000 MAGI | 23.8% |
Not all investments are taxed the same. The type of asset you sell matters as much as how long you held it.
| Asset Type | Tax Treatment | Special Rules |
|---|---|---|
| Stocks & ETFs | Standard CG rates | Wash sale rule applies |
| Real Estate | Standard CG rates | $250K/$500K primary residence exclusion; 1031 exchange for investment property |
| Cryptocurrency | Standard CG rates | Taxed on every trade (crypto-to-crypto included); no wash sale rule currently |
| Collectibles | Max 28% | Art, coins, stamps, wine — taxed at higher rate regardless of income |
| Small Business Stock (QSBS) | 0% | Section 1202: up to $10M or 10× basis excluded if held 5+ years |
| Mutual Funds | Standard CG rates | Distributions taxed even if reinvested; check fund's annual capital gains distributions |
| Bonds | Ordinary income (interest) | Municipal bonds: typically federal tax-free; Treasury bonds: federal taxable, state tax-free |
| RSUs | Ordinary income at vest | Taxed as compensation, not capital gains (unless held after vesting, then CG applies to appreciation) |
Let's see how capital gains tax affects investors across different income levels. Each scenario assumes $100,000 in long-term capital gains realized during the year.
| Taxable Income (Excl. Gains) | + $100K Gains | CG Tax Rate | Tax on Gains | Effective Rate |
|---|---|---|---|---|
| $0 (retired) | $100,000 | 0% | $0 | 0% |
| $40,000 | $140,000 | 15% (partial) | $8,898 | 8.9% |
| $80,000 | $180,000 | 15% | $15,000 | 15% |
| $150,000 | $250,000 | 15% + 3.8% NIIT | $18,800 | 18.8% |
| $400,000 | $500,000 | 15% + 3.8% NIIT | $18,800 | 18.8% |
| $600,000 | $700,000 | 20% + 3.8% NIIT | $23,800 | 23.8% |
The data reveals a critical insight: the difference between the lowest and highest effective rate on the same $100,000 gain is $23,800 — nearly a quarter of the profit itself. This makes tax-aware investing one of the highest-ROI activities for any investor.
Tax-loss harvesting is the practice of selling losing investments to offset capital gains. It's one of the most powerful tools available to investors, yet many don't use it systematically.
You cannot claim a loss if you buy the same or "substantially identical" security within 30 days before or after the sale. This applies across all accounts you own, including IRAs and spouse's accounts. Violating this rule disallows the loss deduction — you lose the tax benefit but keep the economic loss.
The tax landscape for 2026 includes several important developments that investors should monitor:
Hold tax-inefficient investments (bonds, REITs, actively traded funds) in tax-advantaged accounts (IRA, 401k) where gains aren't taxed annually. Hold tax-efficient investments (index funds, growth stocks) in taxable accounts where you benefit from lower long-term capital gains rates.
Donating stocks that have appreciated directly to charity lets you deduct the full fair market value (up to 30% of AGI) and avoid paying capital gains tax on the appreciation. A stock bought for $10,000 now worth $50,000 donated to charity gives you a $50,000 deduction and saves the $6,000-8,000 in capital gains tax you'd owe if you sold it first.
Converting traditional IRA assets to a Roth IRA during low-income years moves future growth into a tax-free account. You pay ordinary income tax on the conversion amount, but all subsequent growth and withdrawals are completely tax-free — no capital gains tax ever.
When you inherit assets, their cost basis "steps up" to the fair market value at the date of death. If your parent bought Apple stock for $5,000 and it's worth $500,000 when you inherit it, your basis becomes $500,000. Selling immediately generates zero capital gains. This is one of the most significant tax advantages in the U.S. tax code.
Input your gains, income, and filing status. See your federal tax, NIIT, and after-tax return instantly.
Capital Gains Tax Calculator →