📋 This guide is for educational purposes only and not financial or legal advice. Tax laws and rates can change, and your situation may vary. Consult a licensed tax professional for personalized guidance.

When you sell an asset for more than you paid for it, the profit is considered a capital gain. The IRS taxes these gains, but the rate you pay depends on several factors like how long you've held the asset and your income level.

Short-Term vs. Long-Term Gains

Capital gains are divided into two categories: short-term and long-term. If you sell an asset you've owned for less than a year, the profit is taxed as ordinary income. For example, if your annual income is $80,000, your short-term gains will be taxed at your income tax rate, which could be as high as 22%.

However, long-term capital gains (assets held for over a year) usually have lower tax rates. In 2026, these rates are 0%, 15%, or 20%, depending on your taxable income. For instance, if you're single and earn $40,000 annually, your long-term gains may fall into the 0% tax bracket.

Exemptions and Special Cases

Certain types of assets and transactions may qualify for tax exemptions. For example, primary residences sold for a profit often qualify for exclusions: $250,000 for single filers and $500,000 for married couples filing jointly. If you sell your home and meet the ownership and use test (living in the home for at least two of the last five years), you may not owe capital gains tax on the profit.

There are also exemptions for specific investment types. For instance, gains from the sale of qualified small business stock held for over five years may be excluded under Section 1202 of the IRS code. However, specific rules and limits apply, so check with your tax advisor.

Calculating Capital Gains Tax

The formula to calculate capital gains tax is straightforward:

Capital Gains Tax = (Selling Price - Purchase Price - Eligible Deductions) x Tax Rate

For example, if you purchased stock for $10,000 and sold it for $15,000 after two years, your gain is $5,000. Assuming you're in the 15% long-term capital gains tax bracket, you'd owe $750 in taxes.

However, if you incurred investment-related expenses, like brokerage fees, these may be deductible from your gains, reducing the taxable amount.

Strategies to Minimize Capital Gains Tax

There are ways to legally reduce your capital gains tax liability:

  1. Hold Investments Longer: By holding assets for over a year, you'll qualify for lower long-term tax rates.
  2. Use Tax-Advantaged Accounts: Investing through accounts like an IRA or 401(k) allows your investments to grow tax-deferred.
  3. Harvest Losses: Offset your gains by selling underperforming assets at a loss. Known as tax-loss harvesting, this strategy can reduce your taxable income.
  4. Gift or Donate Assets: Gifting appreciated assets to family members in lower tax brackets or donating them to charity may help lower your tax liability.

Common Mistakes to Avoid

One mistake investors often make is not keeping adequate records of purchase prices and investment-related expenses. Without them, calculating your gains becomes challenging, and you risk overpaying taxes. Use software like TurboTax or consult with a CPA to ensure accuracy.

Another misstep is missing important deadlines. For example, long-term capital gains require holding an asset for more than 12 months, not just 12 months exactly. Selling even a day too soon could trigger higher tax rates.

State Taxes on Capital Gains

Federal tax rates aren't the only consideration. Many states, including California and New York, also tax capital gains. California, for instance, taxes all capital gains as ordinary income, with rates as high as 13.3%. If you live in a state with no income tax, such as Florida or Texas, you won't owe state capital gains tax.

Final Thoughts

Managing capital gains taxes is an essential part of investing. By understanding the difference between short-term and long-term gains, taking advantage of exemptions, and using strategies like tax-loss harvesting, you can keep more of your profits.

For beginner investors, it's worth exploring this guide to learn more about smart investment strategies that could help you minimize tax liabilities down the road. And if you're saving for retirement, investing in a tax-advantaged account like a 401(k) or IRA might be worth considering.

Sources

Last reviewed: 2026-06-17 by Editorial Team

FAQ

How long do I need to hold an asset to qualify for long-term capital gains rates?

You must hold the asset for more than 12 months, meaning at least 366 days in a standard year. Sell on day 365 and the IRS taxes the profit as ordinary income, potentially at 22% or higher. One extra day can drop your rate to 0%, 15%, or 20% depending on your total taxable income for that year.

What are the long-term capital gains tax rates for 2026?

For 2026, the IRS applies three rates based on taxable income. Single filers earning up to approximately $47,025 pay 0%. Income between $47,026 and $518,900 is taxed at 15%. Anything above $518,900 is taxed at 20%. High earners may also owe an additional 3.8% Net Investment Income Tax, bringing the effective top rate to 23.8% on investment profits.

Which states charge no capital gains tax?

Eight states collect no individual income tax and therefore no state capital gains tax: Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, and Wyoming. In contrast, California taxes capital gains as ordinary income at rates up to 13.3%, the highest state rate in the country. Washington state imposes a 7% excise tax on long-term gains exceeding $262,000 as of 2026.

What is the home sale capital gains exclusion for 2026?

Single homeowners can exclude up to $250,000 of profit from a primary residence sale. Married couples filing jointly can exclude up to $500,000. To qualify, you must have owned and used the home as your main residence for at least two of the five years before the sale date. This exclusion can be used once every two years.

Does tax-loss harvesting permanently eliminate capital gains tax?

No, it defers it. Selling a losing investment to offset a gain lowers your cost basis on any replacement asset, meaning you will owe tax on the deferred amount when you eventually sell. If you repurchase the same or a substantially identical security within 30 days, the IRS wash-sale rule disallows the loss entirely. The strategy delivers the most value in high-income years when you face the 20% long-term rate or short-term gains taxed as ordinary income.