Capital Gains Tax for Investors: Rates, Harvesting, Planning
Capital Gains Tax for Investors: Rates, Harvesting, and Planning
Capital gains tax is the single largest tax drag on investment returns for most taxable account holders. The difference between short-term and long-term rates, the addition of the 3.8% Net Investment Income Tax, and the mechanics of tax-loss harvesting can collectively shift your after-tax returns by one to two percentage points per year. Over a 30-year investing career, that difference compounds into hundreds of thousands of dollars. This guide covers the 2026 rate structure, the NIIT surcharge, harvesting mechanics, and planning strategies that reduce your lifetime capital gains tax bill.
Data Notice: Tax figures in this article reflect projected 2026 values based on IRS inflation adjustments and provisions of the One Big Beautiful Bill Act. Figures marked with ~ are estimates. Confirm all numbers with official IRS publications before filing.
2026 Capital Gains Tax Rates
Long-Term Capital Gains (Held Over 1 Year)
Long-term capital gains receive preferential tax rates that are significantly lower than ordinary income rates. For 2026:
| Filing Status | 0% Rate | 15% Rate | 20% Rate |
|---|---|---|---|
| Single | Up to ~$48,350 | ~$48,351 - ~$533,400 | Above ~$533,400 |
| Married Filing Jointly | Up to ~$96,700 | ~$96,701 - ~$600,050 | Above ~$600,050 |
| Head of Household | Up to ~$64,750 | ~$64,751 - ~$566,700 | Above ~$566,700 |
| Married Filing Separately | Up to ~$48,350 | ~$48,351 - ~$300,025 | Above ~$300,025 |
These thresholds are based on taxable income, not AGI. Your standard deduction reduces your taxable income before applying these rates.
The 0% Rate Opportunity
The 0% long-term capital gains rate is one of the most underutilized tax benefits in the code. A married couple filing jointly with ~$96,700 or less in taxable income pays zero federal tax on their long-term capital gains.
This creates a planning opportunity: in years when your income is lower — early retirement, sabbatical, job transition, or simply a year with moderate earnings — you can strategically sell appreciated investments and pay zero tax on the gains. This is sometimes called “tax-gain harvesting” (the opposite of loss harvesting).
Short-Term Capital Gains (Held 1 Year or Less)
Short-term capital gains receive no preferential treatment. They are taxed at your ordinary income tax bracket — up to 37% for the highest earners. This is why holding period management is critical for tax-efficient investing.
| Holding Period | Tax Treatment | Maximum Rate |
|---|---|---|
| 1 year or less | Ordinary income rates | ~37% |
| More than 1 year | Preferential LTCG rates | ~20% |
| Difference at top bracket | ~17 percentage points |
The Net Investment Income Tax (NIIT)
On top of the capital gains rates above, higher-income investors face an additional ~3.8% surtax on net investment income when their modified AGI exceeds:
- Single: ~$200,000
- Married filing jointly: ~$250,000
- Married filing separately: ~$125,000
The NIIT applies to interest, dividends, capital gains, rental income, royalties, and passive activity income. It does not apply to wages, self-employment income, or distributions from retirement accounts.
For an investor in the 20% long-term capital gains bracket who also owes NIIT, the effective combined federal rate on long-term gains is ~23.8%. Add state taxes, and the total rate can exceed 30% in states like California (~37.1% combined) or New York (~31.5% combined).
NIIT Planning Strategies
Strategies to reduce or avoid the NIIT include:
- Maximize pre-tax retirement contributions — 401(k) contributions reduce AGI, potentially dropping you below the NIIT threshold
- Harvest losses to offset gains and reduce net investment income
- Time large asset sales to years when AGI is lower
- Use tax-exempt bonds — Municipal bond interest is excluded from net investment income
- Consider Roth conversions — Converting earlier reduces future Traditional IRA distributions that push you above the threshold
Tax-Loss Harvesting: Mechanics and Rules
Tax-loss harvesting is the practice of selling investments that have declined in value to realize losses, which offset capital gains and reduce your tax bill. Done consistently, this strategy can significantly improve after-tax returns.
How It Works
- Identify positions with unrealized losses in your taxable account
- Sell the position to realize the loss
- Use the loss to offset realized capital gains (short-term losses offset short-term gains first, then long-term; long-term losses offset long-term gains first, then short-term)
- If losses exceed gains, deduct up to ~$3,000 of net capital losses against ordinary income
- Carry forward any remaining unused losses indefinitely
The Wash Sale Rule
The IRS prohibits claiming a loss if you buy a “substantially identical” security within 30 days before or after the sale (the 61-day window). This applies across all your accounts — including IRAs, your spouse’s accounts, and accounts you control.
| Action | Wash Sale? |
|---|---|
| Sell Stock A, buy Stock A back 31+ days later | No — allowed |
| Sell Stock A, buy Stock A back within 30 days | Yes — loss disallowed |
| Sell S&P 500 ETF (VOO), buy different S&P 500 ETF (IVV) | Gray area — same index |
| Sell S&P 500 ETF, buy Total Market ETF (VTI) | Generally allowed — different index |
| Sell Stock A in taxable, buy Stock A in IRA within 30 days | Yes — loss permanently disallowed |
The safest approach is to replace a sold position with a similar-but-not-identical fund. Selling a large-cap value ETF and buying a different large-cap value ETF from a different provider is generally safe.
For a full walkthrough of implementing a tax-loss harvesting system, see the tax-loss harvesting strategy on iAdviser.
Harvesting Math Example
A married couple in the 24% ordinary income bracket with ~$250,000 AGI has the following realized activity for the year:
| Transaction | Amount | Type |
|---|---|---|
| Stock sale: ~$30,000 long-term gain | +~$30,000 LTCG | Gain |
| ETF loss harvest: ~$18,000 long-term loss | -~$18,000 LTCL | Loss |
| Net long-term gain | ~$12,000 |
Tax on ~$12,000 net LTCG at 15% + 3.8% NIIT = ~$2,256
Without harvesting, the tax would have been ~$5,640 on the full ~$30,000 gain. The ~$18,000 harvest saved ~$3,384 in federal tax for the year.
Holding Period Management
The 1-Year Threshold
The single most impactful capital gains planning decision is ensuring gains qualify as long-term (held more than one year). The tax difference is dramatic:
| Income Level (Single) | Short-Term Rate | Long-Term Rate | Tax on ~$50,000 Gain (STCG vs LTCG) |
|---|---|---|---|
| ~$48,000 taxable income | 22% | 0% | ~$11,000 vs ~$0 |
| ~$100,000 taxable income | 24% | 15% | ~$12,000 vs ~$7,500 |
| ~$250,000 taxable income | 35% | 15% + 3.8% NIIT | ~$17,500 vs ~$9,400 |
| ~$600,000 taxable income | 37% | 20% + 3.8% NIIT | ~$18,500 vs ~$11,900 |
Specific Identification
When selling shares, you can use specific identification to choose which lots to sell. This lets you:
- Sell the highest-cost-basis shares first to minimize gains
- Sell shares held over one year to qualify for long-term rates
- Sell loss lots while keeping gain lots
If you do not specify, most brokerages default to FIFO (first in, first out), which may not be optimal. Change your cost basis method to specific identification with your broker — it is a one-time setting.
Asset Location Strategy
Where you hold your investments matters as much as what you hold. Tax-efficient asset location means placing:
| Account Type | Best Holdings | Reason |
|---|---|---|
| Taxable brokerage | Broad index ETFs, tax-managed funds, individual stocks, municipal bonds | Low turnover = fewer taxable events, qualified dividends get preferential rates |
| Tax-deferred (Traditional IRA, 401k) | Bonds, REITs, high-turnover active funds | Interest and non-qualified dividends taxed at ordinary rates — shelter these |
| Tax-free (Roth IRA, HSA) | Highest expected growth assets | Growth is never taxed — maximize the tax-free compounding |
A well-located portfolio can add ~0.3-0.5% in annual after-tax return compared to a randomly located one, according to Vanguard research.
Charitable Giving and Capital Gains
Donating appreciated securities directly to charity (or to a donor-advised fund) allows you to:
- Deduct the full fair market value as a charitable deduction (if itemizing)
- Avoid paying capital gains tax on the appreciation entirely
For an investor holding stock with a ~$50,000 unrealized gain, donating the shares instead of selling and donating cash saves ~$9,400 at the 15% + 3.8% combined rate — while still getting the same charitable deduction.
Net Capital Loss Deduction and Carryforward
If your capital losses exceed your capital gains for the year, you can deduct up to $3,000 of net capital losses against ordinary income ($1,500 if married filing separately). Any remaining loss carries forward to future years indefinitely.
This carryforward is valuable but often forgotten. If you realized a ~$50,000 loss in a prior downturn and only used ~$3,000 per year, you may still have ~$30,000+ in carryforward losses available. Check your prior-year Schedule D and Form 1040, line 7 to find your carryforward balance.
Frequently Asked Questions
Do capital gains affect my tax bracket for ordinary income?
No. Capital gains are taxed separately from ordinary income. However, capital gains do increase your AGI, which can affect eligibility for deductions, credits, and surtaxes like the NIIT. They can also increase the portion of Social Security benefits that is taxable.
Can I harvest losses in my IRA or 401(k)?
No. Gains and losses inside retirement accounts are not taxable events. Tax-loss harvesting only works in taxable brokerage accounts. Selling at a loss in an IRA has no tax benefit.
What about cryptocurrency capital gains?
Cryptocurrency is treated as property for tax purposes. The same short-term/long-term rates apply. Each sale, exchange, or use of crypto to purchase goods is a taxable event. The wash sale rule does not currently apply to crypto (though legislation to extend it has been proposed), which means you can sell crypto at a loss and immediately repurchase the same asset.
How does the 0% capital gains bracket interact with standard deduction?
The standard deduction (~$15,350 single / ~$30,700 MFJ for 2026) reduces your taxable income before capital gains brackets apply. A single filer with $63,700 in total income ($15,350 standard deduction = ~$48,350 taxable income) would fall entirely within the 0% long-term capital gains bracket.
Should I harvest gains at 0% or harvest losses?
Both. In years when you qualify for the 0% rate, realize gains to reset your cost basis higher (tax-gain harvesting). In years when you have gains above the 0% threshold, harvest losses to offset those gains. The two strategies are complementary across different years.
Key Takeaways
- Long-term capital gains rates (0%/15%/20%) are dramatically lower than short-term rates (up to 37%) — holding period management is the single most impactful strategy
- The ~3.8% NIIT adds a surtax for investors above ~$200,000 AGI (single) / ~$250,000 (MFJ), bringing the top combined federal rate to ~23.8%
- Tax-loss harvesting can save thousands annually; the wash sale rule requires a 31-day waiting period before repurchasing substantially identical securities
- The 0% long-term capital gains bracket is available to taxpayers with taxable income below ~$48,350 (single) / ~$96,700 (MFJ)
- Asset location — placing the right investments in the right account types — adds meaningful after-tax return improvement
- Donating appreciated securities eliminates capital gains tax while preserving the full charitable deduction
Next Steps
- Implement a systematic tax-loss harvesting strategy with iAdviser
- Review your portfolio’s capital gains exposure and asset location
- Explore the HSA as a tax-free investment account
- Check whether Roth conversion strategies reduce future investment income tax
- Review high earner tax planning strategies for NIIT reduction approaches
Tax information is for educational purposes only and does not constitute tax advice. Capital gains tax rules are subject to legislative changes. Consult a licensed tax professional before making investment decisions based on tax considerations.