Capital gains management

Capital gains tax applies when you sell an asset for more than you paid for it. The tax rate depends on how long you held the asset (short-term vs.

53 steps across 12 sections

1. Strategy 1: Tax-Loss Harvesting

  • Identify investments in your portfolio that are currently trading below your purchase price (unrealized losses)
  • Sell those positions to realize the losses
  • Use those losses to offset realized capital gains dollar-for-dollar
  • If losses exceed gains, deduct up to $3,000 against ordinary income per year ($1,500 if married filing separately)
  • Carry forward any remaining unused losses indefinitely to future tax years
  • Optionally, reinvest in a similar (but not "substantially identical") investment to maintain portfolio exposure
  • Short-term losses offset short-term gains first; long-term losses offset long-term gains first
  • Remaining net losses cross over to offset the other type
  • The $3,000 annual deduction against ordinary income applies to net capital losses after all netting
  • Losses carry forward until fully used (no expiration)

2. Strategy 3: Charitable Giving of Appreciated Stock

  • Avoid capital gains tax on the appreciation entirely
  • Claim a charitable deduction for the full fair market value (up to 30% of AGI for appreciated property; 5-year carryforward for excess)

3. Strategy 4: Opportunity Zone Investments

  • Invest capital gains into a Qualified Opportunity Fund within 180 days of the sale
  • Deferral: Tax on the original gain is deferred until the earlier of the sale of the QOZ investment or December 31, 2026 (extended under recent legislation)
  • Exclusion: If held for 10+ years, any NEW appreciation in the QOZ investment is permanently tax-free
  • OZ 2.0 rules may provide expanded benefits — consult a tax advisor for the latest

4. Strategy 5: Installment Sales

  • Sell an asset (typically real estate or a business) and receive payments over multiple years
  • Report gain proportionally as payments are received
  • Each payment consists of: return of basis (tax-free), gain (taxed), and interest (taxed as ordinary income)
  • Keeps you in lower capital gains brackets each year
  • May avoid triggering the 20% rate or NIIT
  • Useful for business sales, real estate, and large private transactions

5. Strategy 6: Hold Period Management

  • Track holding periods meticulously — the difference between short-term and long-term can be a 17% rate difference
  • Use specific identification (not FIFO) when selling partial positions to choose which lots to sell
  • Sell highest-basis shares first to minimize gains
  • Consider waiting past the 1-year mark before selling appreciated positions

6. Strategy 7: Strategic Timing of Income

  • Sell appreciated assets in years when your income is lower (sabbatical, retirement transition, gap year between jobs)
  • Bunch deductions into high-gain years to reduce taxable income below bracket thresholds
  • If near the 0% LTCG bracket threshold, consider realizing gains up to the limit tax-free ("gain harvesting")
  • Retirees in the 0% bracket can sell appreciated assets with zero federal tax on the gains

7. Strategy 8: Retirement Account Contributions

  • Maximize 401(k), IRA, and HSA contributions to reduce MAGI
  • Lower MAGI can move you into a lower LTCG bracket and potentially below NIIT thresholds
  • 2026 contribution limits: 401(k) = $24,500 ($31,500 if 50+), IRA = $7,500 ($8,500 if 50+)

8. Eligibility Requirements (The 2-of-5 Year Rule)

  • Ownership test: You owned the home for at least 2 years (730 days) during the 5-year period
  • Use test: You lived in the home as your primary residence for at least 2 years during the 5-year period
  • Frequency test: You have not excluded gain from the sale of another home in the 2-year period before this sale

9. Special Rules and Exceptions

  • Married couples ($500K): To qualify for the full $500K exclusion, at least one spouse must meet the ownership test, BOTH spouses must meet the use test, and neither spouse used the exclusion in the prior 2 years
  • Partial exclusion: If you don't meet the full requirements due to job change, health reasons, or unforeseen circumstances, you may claim a prorated exclusion
  • Rental conversion: If you converted a rental property to a primary residence, periods of nonqualified use (post-2008 rentals) may reduce the exclusion
  • Depreciation recapture: Any depreciation claimed on a home office or rental period is taxed at 25% (not excludable)
  • No limit on use: You can use this exclusion every 2 years — it is one of the most powerful tax benefits available
  • Gains above the exclusion: Taxed at applicable LTCG rates (0%, 15%, or 20% + potential NIIT)

10. What Is "Substantially Identical"?

  • Same stock = substantially identical (selling AAPL and buying AAPL)
  • Same mutual fund = substantially identical (selling Vanguard S&P 500 and buying Vanguard S&P 500)
  • Different index funds tracking the same index = gray area (selling Vanguard S&P 500 and buying Fidelity S&P 500 — the IRS has not ruled definitively, but many advisors consider this risky)
  • Different indexes = generally NOT substantially identical (selling an S&P 500 fund and buying a Total Stock Market fund is generally considered safe)
  • Options on the same stock can trigger a wash sale

11. How to Avoid Wash Sales

  • Wait 31 days before repurchasing the same security
  • Buy a similar but not substantially identical investment (e.g., sell one index fund, buy another tracking a different index)
  • Use the 30-day gap to rebalance into a slightly different allocation
  • Track across all accounts — a purchase in your IRA can trigger a wash sale on a loss in your taxable account (and the loss is permanently disallowed in this case since IRA basis adjustments have no...

12. States with No Income Tax (0% Capital Gains Tax)

  • New Hampshire (no tax on earned income; 3% on interest/dividends through 2026, phasing out)
  • Washington (but has a 7% tax on LTCG over $270,000 as of 2026)

Common Mistakes

  • Selling before the 1-year mark:
  • Ignoring the wash sale rule across accounts:
  • Not tracking cost basis:
  • Forgetting about state taxes:
  • Missing the NIIT:

Pro Tips

  • "Gain harvest" in low-income years:
  • Use specific lot identification:
  • Pair gains and losses strategically:
  • Consider the "net" LTCG bracket:
  • Bunch charitable giving with capital gains years:

Sources

Related Checklists