Capital Gains Tax Explained -- Short-Term vs Long-Term Rates

Understand how capital gains taxes work, the difference between short and long-term rates, and strategies to minimize your tax bill.

When you sell an investment for more than you paid for it, you make a profit. That profit is called a capital gain, and the IRS wants its share through capital gains tax. Understanding how capital gains taxes work can help you keep more of your investment profits and make smarter financial decisions.

What Is a Capital Gain?

A capital gain occurs whenever you sell an asset for more than its original purchase price. Common assets that trigger capital gains include:

  • Stock shares
  • Mutual funds and ETFs
  • Real estate (investment properties, vacation homes)
  • Cryptocurrency
  • Collectibles and artwork
  • Bonds and other securities

The difference between your selling price and your purchase price is your capital gain. For example, if you buy 100 shares of stock for $5,000 and sell them for $7,500, your capital gain is $2,500.

Cost basis matters here. Your cost basis is typically what you paid for the asset, plus any fees or commissions. If you bought 100 shares at $50 per share with a $50 commission, your cost basis is $5,050, not $5,000. Getting this right affects your tax bill.

Short-Term vs Long-Term Capital Gains

The IRS taxes capital gains differently depending on how long you held the asset. This distinction dramatically affects your tax rate.

Short-Term Capital Gains

Short-term capital gains apply when you sell an asset you've held for one year or less. These gains are taxed as ordinary income at your marginal tax rate.

For 2026, ordinary income tax brackets are:

  • 10% bracket: up to $11,600 (single) / $23,200 (married filing jointly)
  • 12% bracket: $11,601-$47,150 (single) / $23,201-$94,300 (MFJ)
  • 22% bracket: $47,151-$100,525 (single) / $94,301-$201,050 (MFJ)
  • 24% bracket: $100,526-$191,950 (single) / $201,051-$383,900 (MFJ)
  • 32% bracket: $191,951-$243,725 (single) / $383,901-$487,450 (MFJ)
  • 35% bracket: $243,726-$609,350 (single) / $487,451-$731,200 (MFJ)
  • 37% bracket: over $609,350 (single) / over $731,200 (MFJ)

If you're in the 24% tax bracket and realize a $10,000 short-term capital gain, you'll owe $2,400 in federal income tax on that gain alone.

Long-Term Capital Gains

Long-term capital gains apply when you've held an asset for more than one year. These receive preferential tax treatment with much lower rates:

  • 0% rate: applies to lower-income taxpayers (up to $47,025 single / $94,050 MFJ in 2026)
  • 15% rate: applies to most middle-income taxpayers
  • 20% rate: applies to high-income taxpayers (over $518,900 single / $1,037,200 MFJ in 2026)

This difference is substantial. A $10,000 long-term capital gain in the 15% bracket costs you $1,500 in federal tax, compared to $2,400 if it were short-term at the 24% bracket. That's a $900 difference on a single transaction.

The Holding Period Rule

The holding period determines whether gains are short-term or long-term. The IRS uses a simple rule: you must hold the asset for more than one year.

If you buy stock on March 15, 2025, you must hold it until at least March 16, 2026, for the gains to qualify as long-term. Selling on March 15, 2026, results in short-term treatment. This one-day difference can cost hundreds or thousands in taxes.

The holding period clock restarts if you sell and repurchase the same asset. If you sell a stock at a loss to harvest the tax loss, you cannot immediately buy the same stock back without triggering the "wash sale rule," which disallows the loss. You must wait 31 days before repurchasing.

Special Case: The Home Sale Exclusion

Real estate receives special tax treatment. If you sell your primary residence, you can exclude up to $250,000 of capital gains if you're single, or $500,000 if you're married filing jointly. You must have owned the home and lived in it as your primary residence for at least two of the five years before the sale.

