Investment Taxes

Capital Gains Tax Strategies: How to Minimize What You Owe

By Editorial Team — reviewed for accuracy Updated
Last reviewed:

Capital Gains Tax Strategies: How to Minimize What You Owe

Capital gains tax can consume up to ~23.8% of your investment profits at the federal level — and significantly more when state taxes are included. But the tax code provides numerous legal strategies to reduce, defer, or eliminate capital gains taxes. From basic holding period management to advanced techniques like Qualified Opportunity Zones and charitable donations of appreciated stock, each strategy has specific requirements and trade-offs. This guide covers the most effective approaches, ranked by accessibility and impact.

Data Notice: Figures, rates, and statistics cited in this article are based on the most recent available data at time of writing and may reflect projections or prior-year figures. Always verify current numbers with official sources before making financial, medical, or educational decisions.


Understanding Capital Gains Tax Rates

Before optimizing, understand the rate structure. The rate you pay depends entirely on your holding period and income level.

Short-Term Capital Gains (Held ≤ 1 Year)

Taxed at your ordinary income tax bracket rate — up to ~37% federal, plus state taxes. There is no preferential rate for short-term gains. They are simply added to your other income.

Long-Term Capital Gains (Held > 1 Year)

Taxable Income (Single)Taxable Income (MFJ)LTCG Rate
Up to ~$47,025Up to ~$94,0500%
~$47,026 – ~$518,900~$94,051 – ~$583,75015%
Over ~$518,900Over ~$583,75020%

Net Investment Income Tax (NIIT)

An additional 3.8% surtax applies to the lesser of your net investment income or the excess of your modified AGI over $200,000 (single) / $250,000 (joint). This brings the maximum effective federal rate on long-term gains to 23.8%.

Collectibles

Long-term gains on collectibles (art, antiques, coins, NFTs) are taxed at a maximum rate of 28% (plus 3.8% NIIT = 31.8%).


Strategy 1: Hold for More Than One Year

The simplest and most impactful strategy. Converting a short-term gain to a long-term gain reduces your rate from up to ~37% to a maximum of ~20% (plus NIIT).

Tax savings example:

Scenario$50,000 GainTax
Short-term (32% bracket)$50,000~$16,000
Long-term (15% rate)$50,000~$7,500
Savings~$8,500

If you are considering selling an appreciated asset and have held it for 10 or 11 months, waiting a few more weeks to cross the 1-year threshold can save thousands. Report long-term gains on Schedule D at the preferential rate.


Strategy 2: Tax-Loss Harvesting

Realize losses to offset gains. Net capital losses can also offset up to $3,000 of ordinary income annually, with unlimited carryforward.

How to execute:

  1. Identify positions with unrealized losses
  2. Sell to realize the loss
  3. Reinvest in a similar (but not “substantially identical”) investment to maintain exposure
  4. Use the losses to offset gains on Form 8949

Watch for: The wash sale rule, which disallows losses if you repurchase the same or substantially identical security within 30 days.

For a detailed walkthrough, see our tax-loss harvesting guide.


Strategy 3: Use the 0% Rate Bracket

If your taxable income is below the 0% threshold (~$47,025 single / ~$94,050 MFJ for 2025), long-term capital gains are completely tax-free at the federal level.

Who benefits:

  • Retirees with modest income from Social Security and small pensions
  • Individuals in gap years (between jobs, sabbaticals, early retirement)
  • Married couples where one spouse does not work
  • Students and young adults with low income

Strategy: In low-income years, intentionally realize long-term gains to “fill up” the 0% bracket. This resets your cost basis higher, reducing future taxable gains — essentially a free basis step-up.

Example: A married couple retiring early has ~$60,000 of taxable income from other sources. They can realize up to ~$34,050 of long-term capital gains at the 0% rate ($94,050 - $60,000 = $34,050 of room). They sell appreciated stock, pay $0 in capital gains tax, and their new cost basis is the current market price.


Strategy 4: Donate Appreciated Assets to Charity

If you donate appreciated stock, crypto, or other property held more than one year to a qualified charity, you:

  1. Avoid capital gains tax on the appreciation — entirely
  2. Deduct the full fair market value as a charitable contribution (subject to AGI limits — generally 30% of AGI for appreciated capital gain property)

