Capital gains tax rates depend on how long you held the asset and your income level

The amount of capital gains tax you owe is determined by two things: whether your gain is short-term (you held the asset one year or less) or long-term (you held it more than one year), and your total taxable income for the year. Short-term gains are taxed at your ordinary income tax rate, which ranges from 10% to 37% depending on your tax bracket. Long-term gains are taxed at lower rates: 0%, 15%, or 20%, again based on your income level.

The federal government sets these rates, but some states also tax capital gains. Your total tax bill combines both. For example, if you live in California and sell an investment property at a long-term gain, you pay the federal long-term rate plus California's state income tax on that same gain.

Key Takeaways

  • Short-term capital gains (assets held one year or less) are taxed as ordinary income at rates from 10% to 37%.
  • Long-term capital gains (assets held more than one year) are taxed at 0%, 15%, or 20% depending on your income.
  • Your tax bracket for capital gains is based on your total taxable income, not just the gain itself.
  • Some states impose their own capital gains tax on top of federal tax, ranging from 1% to over 13%.
  • The date you bought and sold an asset determines whether the gain is short-term or long-term, which can cut your tax bill significantly.

How short-term capital gains are taxed

A short-term capital gain occurs when you sell an asset you owned for one year or less. The IRS treats this gain as ordinary income and taxes it at your regular income tax rate. If you are in the 24% tax bracket, your short-term capital gain is taxed at 24%. If you are in the 12% bracket, it is taxed at 12%.

This matters because short-term gains can push you into a higher tax bracket. If you earn $50,000 in wages and realize a $30,000 short-term capital gain, your taxable income is $80,000. You may owe tax on that $30,000 at a higher rate than you would have if you had earned it as wages alone, depending on how the brackets work out.

How long-term capital gains are taxed

A long-term capital gain occurs when you sell an asset you owned for more than one year. These gains receive preferential tax treatment. The federal long-term capital gains rates are 0%, 15%, or 20%. Which rate applies depends on your taxable income and filing status.

For 2024, the 0% rate applies to single filers with taxable income up to $47,025 and married filers filing jointly up to $94,050. The 15% rate applies to income above those thresholds up to $518,900 (single) or $583,750 (married filing jointly). The 20% rate applies to income above those amounts. These income thresholds change each year, so the ranges that apply to you may differ in future years.

Because long-term rates are lower than short-term rates, holding an asset just past the one-year mark can save you significant money. A $50,000 long-term gain taxed at 15% costs $7,500 in federal tax. The same gain taxed as short-term at 24% costs $12,000.

State capital gains taxes

Twenty-one states and Washington, D.C. impose a capital gains tax or treat capital gains as ordinary income subject to state income tax. The rates and rules vary widely. Some states tax capital gains at the same rate as ordinary income. Others have a separate, lower rate.

Washington State, for example, has a 7% capital gains tax on long-term gains from the sale of certain assets, including stocks and bonds. New York taxes capital gains as ordinary income at rates up to 10.9%. California taxes them as ordinary income at rates up to 13.3%. If you live in a state with no income tax—such as Texas, Florida, or Wyoming—you owe no state capital gains tax, only the federal amount.

The state where you live when you sell the asset is what matters, not where the asset is located or where you bought it. If you move to a no-income-tax state before selling, you may avoid state tax on the gain.

How to calculate your capital gains tax

Start by finding your gain: the sale price minus what you paid for the asset (your cost basis), minus any selling costs like broker fees or commissions. If you bought stock for $10,000 and sold it for $15,000, your gain is $5,000. If you paid $500 in broker fees to sell it, your gain is $4,500.

Next, determine whether the gain is short-term or long-term by counting the days between purchase and sale. The holding period starts the day after you buy and ends on the day you sell. If you bought on January 15 and sold on January 16 of the next year, that is short-term. If you sold on January 17, it is long-term.

Then find your tax bracket based on your total taxable income for the year (wages, interest, dividends, and all other income combined). Use the IRS tax tables for your filing status to determine which long-term or short-term rate applies. Multiply your gain by that rate to find your federal tax. Add any state capital gains tax owed. The result is your total capital gains tax liability.

Special situations that affect your capital gains tax

If you sell a home you lived in, you may exclude up to $250,000 of the gain from tax (or $500,000 if you are married filing jointly), provided you owned and lived in the home for at least two of the last five years. This exclusion applies even if the gain is long-term, and it can eliminate your capital gains tax entirely on many home sales.

If you have capital losses—money you lost when you sold an asset at a price below what you paid—you can use those losses to offset capital gains. If you have a $10,000 gain and a $3,000 loss, your net gain is $7,000 and you owe tax only on that amount. If your losses exceed your gains in a year, you can deduct up to $3,000 of the excess loss against ordinary income, and carry forward any remaining loss to future years.

Inherited assets receive a "step-up in basis," meaning the cost basis resets to the asset's value on the date of death. If your parent bought stock for $5,000 and it was worth $20,000 when they died, your new cost basis is $20,000. If you sell it immediately for $20,000, you owe no capital gains tax, even though the asset had a $15,000 gain while your parent owned it.

Frequently Asked Questions

Do I owe capital gains tax if I sell an asset at a loss?

No. You owe tax only on gains. If you sell an asset for less than you paid, you have a loss. You can use that loss to reduce any capital gains you have that year, and if losses exceed gains, you can deduct up to $3,000 against other income.

What if I hold an asset for exactly one year—is it short-term or long-term?

It is short-term. Long-term means more than one year. If you bought on January 15 and sold on January 15 of the next year, that is exactly one year and is taxed as short-term. You must sell on January 16 or later to may have access to for long-term rates.

Can I reduce my capital gains tax by donating the asset to charity instead of selling it?

Yes. If you donate an appreciated asset directly to a may have access to charity, you avoid the capital gains tax entirely and can deduct the fair market value of the asset as a charitable contribution. You must itemize deductions for this to benefit you, and the asset must have been held long-term.

Do I owe capital gains tax on cryptocurrency or digital assets?

Yes. The IRS treats cryptocurrency and other digital assets as property. When you sell or exchange them, any gain is subject to capital gains tax at the same rates as stocks or real estate. Holding period and your tax bracket determine whether it is taxed as short-term or long-term.

What if I sell stock through my employer's stock purchase plan—is that taxed differently?

It depends on the plan type. Gains on shares held more than one year are long-term gains. Gains on shares held one year or less are short-term. Some employer plans offer tax advantages if you meet holding period requirements, but the basic capital gains tax rules still apply to the gain itself.