Last updated: November 4, 2026 · Applies to the 2026 tax year (returns filed in 2027)
A stock that has gone up five or ten times is a great problem to have, until you sell and see the tax bill. A large gain can push you into the 20% rate, trigger the 3.8% net investment income tax and add state tax on top. The good news: there are several legal ways to cut, spread or even eliminate that tax. Here are the main ones and how much they can save.
Key takeaways
- Hold at least a year and a day: short-term gains are taxed at up to 37%, long-term at 0%, 15% or 20%.
- Splitting a sale across two tax years can keep more of the gain in lower brackets.
- Harvested losses from other investments offset the gain dollar for dollar.
- Donating appreciated shares to charity avoids the gain entirely on those shares.
- Holding until death gives your heirs a step-up in basis, so the gain is never taxed.
The strategies compared
| Strategy | How it helps | Best for |
|---|---|---|
| Sell after one year | Long-term rates instead of ordinary rates | Anyone close to the one-year mark |
| Split across tax years | Spreads the gain over lower brackets | Sales near year-end |
| Harvest losses | Offsets gains elsewhere | Investors with losing positions |
| Sell high-basis lots first | Smaller gain per share sold | Shares bought at different times |
| Sell in a low-income year | 0% or 15% instead of 20% plus NIIT | Early retirees, sabbaticals |
| Donate shares | No gain tax on donated shares, plus a deduction | Charitable givers |
| Gift to family in lower brackets | Their rate applies, possibly 0% | Adult children not subject to the kiddie tax |
| Exchange fund | Swap one stock for a diversified pool, tax deferred | Accredited investors with large positions |
| Hold until death | Step-up in basis erases the gain | Older investors who don’t need the money |
| Qualified small business stock | Up to 100% of the gain excluded | Founders and early investors in qualifying C corporations |
Worked example
Dan, single, earns $150,000 and holds $500,000 of one stock that cost him $100,000 years ago: a $400,000 long-term gain.
| Approach | Federal tax |
|---|---|
| Sell everything in 2026 | $60,000 (15%) + $13,300 NIIT = $73,300 |
| Donate $50,000 of shares ($40,000 of gain), harvest $30,000 of losses, sell the rest half in 2026 and half in 2027 | 2 × ($24,750 + $4,370 NIIT) = $58,240 |
The combination saves about $15,000 before counting the charitable deduction. Dan also avoids the 20% rate in both years: his taxable income stays below the 2026 threshold of $545,500 (single). See net investment income tax and tax-loss harvesting.
Reducing risk without selling
- Stop adding to the position and direct new money elsewhere.
- Protective puts or collars limit losses, but can trigger constructive sale or straddle rules if they eliminate almost all risk.
- Exchange funds diversify without a sale, but usually require a seven-year hold and a high net worth.
Don’t forget state tax
Most states tax capital gains as ordinary income, at up to about 13%. Selling after a move to a state with no income tax can save a lot, but you must really change your residency. See moving to another state to save on capital gains and state capital gains taxes.
Frequently asked questions
Should I let taxes stop me from diversifying?
A 15% to 24% tax is certain; a 50% fall in a single stock is possible. Many advisers suggest selling gradually rather than holding a concentrated position just to avoid tax.
Can I donate to a donor-advised fund instead of a charity?
Yes. You get the deduction in the year you donate the shares, and you can grant the money to charities over time.
Sources
- IRS Topic No. 409: Capital gains and losses
- IRS Publication 526: Charitable contributions
- IRS: Net investment income tax
- IRS Publication 550: Investment income and expenses
This article is for educational purposes only and is not tax, legal or investment advice. Tax rules depend on your individual situation; consult a qualified tax professional before filing.