The federal capital gains tax is a tax on profit you make when you sell an asset for more than you paid for it
When you sell a stock, rental property, business, or other asset at a profit, the federal government taxes that gain as income. The tax rate depends on how long you held the asset and your total income for the year. Short-term gains (assets held one year or less) are taxed like regular income, using tax brackets that range from 10% to 37%. Long-term gains (assets held more than one year) have their own lower tax brackets: 0%, 15%, or 20%, depending on your income level.
The IRS treats capital gains differently from wages or salary because the profit represents an increase in the value of something you own, not payment for work. This distinction matters for your tax bill. A person earning $50,000 in wages and another earning $50,000 in long-term capital gains will owe different amounts of federal tax, even though their total income is the same.
Key Takeaways
- Long-term capital gains (held over one year) are taxed at 0%, 15%, or 20% depending on your income; short-term gains use your regular income tax rate, which can be as high as 37%.
- You only owe capital gains tax when you actually sell the asset; simply owning something that increased in value does not trigger a tax bill.
- The 0% long-term capital gains rate applies to single filers earning under $47,025 in 2024, though this threshold changes yearly.
- You must report capital gains on your federal tax return using Schedule D, and the IRS receives a matching report from your broker or financial institution.
- Losses from selling assets can offset gains, and unused losses can reduce your other income by up to $3,000 per year.
How long you hold an asset determines your tax rate
The holding period is the time between when you buy an asset and when you sell it. If you sell within one year, any profit is a short-term capital gain and is taxed at your ordinary income tax rate. If you hold for more than one year before selling, any profit is a long-term capital gain and gets the lower preferential rates.
The difference can be substantial. Suppose you buy stock for $10,000 and sell it for $15,000 nine months later, making a $5,000 gain. If you are in the 24% tax bracket, you owe $1,200 in federal tax on that gain. If you had waited three more months to hit the one-year mark, you might owe only $750 (at the 15% long-term rate) or even $0 (at the 0% rate if your income is low enough). The holding period is measured from the purchase date to the sale date, and the one-year threshold is strictly enforced.
The three long-term capital gains tax brackets for 2024
Long-term capital gains are taxed at one of three federal rates: 0%, 15%, or 20%. Which rate applies depends on your income level and filing status. These brackets are separate from the ordinary income tax brackets and are adjusted each year for inflation.
| Tax Rate | Single Filers | Married Filing Jointly | Head of Household |
|---|---|---|---|
| 0% | Up to $47,025 | Up to $94,050 | Up to $62,975 |
| 15% | $47,025 to $518,900 | $94,050 to $583,750 | $62,975 to $551,350 |
| 20% | Over $518,900 | Over $583,750 | Over $551,350 |
These thresholds are based on your taxable income for the year, which includes wages, interest, dividends, and other income sources, not just capital gains. If you are single and earn $40,000 in wages plus $10,000 in long-term capital gains, your total taxable income is $50,000. The first $47,025 of that is taxed at 0%, and the remaining $2,975 is taxed at 15%. The income limits change each year, so you should check the current year's thresholds when you file.
Short-term gains are taxed as ordinary income
When you sell an asset you have held for one year or less, the profit is a short-term capital gain. The federal government taxes this gain using the same tax brackets as your regular income — the rates that apply to wages, salary, and self-employment income. These brackets range from 10% to 37% depending on your total income and filing status.
Short-term gains can be expensive to tax because they use the higher ordinary income rates. A $5,000 short-term gain for someone in the 32% tax bracket costs $1,600 in federal tax. The same gain held for just over one year might cost only $750 at the 15% long-term rate. This is why many investors try to hold assets for at least one year before selling, especially if they expect a significant profit.
You only owe tax when you sell, not when the value increases
Owning an asset that has increased in value does not trigger a capital gains tax. You owe federal tax only when you actually sell the asset and realize the gain. If you buy a house for $300,000 and it is worth $400,000 five years later, you owe no federal capital gains tax simply by owning it. You would owe tax only if you sold it.
This is called unrealized gain — the profit exists on paper but has not been converted to cash or taxable income. You can hold unrealized gains indefinitely without paying tax. However, if you die while holding an asset, your heirs receive what is called a stepped-up basis, meaning they inherit the asset at its market value on the date of death, not at your original purchase price. This can eliminate the capital gains tax on gains that occurred during your lifetime.
How to report capital gains on your federal tax return
You report capital gains on Schedule D, which is part of your federal income tax return (Form 1040). Schedule D asks you to list each asset you sold during the year, the date you bought it, the date you sold it, your cost basis (what you paid), the sale price, and the gain or loss. You then transfer the total to your main tax return, where it is added to your other income.
Your broker, mutual fund company, or other financial institution sends you a Form 1099-B (for stocks and securities) or Form 1099-S (for real estate) showing the sale proceeds. The IRS receives a copy of this form as well, so they know you sold the asset. If your reported gain does not match the information the IRS has, you may receive a notice. You should keep records of your purchase date, purchase price, and sale date for at least three years after you file, in case the IRS asks questions.
Capital losses can reduce your tax bill
If you sell an asset for less than you paid for it, you have a capital loss. You can use capital losses to offset capital gains. If you sold stock for a $10,000 gain and another stock for a $3,000 loss in the same year, you report a net gain of $7,000 and pay 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 your other income (wages, interest, dividends, and so on). Any remaining losses carry forward to future years, where you can use them to offset future gains or income. This means a large loss in one year can reduce your tax bill for several years to come. You report losses on Schedule D just like gains, and the IRS uses them to verify your calculations.
Frequently Asked Questions
Do I owe capital gains tax on inherited assets?
No federal capital gains tax is owed on the inheritance itself. However, if you later sell the inherited asset, you may owe tax on any gain that occurs after you inherit it. Your cost basis is the asset's value on the date of death, not what the original owner paid, so gains during the original owner's lifetime are not taxed.
What if I sell my primary home?
The federal government allows you to exclude up to $250,000 of gain if you are single, or $500,000 if you are married filing jointly, as long as you owned and lived in the home for at least two of the last five years. This exclusion applies once every two years. Gains above the exclusion amount are taxed as long-term capital gains.
Do I owe capital gains tax on cryptocurrency?
Yes. The IRS treats cryptocurrency like any other asset. When you sell or trade cryptocurrency at a profit, that gain is subject to capital gains tax. If you held it for more than one year, it qualifies for long-term rates. If you held it one year or less, it is taxed as a short-term gain at ordinary income rates.
Can I deduct investment losses from my taxes?
Yes, but only up to $3,000 per year against other income. If your investment losses exceed your gains by more than $3,000, the excess carries forward to future years. You can use carried-forward losses to offset future gains or income indefinitely until they are exhausted.
What is the difference between capital gains and dividends?
Capital gains are profits from selling an asset. Dividends are payments a company makes to shareholders from its earnings. may have access to dividends (from U.S. companies and held for a set period) are taxed at the same long-term capital gains rates. Nonqualified dividends are taxed as ordinary income.