Example:

ScenarioSell and Donate CashDonate Stock Directly
Stock FMV$10,000$10,000
Cost basis$2,000$2,000
Capital gains tax (15%)$1,200$0
Cash available to donate$8,800$10,000
Charitable deduction$8,800$10,000

Donating appreciated stock is strictly better than selling and donating cash. You give more, deduct more, and pay no capital gains tax. This works with stocks, mutual funds, ETFs, crypto, and real estate.

For a comprehensive list of available deductions, see our tax deductions guide.


Strategy 5: Step-Up in Basis at Death

When you die, your heirs receive a stepped-up basis in inherited assets — the cost basis resets to fair market value at the date of death. All unrealized gains accumulated during your lifetime are eliminated permanently for income tax purposes.

Implications:

  • Never sell highly appreciated assets you intend to leave to heirs if the primary goal is to avoid gains tax
  • The step-up applies to stocks, real estate, crypto, and nearly all capital assets
  • Combined with 1031 exchanges for real estate, you can defer gains indefinitely during your lifetime and eliminate them at death

Example: You bought stock for $50,000 and it is worth $500,000 at death. Your heirs inherit with a $500,000 basis. If they sell for $500,000, they owe $0 in capital gains tax. The $450,000 gain is never taxed.

Note: The One Big Beautiful Bill has not eliminated the step-up in basis. Some prior proposals attempted to modify or eliminate this provision, but it remains in effect.


Strategy 6: Qualified Opportunity Zones (QOZ)

Qualified Opportunity Zones allow you to defer and potentially reduce capital gains by investing in designated economically distressed communities.

How It Works

  1. You sell an asset and realize a capital gain
  2. Within 180 days, you invest the gain amount into a Qualified Opportunity Fund (QOF)
  3. You defer the original gain until the earlier of: the date you sell the QOF investment, or December 31, 2026 (current sunset date for the deferral)
  4. If you hold the QOF investment for 10+ years, any appreciation in the QOF investment is permanently excluded from tax

Key Dates and Limitations

BenefitRequirement
Defer original gainInvest within 180 days of realization
Permanent exclusion of NEW gainsHold QOF investment 10+ years
Deferral sunsetDecember 31, 2026 (original gain becomes taxable)

The deferral sunset means the original gain you deferred will be recognized on December 31, 2026, regardless of whether you sell the QOF investment. However, the 10-year exclusion on new appreciation remains valuable for long-term investors.


Strategy 7: 1031 Exchanges (Real Estate)

For real estate investors, 1031 exchanges allow you to sell an investment property and defer all capital gains and depreciation recapture by reinvesting in like-kind property.

Key benefits:

  • No limit on the number of exchanges (you can exchange indefinitely)
  • Combined with step-up in basis at death, gains can be permanently eliminated
  • Allows portfolio repositioning (swap a single-family rental for a commercial property) without tax friction

Requirements: Like-kind real property, qualified intermediary, 45-day identification and 180-day closing deadlines. See our complete 1031 exchange guide for details.


Strategy 8: Tax-Advantaged Accounts

Invest through accounts that shield gains from current taxation:

Account TypeTax Treatment
Traditional IRA/401(k)Gains not taxed until withdrawal (taxed as ordinary income)
Roth IRA/Roth 401(k)Gains never taxed (qualified withdrawals are tax-free)
HSAGains never taxed (for qualified medical expenses) — see Form 8889 guide
529 PlanGains tax-free for qualified education expenses

Strategy: Keep your most tax-inefficient investments (frequent trading, high dividends, short-term gains) inside tax-advantaged accounts. Keep tax-efficient investments (buy-and-hold index funds, qualified dividend stocks) in taxable accounts.


Strategy 9: Installment Sales

If you sell a property or business and carry the note (seller financing), you can use the installment method to spread the gain over the years you receive payments.

Benefits:

  • Pay capital gains tax only as you receive cash
  • Stay in lower tax brackets by spreading income over multiple years
  • Reduces exposure to the NIIT by keeping income below the threshold in each year

Report installment sales on Form 6252.


Strategy 10: Invest in Small Business Stock (QSBS)

