Capital gains taxes can take a significant bite out of your investment returns — up to 37% on short-term gains or 23.8% on long-term gains (including the NIIT surtax). But the tax code offers numerous legal strategies to reduce, defer, or eliminate this tax entirely.
Here are 10 strategies used by savvy investors and financial advisors in 2026, ranging from simple (hold longer) to sophisticated (Qualified Opportunity Zones).
1. Hold for Over 12 Months (Long-Term Treatment)
The simplest and most impactful strategy. Assets held for more than 12 months qualify for long-term capital gains rates of 0%, 15%, or 20% — dramatically lower than ordinary income rates of 10–37%.
Example: Selling $50,000 in stock gains after 11 months at the 24% bracket costs $12,000 in tax. Waiting one more month drops the rate to 15%, costing just $7,500 — a $4,500 savings for 30 days of patience.
2. Tax-Loss Harvesting
Sell investments that have declined to realize losses that offset your gains. Net losses up to $3,000 can also deduct against ordinary income annually, with unlimited carryforward.
- Short-term losses first offset short-term gains (highest tax benefit).
- Avoid the wash sale rule: don't repurchase a "substantially identical" security within 30 days.
- Replace sold positions with similar (but not identical) funds to maintain market exposure.
- Many brokerages and robo-advisors offer automated tax-loss harvesting year-round.
3. Primary Residence Exclusion ($250K/$500K)
When you sell your primary home, you can exclude up to $250,000 in gains ($500,000 for married couples filing jointly) from capital gains tax. Requirements: you must have owned and lived in the home for at least 2 of the last 5 years.
This is one of the largest tax breaks in the code. A couple who bought a home for $300,000 and sells for $750,000 pays zero capital gains tax on the $450,000 gain. You can use this exclusion once every two years.
4. Use Tax-Advantaged Accounts
Investments inside 401(k)s, IRAs, Roth IRAs, and HSAs grow without triggering capital gains tax. Roth accounts and HSAs offer tax-free withdrawals, meaning gains are never taxed at all.
- Roth IRA: $7,000 contribution limit ($8,000 if 50+). All growth and withdrawals are tax-free after age 59½.
- HSA: $4,300/$8,550 limit. Tax-free growth AND tax-free withdrawals for medical expenses.
- 401(k): $23,500 limit ($31,000 if 50+). Gains are tax-deferred until withdrawal.
5–7: Charitable Giving, 1031 Exchanges, and the 0% Bracket
Three more powerful strategies for specific situations:
- 5. Donate appreciated assets to charity: You get a deduction for the full market value and avoid capital gains tax entirely. Donating $10,000 of stock with a $3,000 basis saves both the capital gains tax on $7,000 AND gives you a $10,000 deduction.
- 6. 1031 exchange (real estate): Defer capital gains on investment property by reinvesting proceeds into a like-kind property within 180 days. Many investors chain 1031 exchanges until death, when the stepped-up basis eliminates the gain.
- 7. Harvest gains in the 0% bracket: Singles with taxable income under $48,350 (MFJ under $96,700) pay 0% on long-term gains. Use low-income years (retirement, career transition, sabbatical) to sell appreciated assets tax-free.
8–10: Advanced Strategies
For larger portfolios and more complex situations:
- 8. Qualified Opportunity Zone (QOZ) funds: Invest capital gains into QOZ funds to defer taxes until 2026 (or sale) and eliminate taxes on QOZ appreciation held 10+ years.
- 9. Installment sales: Spread gain recognition over multiple years by receiving payment in installments. Keeps you in lower brackets each year.
- 10. Stepped-up basis at death: Inherited assets receive a cost basis equal to the market value at date of death, permanently eliminating the decedent's unrealized gains. This makes holding highly appreciated assets until death one of the most effective — if morbid — tax strategies.
Try the Capital Gains Tax Calculator
Put this knowledge into action with our free calculator. Get instant, personalized results.
Frequently Asked Questions
What is the single most effective capital gains tax strategy?
For most investors, simply holding assets for more than 12 months is the single biggest tax saver. It changes your rate from up to 37% (short-term) to 0–20% (long-term). Combined with tax-loss harvesting and using tax-advantaged accounts, most middle-income investors can keep their effective capital gains rate at or near 0%.
How does tax-loss harvesting actually work in practice?
At year-end (or throughout the year), review your portfolio for positions that are down. Sell them to realize the loss, which offsets any gains you have realized. Then immediately buy a similar but not identical investment to maintain your market exposure. For example, sell an S&P 500 index fund at a loss and buy a total stock market fund. The $3,000 annual deduction against ordinary income is worth $660–$1,110 depending on your tax bracket.
Can I use a 1031 exchange for stocks or crypto?
No. Since 2018, 1031 exchanges are limited to real property (real estate). They cannot be used for stocks, bonds, cryptocurrency, or personal property. For investment real estate, 1031 exchanges remain one of the most powerful tax deferral tools available — many investors chain them for decades.
What is the stepped-up basis and why does it matter?
When you inherit assets, the cost basis "steps up" to the fair market value at the date of death. If your parent bought stock at $10,000 and it was worth $500,000 when they passed, your basis is $500,000. If you sell at $510,000, you owe tax on only $10,000 — not the $490,000 gain accumulated over their lifetime. This is why many wealthy families hold appreciated assets until death rather than selling.