$LevyIO
InvestmentsMarch 6, 202613 min read

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

When you sell an investment for more than you paid, the profit is a capital gain and is subject to tax. The rate you pay depends heavily on how long you held the asset. Understanding the difference between short-term and long-term capital gains can save you thousands of dollars in taxes each year.

What Are Capital Gains?

A capital gain occurs when you sell a capital asset for more than its cost basis. Capital assets include stocks, bonds, mutual funds, ETFs, real estate, cryptocurrency, collectibles, and other investments. The cost basis is generally what you paid for the asset, including commissions and fees.

Conversely, if you sell an asset for less than your cost basis, you have a capital loss. Capital losses can offset capital gains and even reduce your ordinary income by up to $3,000 per year, with excess losses carried forward to future tax years.

Capital gains are only taxed when "realized," meaning when you actually sell the asset. If your stock portfolio has increased in value but you have not sold any shares, those are unrealized gains and not subject to tax. This is why the strategy of "buy and hold" can be tax-efficient: you defer taxes until you decide to sell.

Short-Term vs Long-Term Capital Gains

The critical factor in determining your capital gains tax rate is your holding period, which is the length of time between when you acquired the asset and when you sold it.

Short-term capital gains apply to assets held for one year or less. These gains are taxed as ordinary income, meaning they are added to your other income and taxed at your regular federal income tax bracket (10% to 37%). Your capital gains stack on top of your salary income — use Salario's salary calculator to see your base. If you are in the 24% tax bracket and sell a stock after 8 months for a $10,000 profit, you would owe $2,400 in federal tax on that gain.

Long-term capital gains apply to assets held for more than one year. These gains receive preferential tax treatment with significantly lower rates: 0%, 15%, or 20% depending on your taxable income. For most taxpayers, the long-term rate is 15%, which is substantially lower than their ordinary income tax rate.

This distinction creates a strong incentive to hold investments for at least one year and one day before selling. The difference between short-term and long-term rates can be dramatic. A taxpayer in the 32% bracket who holds an asset for 13 months instead of 11 months would pay 15% instead of 32% on the gain, cutting their tax nearly in half.

2026 Long-Term Capital Gains Tax Rates

Long-term capital gains are taxed at three rates based on your taxable income and filing status:

RateSingleMarried Filing JointlyHead of Household
0%Up to $48,350Up to $96,700Up to $64,750
15%$48,351 - $533,400$96,701 - $600,050$64,751 - $566,700
20%Over $533,400Over $600,050Over $566,700

The 0% rate is particularly valuable for retirees or those in lower income years. If your total taxable income including capital gains stays below the threshold, you effectively pay zero federal tax on those investment profits. This creates opportunities for strategic "gain harvesting" in low-income years.

Net Investment Income Tax (NIIT)

High-income taxpayers face an additional 3.8% Net Investment Income Tax (NIIT) on top of the regular capital gains rate. The NIIT applies to the lesser of your net investment income or the amount by which your modified adjusted gross income (MAGI) exceeds the threshold.

The MAGI thresholds for NIIT are $200,000 for single filers and $250,000 for married filing jointly. These thresholds are not adjusted for inflation. Net investment income includes capital gains, dividends, interest, rental income, and royalties.

For a single filer with a MAGI of $280,000 and $50,000 in net investment income, the NIIT applies to $50,000 (the lesser of $50,000 investment income or $80,000 excess over $200,000). The additional NIIT would be $50,000 x 3.8% = $1,900. This effectively means the highest federal rate on long-term capital gains is 23.8% (20% + 3.8%), and the highest rate on short-term gains is 40.8% (37% + 3.8%).

Special Rules for Real Estate

Real estate capital gains have unique rules that can significantly reduce or defer your tax liability. The most powerful is the primary residence exclusion under Section 121. If you have lived in your home as your primary residence for at least two of the last five years, you can exclude up to $250,000 of gain (single) or $500,000 (married filing jointly) from taxation.

For example, if you bought your home for $300,000 and sold it for $700,000, the $400,000 gain is entirely tax-free for a married couple who meets the residency requirement. This exclusion can be used repeatedly, but only once every two years.

Investment real estate does not qualify for the Section 121 exclusion but can benefit from a 1031 exchange, which allows you to defer capital gains tax by reinvesting the proceeds into a similar property. The rules are strict: you must identify a replacement property within 45 days and close within 180 days. Depreciation recapture on real estate is taxed at a maximum rate of 25%.