Example: You buy a home for $300,000, live in it for three years, and sell it for $625,000. Your capital gain is $325,000. As a married couple, you exclude $500,000, so your taxable capital gain is $0. You owe no federal capital gains tax.

This exclusion applies once every two years. It's one of the largest tax breaks available to homeowners.

Calculating the Real Tax Impact

Capital gains tax isn't your only cost. You also need to account for state income tax (if your state has one) and the Net Investment Income Tax (NIIT).

The NIIT is a 3.8% surtax on investment income for high earners. For 2026, it applies when your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly). This 3.8% tax applies on top of the federal capital gains tax rate.

Real example: You sell stock and realize a $50,000 long-term capital gain. You're married filing jointly with AGI over $250,000, placing you in the 20% long-term capital gains bracket, plus you're subject to the 3.8% NIIT. Your state charges 5% income tax. Your total tax on this gain is:

  • Federal long-term capital gains: $50,000 x 20% = $10,000
  • Net Investment Income Tax: $50,000 x 3.8% = $1,900
  • State income tax: $50,000 x 5% = $2,500
  • Total tax: $14,400 (28.8% effective rate)

Your after-tax proceeds are $35,600 on a $50,000 gain.

Tax-Loss Harvesting

Tax-loss harvesting is a strategy to reduce your capital gains tax by intentionally selling losing investments. When you realize a capital loss, you can use it to offset capital gains dollar-for-dollar.

If you realize $30,000 in capital gains and $12,000 in capital losses during the year, your net capital gain is $18,000. You only pay tax on the $18,000.

Losses can even offset ordinary income. If your capital losses exceed your capital gains by $3,000 or more, you can use up to $3,000 to reduce your ordinary income. Remaining losses carry forward to future years.

The wash sale rule prevents abuse: if you sell a security at a loss, you cannot buy the same or substantially identical security within 30 days before or 30 days after the sale.

Step-Up in Basis

One of the largest tax benefits comes at death. When you die, your heirs receive a "step-up in basis." Instead of inheriting your original cost basis, they inherit the asset at its fair market value on the date of death.

If you bought a stock for $10,000 and it's worth $40,000 when you die, your heirs' cost basis is $40,000. If they immediately sell it, they have $0 capital gain and owe $0 in capital gains tax. The $30,000 appreciation during your lifetime escapes capital gains tax entirely.

This is why some ultra-wealthy individuals hold appreciated assets until death rather than selling them during life. The step-up in basis saves them enormous amounts in capital gains tax.

Strategies to Minimize Capital Gains Tax

1. Hold Investments Long-Term

The simplest strategy: hold investments for more than one year to qualify for the preferential long-term rate. A 15% rate beats a 24% rate every time.

2. Use Tax-Deferred Accounts

Max out 401(k)s and IRAs. These accounts shield your investment gains from capital gains tax while you hold the investments inside them. You only pay taxes when you withdraw.

3. Donate Appreciated Securities

Instead of selling appreciated stock and paying capital gains tax, donate it directly to charity. You avoid the capital gains tax entirely and get a charitable deduction for the full current value.

4. Bunch Income Into Lower Brackets

If you're near a capital gains bracket threshold, time your gains and losses to stay in a lower bracket. Realizing $20,000 in gains while you're in the 0% bracket saves 15% compared to realizing them in the 15% bracket.

5. Use Municipal Bonds for Tax-Free Income

Municipal bonds produce interest that's exempt from federal (and often state) income tax. While not capital gains, tax-free income reduces your AGI and keeps you in lower tax brackets.

Final Thoughts

Capital gains tax is a significant cost that most investors overlook until tax time arrives. By understanding the distinction between short-term and long-term rates, using tax-loss harvesting strategically, and timing gains when possible, you can substantially reduce your tax burden and keep more of your investment profits working for you.

The difference between short-term and long-term treatment alone can save tens of thousands of dollars on large investment sales. That makes holding investments for more than one year one of the simplest and most powerful tax strategies available.

Related Tools