Life Event Planners

Multi-step guided tools for major financial transitions

View All Life Events →
About

Capital Gains Tax Planning: Strategies to Reduce Your Tax Bill in 2026

From holding period rules and tax-loss harvesting to charitable giving and 1031 exchanges, learn how to keep more of your investment gains with smart tax planning.

Short-Term vs. Long-Term Capital Gains Rates

The single most important factor in capital gains taxation is how long you hold an asset before selling. The IRS draws a hard line at one year, and crossing that threshold can cut your tax rate dramatically.

Short-Term Capital Gains (Held 1 Year or Less)

Profits on assets held for one year or less are classified as short-term capital gains and taxed at the same rates as your ordinary income. For 2026, those rates range from 10% to 37% depending on your taxable income and filing status.

2026 Short-Term Capital Gains Rates (Single Filers)
Tax Rate Taxable Income (Single)
10% $0 - $11,925
12% $11,926 - $48,475
22% $48,476 - $103,350
24% $103,351 - $197,300
32% $197,301 - $250,525
35% $250,526 - $626,350
37% Over $626,350

Source: IRS Revenue Procedure 2024-40 (2026 inflation adjustments)

Long-Term Capital Gains (Held More Than 1 Year)

Profits on assets held for more than one year receive preferential tax treatment. Long-term capital gains are taxed at 0%, 15%, or 20% depending on your income. For the complete rate tables by every filing status, see our 2026 capital gains tax brackets guide.

2026 Long-Term Capital Gains Tax Rates
Tax Rate Single Married Filing Jointly Head of Household
0% Up to $48,350 Up to $96,700 Up to $64,750
15% $48,351 - $533,400 $96,701 - $600,050 $64,751 - $566,700
20% Over $533,400 Over $600,050 Over $566,700

Source: IRS Revenue Procedure 2024-40 (2026 inflation adjustments)

The 366-day rule matters. The holding period begins the day after you acquire an asset. To qualify for long-term treatment, you must hold for at least one year and one day. Selling even one day early means your entire gain is taxed at ordinary income rates. Mark your calendar before executing any sale.

Holding Period Strategy: The Simplest Tax Cut

The difference between short-term and long-term rates is substantial. For a taxpayer in the 22% ordinary income bracket, waiting to cross the one-year threshold drops their capital gains rate to 15% - saving $3,500 on a $50,000 gain. For someone in the 37% bracket, the savings on that same gain is $8,500 or more.

When Holding Longer Makes Sense

  • Your gain is large. The bigger the gain, the more the rate difference matters. A $100,000 short-term gain at 37% costs $37,000; the same gain at 15% long-term costs $15,000 - a $22,000 difference.
  • The asset is relatively stable. If the investment is unlikely to drop significantly in the next few months, waiting for long-term treatment is typically worthwhile.
  • You are close to the one-year mark. If you have held an asset for 10 months, waiting 2-3 more months is almost always the right move unless you expect a significant price decline.

When Selling Short-Term May Be Justified

  • The asset is at risk of substantial decline. A 15-20% price drop can easily exceed the tax savings from waiting for long-term treatment.
  • You need liquidity. Meeting immediate financial needs is more important than tax optimization.
  • You have offsetting losses. If you have realized capital losses that offset the short-term gain, the higher rate becomes less relevant. Learn more in our tax-loss harvesting guide.
Model Your Holding Period Scenarios

Tax-Loss Harvesting: Offset Gains with Losses

Tax-loss harvesting is one of the most powerful tools in a capital gains tax planning strategy. It involves selling investments that are currently at a loss to offset gains you have realized or plan to realize during the same tax year.

How It Works

  1. Identify losing positions in your portfolio - investments whose current market value is below your cost basis
  2. Sell the losing investments to realize the capital loss
  3. Use the losses to offset gains dollar-for-dollar on your tax return
  4. Deduct excess losses against ordinary income, up to $3,000 per year ($1,500 if married filing separately)
  5. Carry forward remaining losses to future tax years with no expiration

Matching Rules

The IRS requires you to match gains and losses by type first:

  • Short-term losses offset short-term gains first
  • Long-term losses offset long-term gains first
  • Any remaining net losses of one type offset gains of the other type

Example: You have $20,000 in long-term gains from selling stocks and $8,000 in unrealized losses in another position. By selling the losing position before year-end, you reduce your taxable gain to $12,000. At a 15% rate, that saves you $1,200 in taxes. For a deeper dive, see our complete tax-loss harvesting strategy guide.

The Wash Sale Rule: What You Cannot Do

The wash sale rule (IRC Section 1091) is the most important constraint on tax-loss harvesting. It prevents you from claiming a tax loss if you buy a "substantially identical" security within 30 days before or after the sale - creating a 61-day window around your loss sale.