Tax-Loss Harvesting Strategies

Tax-loss harvesting is the practice of selling investments at a loss to offset capital gains. This strategy can reduce your current-year tax bill while maintaining your overall market exposure by reinvesting in similar (but not "substantially identical") assets.

The rules for tax-loss harvesting work as follows: first, short-term losses offset short-term gains. Then, long-term losses offset long-term gains. Any remaining net losses offset gains of the opposite type. Finally, up to $3,000 of net capital losses can offset ordinary income, with excess losses carried forward indefinitely.

Be aware of the wash sale rule: if you sell a security at a loss and repurchase the same or substantially identical security within 30 days before or after the sale, the loss is disallowed. This means you cannot sell a stock for a tax loss on December 15 and buy it back on January 5. However, you can sell an S&P 500 ETF from one provider and immediately buy an S&P 500 ETF from a different provider, as these are not considered substantially identical.

Capital Gains on Cryptocurrency

The IRS treats cryptocurrency as property, meaning the same capital gains rules apply. Selling crypto for cash, trading one cryptocurrency for another, or using crypto to purchase goods or services are all taxable events. The holding period determines whether gains are short-term or long-term.

Crypto tax tracking can be complex because each transaction creates a separate tax event. If you bought 1 Bitcoin at $30,000 and later bought another at $60,000, selling 1 Bitcoin at $70,000 creates different gains depending on which unit you sell. Using specific identification or FIFO (First In, First Out) accounting method affects your tax outcome. Specialized crypto tax software can help track cost basis across exchanges.

Starting in 2026, centralized crypto exchanges must issue Form 1099-DA to report digital asset transactions. The wash sale rule currently does not explicitly apply to cryptocurrency, though legislation may change this. This means you can currently sell crypto at a loss and immediately repurchase it for a tax benefit, unlike with stocks.

Strategies to Minimize Capital Gains Tax

Beyond tax-loss harvesting, several strategies can help reduce your capital gains tax burden:

  • Hold investments over one year to qualify for long-term rates (0%, 15%, or 20% vs ordinary rates up to 37%).
  • Use tax-advantaged accounts such as 401(k), IRA, or Roth IRA for actively traded investments. Gains inside these accounts are tax-deferred or tax-free.
  • Harvest gains in low-income years when you may fall in the 0% long-term bracket. This is especially useful in early retirement before Social Security begins.
  • Donate appreciated assets to charity instead of selling them. You get a deduction for the full market value and avoid the capital gains tax entirely.
  • Gift appreciated assets to family members in lower tax brackets. The annual gift exclusion is $19,000 per recipient for 2026.
  • Qualified Opportunity Zones: Investing capital gains in a Qualified Opportunity Fund can defer and potentially reduce capital gains taxes while the investment grows tax-free if held for 10+ years.

Frequently Asked Questions

Do I pay capital gains tax if I reinvest the profits?

Yes. In a taxable account, selling an asset triggers a taxable event regardless of whether you reinvest the proceeds. The only way to defer gains through reinvestment is through specific provisions like a 1031 exchange for real estate or investing in a Qualified Opportunity Zone.

How are inherited assets taxed for capital gains?

Inherited assets receive a "stepped-up basis" equal to their fair market value at the date of the decedent's death. If your parent bought stock for $10,000 and it was worth $100,000 when they passed, your cost basis is $100,000. If you sell it for $105,000, you only owe capital gains tax on the $5,000 gain.

Are dividends taxed the same as capital gains?

Qualified dividends are taxed at the same preferential rates as long-term capital gains (0%, 15%, or 20%). Non-qualified (ordinary) dividends are taxed as ordinary income at your regular tax bracket. Most dividends from U.S. corporations held for more than 60 days are qualified.

Can capital losses offset ordinary income?

Yes, but with limits. After offsetting capital gains, up to $3,000 of net capital losses ($1,500 if married filing separately) can offset ordinary income per year. Excess losses are carried forward to future years indefinitely. There is no limit on how much capital gains can be offset by capital losses in the same year.

Calculate Your Capital Gains Tax

Estimate your short-term and long-term capital gains tax. See the impact of holding period, NIIT, and your filing status on investment profits.

Use the Capital Gains Calculator

Explore More Tools

Related Articles