Tax

Understanding Capital Gains Tax: Short-Term vs. Long-Term

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

9 min read

Table of Contents

What Are Capital Gains?

A capital gain is the profit you earn when you sell an asset for more than you paid for it. Capital gains apply to stocks, bonds, mutual funds, real estate, cryptocurrency, collectibles, and virtually any asset that appreciates in value. The gain is calculated as the sale price minus your cost basis, which includes the original purchase price plus certain costs like broker commissions and improvements (for real estate). For example, if you bought stock for $5,000 and sold it for $8,000, your capital gain is $3,000. Capital losses — when you sell for less than you paid — can offset capital gains, reducing your tax liability. If your losses exceed your gains, you can deduct up to $3,000 against ordinary income per year and carry forward unused losses to future years.

Short-Term vs. Long-Term Capital Gains

The tax rate on capital gains depends primarily on how long you held the asset. Short-term capital gains apply to assets held for one year or less and are taxed at your ordinary income tax rate, which can be as high as 37% for top earners. Long-term capital gains apply to assets held for more than one year and receive preferential tax rates of 0%, 15%, or 20% depending on your taxable income. For 2025, single filers pay 0% on long-term gains up to about $48,350 of taxable income, 15% up to $533,400, and 20% above that threshold. This significant tax difference creates a strong incentive to hold investments for at least one year and one day before selling. High-income taxpayers may also owe an additional 3.8% Net Investment Income Tax (NIIT) on capital gains if their modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly).

Capital Gains on Real Estate

Real estate has special capital gains rules. If you sell your primary residence and have lived in it for at least 2 of the past 5 years, you can exclude up to $250,000 of capital gains from taxes ($500,000 for married couples filing jointly). This exclusion is one of the most generous tax benefits in the code and can be used repeatedly as long as you meet the residency requirement. Investment properties do not qualify for this exclusion, but you can defer capital gains taxes using a 1031 like-kind exchange, which allows you to reinvest the proceeds into a similar property. Rental properties are also subject to depreciation recapture, taxed at a maximum rate of 25%, on the depreciation deductions you claimed during ownership. The cost basis for real estate includes the purchase price plus the cost of improvements (a new roof, renovated kitchen) but not routine maintenance or repairs.

Strategies to Minimize Capital Gains Tax

Several legal strategies can reduce your capital gains tax burden. Tax-loss harvesting involves selling losing investments to offset gains, and you can immediately reinvest in a similar (but not identical) investment to maintain your portfolio allocation. Holding investments in tax-advantaged accounts like 401(k)s, IRAs, and HSAs shelters gains from taxes entirely. Donating appreciated stock to charity lets you deduct the full market value while avoiding capital gains entirely. Timing your sales to ensure long-term treatment (holding over one year) is the simplest strategy. If you are near a capital gains rate threshold, consider spreading sales across two tax years. For inherited assets, beneficiaries receive a stepped-up cost basis to the value at the date of death, eliminating capital gains on appreciation during the decedent's lifetime — a significant estate planning benefit.

Key Takeaways

  • Short-term gains (held 1 year or less) are taxed at ordinary income rates up to 37%.
  • Long-term gains (held over 1 year) are taxed at preferential rates of 0%, 15%, or 20%.
  • Homeowners can exclude up to $250,000 ($500,000 married) of gains on a primary residence sale.
  • Tax-loss harvesting offsets gains with losses, reducing your tax bill.
  • Capital losses exceeding gains can deduct up to $3,000 annually against ordinary income.

Frequently Asked Questions

Do I pay capital gains tax if I reinvest the proceeds?
Yes, in taxable accounts you owe capital gains tax when you sell an asset at a profit, regardless of whether you reinvest. The exception is a 1031 exchange for real estate, which defers taxes when you reinvest in a like-kind property. Within retirement accounts (401(k), IRA), no tax is owed when you sell and reinvest.
How are capital gains on mutual funds taxed?
Mutual funds distribute capital gains to shareholders annually, and you owe taxes on these distributions even if you reinvest them. This is why tax-efficient index funds and ETFs, which generate fewer distributions, are preferred in taxable accounts. Holding mutual funds in tax-advantaged accounts avoids this issue.
Are capital gains taxed at the state level?
Most states tax capital gains as ordinary income. Nine states have no income tax, offering a significant advantage. A few states like California tax capital gains at rates exceeding 13%. Some states offer preferential rates for long-term gains or exclude certain amounts, so check your state's specific rules.

Get Annual Tax Rate Updates

We'll notify you when federal and state tax brackets change so you're always prepared.

No spam, ever. Unsubscribe at any time.