The tax rate depends on how long you held the asset and your income level
Capital gains tax is not one flat rate. The amount you owe depends on two things: whether you held the asset for more than one year (long-term) or one year or less (short-term), and your total taxable income for that year. Short-term gains are taxed as ordinary income. Long-term gains get lower rates: 0%, 15%, or 20%, depending on your income bracket.
The federal government sets these rates, but some states and cities add their own capital gains tax on top. Your total bill is the federal tax plus any state or local tax owed. This means two people in different states can owe very different amounts on the same gain.
Key Takeaways
- Short-term capital gains (assets held one year or less) are taxed at your ordinary income tax rate, which can be as high as 37% federally.
- Long-term capital gains (assets held over one year) are taxed at 0%, 15%, or 20% depending on your income, and are lower than ordinary income rates.
- Your income level determines which long-term rate applies to you, not the size of the gain itself.
- Some states and cities tax capital gains on top of the federal rate, so your total tax can vary widely by location.
- The tax is calculated when you sell or dispose of the asset, not when you buy it.
Long-term capital gains rates and income thresholds
If you held an asset for more than one year before selling it, you may have access to for long-term rates. These rates are 0%, 15%, or 20%. Which rate applies depends on your taxable income for that year, not the amount of the gain.
The income thresholds change each year. For 2024, a single filer with taxable income up to roughly $47,000 pays 0% on long-term gains. Income from $47,000 to roughly $518,000 is taxed at 15%. Income above that is taxed at 20%. Married filers have higher thresholds. These numbers shift annually based on inflation, so you will need to check the current year's thresholds when you file.
The 0% rate is often overlooked. If your total taxable income is low enough, you can sell appreciated assets and owe no federal capital gains tax at all. This applies to many retirees, people with modest income, or those who had a one-time large gain but otherwise earn little that year.
Short-term capital gains and ordinary income tax rates
If you held an asset for one year or less before selling, the gain is taxed as ordinary income. This means it is taxed at your regular income tax bracket, which ranges from 10% to 37% federally depending on your total income.
Short-term gains are added to your other income for the year. If you earn $60,000 in salary and realize a $10,000 short-term gain, your taxable income becomes $70,000, and the gain is taxed at whatever bracket $70,000 falls into. This is why short-term gains often result in a higher tax bill than long-term gains on the same dollar amount.
State and local capital gains taxes
Most states do not have a separate capital gains tax. They tax capital gains as ordinary income under their regular income tax system. A few states — including California, New York, and Washington — have enacted capital gains taxes that apply on top of federal tax.
These state taxes vary. Some apply only to long-term gains above a certain threshold (for example, Washington taxes long-term gains over $250,000 at 7%). Others apply to all gains. A handful of cities, including New York City, also tax capital gains. Your total tax bill includes federal tax plus any state or local tax owed, so location matters significantly.
How the tax is calculated when you sell
Capital gains tax is calculated on the profit, not the sale price. If you bought a stock for $5,000 and sold it for $8,000, your gain is $3,000. You owe tax only on that $3,000, not on the full $8,000.
The cost basis — what you paid for the asset — is subtracted from the sale price to find the gain. If you inherited the asset, your cost basis is usually the value on the date of death, not what the original owner paid. This is called a "step-up in basis" and can significantly reduce or eliminate the tax owed. Keep records of what you paid and when you bought the asset, because you will need this information to calculate the gain when you sell.
Gains on real estate and primary residences
If you sell a home you lived in as your primary residence, you may exclude up to $250,000 of the gain from tax (or $500,000 if you are married filing jointly). This exclusion applies if you owned and lived in the home for at least two of the five years before the sale.
This exclusion is separate from the capital gains rates above. Even if your gain would normally be taxed at 15% or 20%, you do not owe tax on the excluded portion. Gains above the exclusion amount are taxed at long-term rates if you held the home for more than one year. Investment properties and rental homes do not may have access to for this exclusion.
Losses and how they offset gains
If you sell an asset at a loss, you can use that loss to offset capital gains from other sales. If you sold one stock for a $5,000 gain and another for a $2,000 loss, you owe tax on only $3,000 of gain. This is called "netting" your gains and losses.
If your losses exceed your gains in a year, you can deduct up to $3,000 of the net loss against ordinary income. Any loss beyond that carries forward to future years. Keeping records of both gains and losses helps you minimize your tax bill across multiple transactions.
Frequently Asked Questions
Do I owe capital gains tax if I have not sold the asset yet?
No. Capital gains tax is owed only when you sell or otherwise dispose of the asset. Unrealized gains — the profit on paper while you still own it — are not taxed. You can hold an appreciated asset indefinitely without owing tax until you sell.
What if I sold an asset at a loss?
You do not owe tax on a loss. You can use the loss to offset capital gains from other sales that year. If losses exceed gains, you can deduct up to $3,000 against other income. Any remaining loss carries to the next year.
Are dividends and capital gains taxed the same way?
may have access to dividends are taxed at the same long-term capital gains rates (0%, 15%, or 20%). Non-may have access to dividends are taxed as ordinary income. The distinction depends on how long you held the stock and the type of dividend, so check your brokerage statement to see which rate applies.
How do I know my cost basis if I inherited an asset?
Inherited assets usually receive a "step-up in basis," meaning your cost basis is the asset's value on the date of the owner's death, not what they originally paid. This can eliminate or greatly reduce the capital gains tax owed when you sell. Your estate or the financial institution holding the asset should provide this valuation.
Do I report capital gains on my tax return myself, or does my broker report it?
Your broker reports sales to the IRS on Form 1099-B. You report the gains and losses on Schedule D of your tax return. If your broker's reported basis is incorrect, you can adjust it on your return. Keeping your own records of purchases and sales helps catch errors.