Under IRC Section 1202, gains from the sale of Qualified Small Business Stock held for more than 5 years may be excluded from tax:

  • Stock issued after September 27, 2010: 100% exclusion (up to the greater of $10 million or 10x your basis)
  • The company must be a C corporation with gross assets under $50 million at the time the stock was issued
  • You must have acquired the stock at original issuance (not on the secondary market)

This exclusion can be extraordinarily valuable for founders, early employees, and angel investors in qualifying startups.


Combining Strategies

The most effective tax planning combines multiple strategies:

Example — High-income investor with diversified portfolio:

  1. Hold core positions >1 year for long-term rates
  2. Harvest losses annually to offset realized gains
  3. Donate most-appreciated positions to charity (deduct FMV, avoid gains)
  4. Fill the 0% bracket with strategic gain realization during sabbatical year
  5. Use 1031 exchanges for real estate portfolio repositioning
  6. Hold remaining positions until death for step-up basis

Over a 30-year investing career, this combination can save hundreds of thousands or millions of dollars in capital gains taxes. Review the interplay of these strategies with your overall filing position — check your IRS online account for a current snapshot of your tax situation.


Strategies That Do NOT Work

”Strategy”Why It Fails
Gifting to family in lower bracketsKiddie tax applies to unearned income for children under 19 (or 24 if student). Gifts to adults work but trigger gift tax filing.
Selling in December, rebuying in JanuaryWash sale rule applies to repurchases within 30 days
Moving to a no-income-tax state just before sellingMost states have “clawback” rules; capital gains may be sourced to the state where the gain was generated, not where you live when you sell
Declaring losses on personal-use propertyLosses on personal assets (your car, furniture, personal residence) are NOT deductible

Frequently Asked Questions

Can I offset short-term gains with long-term losses?

Yes, but the netting order matters. Short-term gains and losses are netted first within their category. Long-term gains and losses are netted first within theirs. If one category has a net gain and the other has a net loss, they cross-net. The result determines whether your overall gain is short-term or long-term for rate purposes.

Is there a way to avoid capital gains tax on my home sale?

Yes — the Section 121 exclusion allows you to exclude up to $250,000 ($500,000 if married filing jointly) of gain on the sale of your primary residence, provided you lived in the home for at least 2 of the last 5 years. This is one of the most generous exclusions in the tax code. Check our standard deduction guide for other common deductions.

Do capital gains affect my Medicare premiums?

Yes. Capital gains are included in your modified adjusted gross income (MAGI), which determines your Medicare Part B and Part D premium surcharges (IRMAA). A large capital gains event can push you into a higher premium bracket for 2 years. Planning large gains over multiple years can reduce the IRMAA impact.

How do state taxes affect capital gains?

Most states tax capital gains as ordinary income. A few states (like New Hampshire) only tax interest and dividends. States with no income tax (Florida, Texas, Nevada, Washington, etc.) impose no state capital gains tax. California taxes capital gains at the highest rate in the nation (up to ~13.3%). State taxes should be a major factor in your gain-timing decisions. Be sure to check your tax filing deadlines for both federal and state obligations.

Are there special rules for cryptocurrency capital gains?

Crypto capital gains follow the same rules as other property — report on Form 8949 and Schedule D. However, many NFTs may be taxed as collectibles at a 28% rate. The wash sale rule now applies to crypto. See our cryptocurrency tax guide for complete details.


Key Takeaways

  • The single most effective strategy is holding investments for more than one year to access the ~0/15/20% long-term rates
  • Tax-loss harvesting offsets gains and up to $3,000 of ordinary income, with unlimited carryforward
  • The 0% rate bracket is free money — fill it with strategic gain realization in low-income years
  • Donating appreciated assets to charity avoids capital gains AND generates a deduction
  • The step-up in basis at death permanently eliminates unrealized gains — never sell highly appreciated assets you plan to leave to heirs
  • 1031 exchanges and Qualified Opportunity Zones provide powerful deferral for real estate and concentrated gains
  • Combine strategies for maximum impact — no single approach is as powerful as a coordinated plan

Tax information is for educational purposes only and does not constitute tax advice. Consult a licensed tax professional or financial advisor for guidance specific to your situation.