What Triggers a Wash Sale

  • Buying the same stock or fund within the 61-day window
  • Acquiring the same security in a different account (including your IRA or spouse's account)
  • Purchasing an option or contract to buy the same security
  • Receiving the same security through dividend reinvestment during the window

What Does Not Trigger a Wash Sale

  • Buying a similar but not identical investment (e.g., selling an S&P 500 ETF and buying a total stock market ETF)
  • Buying stock in a different company in the same industry
  • Waiting at least 31 days before repurchasing the same security

Net Investment Income Tax (NIIT): The 3.8% Surcharge

High-income investors face an additional layer of tax. The Net Investment Income Tax adds 3.8% to investment income - including capital gains, dividends, interest, and rental income - when your modified adjusted gross income (MAGI) exceeds certain thresholds.

NIIT Income Thresholds (Not Inflation-Adjusted)
Filing Status MAGI Threshold Maximum Effective Rate
Single $200,000 23.8% (20% + 3.8%)
Married Filing Jointly $250,000 23.8% (20% + 3.8%)
Head of Household $200,000 23.8% (20% + 3.8%)

Source: IRS, IRC Section 1411 (thresholds set by statute, not inflation-adjusted)

Because these thresholds have never been adjusted for inflation since the NIIT took effect in 2013, more taxpayers are subject to it each year. In 2026 dollars, these thresholds are significantly lower in real terms than when originally enacted.

Strategies to Manage NIIT Exposure

  • Spread gains across multiple years to keep MAGI below the threshold in each year
  • Maximize above-the-line deductions such as retirement account contributions to reduce MAGI
  • Consider contributing to tax-deferred accounts like a 401(k) or Roth IRA through a backdoor conversion to shelter investment income
  • Time the recognition of other income to avoid stacking capital gains on a high-income year

Qualified Dividends: The Same Preferential Rates

Qualified dividends receive the same favorable tax treatment as long-term capital gains - 0%, 15%, or 20% depending on your income. To qualify, dividends must meet two requirements:

  1. Paid by a U.S. corporation or qualifying foreign corporation (most major international companies traded on U.S. exchanges qualify)
  2. Held for at least 61 days during the 121-day period that begins 60 days before the ex-dividend date

Non-qualified (ordinary) dividends - including those from REITs, money market funds, and stocks held for fewer than 61 days - are taxed at your ordinary income rate, just like short-term capital gains. If you receive significant dividend income, understanding which dividends are qualified can affect how you structure your portfolio across taxable and tax-advantaged accounts.

Section 1031 Exchanges: Deferring Gains on Real Estate

A Section 1031 like-kind exchange allows real estate investors to defer capital gains tax indefinitely by reinvesting the proceeds from a property sale into another investment property of equal or greater value.

Key Rules and Deadlines

  • 45-day identification period: You must identify potential replacement properties within 45 calendar days of closing on the relinquished property
  • 180-day closing deadline: The replacement property must close within 180 calendar days
  • Equal or greater value: The replacement property must be of equal or greater value to defer the full gain
  • Qualified intermediary required: A third-party intermediary must hold the sale proceeds during the exchange period - you cannot touch the money
  • Real property only: After the Tax Cuts and Jobs Act, 1031 exchanges apply only to real property, not personal property, equipment, or other assets

Deferral, not elimination. A 1031 exchange defers the gain into the replacement property by carrying over the original cost basis. However, if you continue doing 1031 exchanges throughout your lifetime, the gain may ultimately be eliminated through a stepped-up basis at death - making this one of the most powerful long-term wealth-building strategies for real estate investors.

For tax implications specific to selling your primary residence, see our home sale exclusion (Section 121) guide.

Charitable Giving with Appreciated Assets

Donating appreciated investments to charity is one of the most tax-efficient giving strategies available. It provides a double tax benefit: you avoid capital gains tax on the appreciation and receive a charitable deduction for the full fair market value.

Direct Stock Donations

When you donate stock held for more than one year directly to a qualified 501(c)(3) charity:

  • You pay zero capital gains tax on the appreciation
  • You receive a charitable deduction for the full fair market value (limited to 30% of AGI for appreciated property)
  • The charity receives the full value since it does not pay tax on the gain

Example: $50,000 Stock with $10,000 Cost Basis

Selling Stock vs. Donating Stock Directly
Action Sell, Then Donate Cash Donate Stock Directly
Capital gain $40,000 taxable $0 (avoided)
Tax at 15% $6,000 $0
Amount donated $44,000 (after tax) $50,000
Charitable deduction $44,000 $50,000

By donating the stock directly, you save $6,000 in capital gains tax, the charity receives $6,000 more, and your charitable deduction is $6,000 larger. Everyone benefits.

Donor-Advised Funds (DAFs)

If you want to donate appreciated stock but have not chosen a charity yet, a donor-advised fund lets you make the contribution now (getting the tax deduction immediately), then distribute the funds to charities over time. Major custodians like Fidelity Charitable, Schwab Charitable, and Vanguard Charitable offer DAFs with low minimums.

Gifting Appreciated Assets to Family Members

Gifting appreciated stock or other assets to family members in lower tax brackets can be a legitimate way to reduce the family's overall tax bill. When you gift an asset, the recipient inherits your cost basis and holding period.

Why This Works

If you are in the 20% long-term capital gains bracket and gift appreciated stock to an adult child whose taxable income falls in the 0% bracket (under $48,350 single for 2026), the child can sell the stock and pay zero federal capital gains tax on the gain.

Limitations to Know

  • Annual gift tax exclusion: In 2026, you can gift up to $19,000 per recipient per year ($38,000 if married and gift-splitting) without filing a gift tax return
  • Kiddie tax: For children under 19 (or under 24 if full-time students), unearned income above $2,500 may be taxed at the parent's marginal rate, limiting this strategy for minor children
  • No stepped-up basis for gifts: Unlike inherited assets, gifted assets carry over the original cost basis. The step-up in basis applies only at death

Using Tax-Advantaged Accounts Strategically

One of the most overlooked capital gains planning strategies is using tax-advantaged retirement accounts to shelter high-turnover investments from annual taxation.

Asset Location Strategy

Asset location (which account type holds which investments) can be as important as asset allocation (how much to invest in each category). The general principle:

  • Tax-advantaged accounts (401(k), IRA, Roth IRA): Hold high-turnover, tax-inefficient investments - actively managed funds, REITs, bonds, and frequently traded positions. These accounts shelter capital gains and income from annual taxation. Explore your options with our investment calculator.
  • Taxable brokerage accounts: Hold tax-efficient, buy-and-hold investments - broad index funds, individual stocks you plan to hold long-term, and municipal bonds. These generate fewer taxable events.

Roth accounts are especially powerful for investments you expect to grow significantly. Gains inside a Roth IRA or Roth 401(k) are never taxed - not when they grow, and not when you withdraw in retirement. If you are considering a Roth conversion, see our Roth conversion calculator to model the tax implications.

Stepped-Up Basis at Death

Under current law (preserved by H.R.1), when you inherit an asset, the cost basis is "stepped up" to the fair market value on the date of the original owner's death. This means all appreciation during the decedent's lifetime is never subject to capital gains tax.

Example

A parent purchased stock for $10,000 decades ago. At the time of their death, the stock is worth $200,000. If the heir sells immediately, their cost basis is $200,000 and they owe zero capital gains tax. The $190,000 in appreciation is permanently eliminated from the tax system.

Planning Implications

  • Hold highly appreciated assets until death when possible, rather than selling during your lifetime. The stepped-up basis eliminates decades of unrealized gains.
  • Do not gift highly appreciated assets during your lifetime to heirs who might benefit from the step-up. Gifted assets carry over the original basis; only inherited assets receive the step-up.
  • Sell losing assets before death. Losses disappear at death - they do not transfer to heirs. Realize losses while alive to use them against other gains or ordinary income.

Timing Strategies: When to Sell

When you sell matters as much as what you sell. Strategic timing can shift gains into lower tax brackets or defer taxes to a future year.

Targeting the 0% Bracket

For 2026, single filers with taxable income up to $48,350 and married couples filing jointly with taxable income up to $96,700 pay 0% on long-term capital gains. This creates opportunities during:

  • Early retirement years before Social Security and RMDs begin
  • Job transitions or sabbaticals when earned income is temporarily low
  • Years with large deductions that push taxable income below the threshold

Spreading Gains Across Tax Years

If you have a large unrealized gain, consider selling in installments across multiple tax years rather than all at once. This can keep you in lower tax brackets each year and help you avoid or minimize the 3.8% NIIT.

December vs. January Sales

Selling a profitable investment in January instead of December defers the tax payment by an entire year - typically 15 months (from April of the current year to April of the next). However, weigh this against the risk of price changes and whether your income may be higher or lower next year.

For a full exploration of timing and optimization strategies, see our capital gains tax strategies guide.

Year-End Capital Gains Tax Planning Checklist

Use this checklist each year before December 31 to optimize your capital gains tax position:

  1. Review realized gains and losses year-to-date. Check your brokerage statements for gains already realized through sales, fund distributions, or rebalancing.
  2. Identify tax-loss harvesting opportunities. Look for portfolio positions currently at a loss that you could sell to offset gains. Avoid the wash sale rule by not repurchasing substantially identical securities within 30 days.
  3. Check holding periods. For any planned sales, verify whether assets qualify for long-term treatment. If you are within a few weeks or months of the one-year mark, consider waiting.
  4. Estimate your taxable income. Use your paycheck stubs, estimated tax payments, and other income sources to project your 2026 taxable income. Determine which capital gains bracket you will fall into.
  5. Evaluate NIIT exposure. If your MAGI is near $200,000 (single) or $250,000 (married), consider whether deferring some gains to next year keeps you below the threshold.
  6. Consider charitable donations of appreciated stock. If you plan to make charitable gifts, donate appreciated stock held over one year instead of cash.
  7. Maximize retirement contributions. Contributing to a 401(k) or traditional IRA reduces your taxable income, which can lower your capital gains tax bracket and potentially avoid the NIIT.
  8. Review mutual fund distribution estimates. Many funds distribute capital gains in December. Check your fund company's distribution estimates to avoid surprises.
  9. Document cost basis accurately. Ensure all purchases have accurate cost basis records, especially for assets acquired through mergers, spin-offs, or gifts.
  10. Consult a tax professional. If your situation involves large gains, multiple strategies, or complex transactions like 1031 exchanges, professional guidance can prevent costly mistakes.
Estimate Your Year-End Tax Position

Frequently Asked Questions

What is the difference between short-term and long-term capital gains?

Short-term capital gains apply to assets held for one year or less and are taxed at ordinary income rates of 10% to 37%. Long-term capital gains apply to assets held for more than one year and are taxed at preferential rates of 0%, 15%, or 20% depending on your taxable income and filing status. The holding period begins the day after you acquire the asset.

How does tax-loss harvesting work?

Tax-loss harvesting involves selling investments at a loss to offset capital gains from profitable investments. Losses offset gains dollar-for-dollar. If your total losses exceed your gains, you can deduct up to $3,000 per year ($1,500 if married filing separately) against ordinary income, and carry any remaining losses forward to future tax years indefinitely. Be aware of the wash sale rule, which disallows the loss if you buy a substantially identical security within 30 days before or after the sale.

What is the wash sale rule?

The IRS wash sale rule (Section 1091) disallows a tax loss if you purchase a substantially identical security within 30 days before or after selling the losing investment. The 61-day window covers 30 days before the sale, the sale date itself, and 30 days after. If triggered, the disallowed loss is added to the cost basis of the replacement security. You can buy a similar but not identical investment to maintain market exposure while respecting the rule.

What is the Net Investment Income Tax (NIIT)?

The Net Investment Income Tax is an additional 3.8% tax on investment income, including capital gains, that applies when your modified adjusted gross income (MAGI) exceeds $200,000 for single filers or $250,000 for married filing jointly. These thresholds are not indexed for inflation. Combined with the 20% long-term rate, the maximum effective federal rate on capital gains is 23.8%.

Can I avoid capital gains tax by donating stock to charity?

Yes. When you donate appreciated stock held for more than one year directly to a qualified charity, you avoid paying capital gains tax on the appreciation and receive a charitable deduction for the full fair market value, up to 30% of your adjusted gross income. This is generally more tax-efficient than selling the stock, paying the tax, and donating the cash proceeds.

What is a 1031 exchange?

A Section 1031 like-kind exchange allows real estate investors to defer capital gains tax by reinvesting sale proceeds into a similar investment property. The replacement property must be identified within 45 days and closed within 180 days of the sale. Personal residences and non-real-estate assets no longer qualify after the Tax Cuts and Jobs Act. A qualified intermediary must hold the funds during the exchange period.

How can I take advantage of the 0% capital gains rate?

For 2026, single filers with taxable income up to $48,350 and married couples filing jointly with taxable income up to $96,700 pay 0% on long-term capital gains. You can take advantage of this by timing asset sales during low-income years such as retirement, job transitions, or sabbaticals. Retirees living primarily on Social Security often have taxable income low enough to qualify.

Do I pay capital gains tax on inherited assets?

Inherited assets generally receive a stepped-up cost basis to the fair market value on the date of the decedent's death. This means any appreciation during the original owner's lifetime is never subject to capital gains tax. If you sell the inherited asset shortly after receiving it, you may owe little or no capital gains tax. This stepped-up basis rule was preserved under H.R.1.

Your Next Steps

  1. Calculate your capital gains tax to see exactly how much you owe on your investment gains
  2. Review your holding periods to identify any positions approaching the one-year mark
  3. Check for harvesting opportunities - scan your portfolio for unrealized losses that could offset gains
  4. Estimate your MAGI to determine whether the 3.8% NIIT applies to your situation
  5. Consider asset location - ensure tax-inefficient investments are in tax-advantaged accounts
  6. Plan charitable giving with appreciated stock rather than cash for maximum tax efficiency
  7. Consult a tax professional for personalized guidance on complex situations such as 1031 exchanges, installment sales, or Opportunity Zone investments

Know Your Tax Before You Sell

Run the numbers on any planned sale before executing the trade. See your estimated federal and state capital gains tax instantly.

Estimate Your Capital Gains Tax →

Sources