A capital gain is the profit you make when you sell something for more than you paid for it
When you buy a stock, house, or other asset and later sell it for a higher price, the difference is a capital gain. The IRS taxes that profit. The tax rate depends on how long you held the asset before selling — if you held it for more than a year, you pay the lower long-term capital gains rate. If you held it for a year or less, you pay the higher short-term capital gains rate, which is the same as your ordinary income tax rate.
Capital gains tax is separate from income tax on wages or salary. You might owe it even if you had no job that year, as long as you sold an asset at a profit. The tax applies to real estate, stocks, bonds, cryptocurrency, collectibles, and most other property you own.
Key Takeaways
- Long-term capital gains (assets held over one year) are taxed at 0%, 15%, or 20% depending on your income, while short-term gains are taxed as ordinary income.
- You only owe capital gains tax when you actually sell the asset; simply owning something that went up in value does not trigger the tax.
- The IRS requires you to report the sale on your tax return, including the purchase price, sale price, and the date you bought and sold the asset.
- You can reduce capital gains by subtracting losses from other asset sales in the same year, a strategy called tax-loss harvesting.
Long-term versus short-term capital gains rates
The federal government taxes long-term and short-term capital gains at different rates. Long-term gains — from assets you held for more than one year — receive preferential treatment. For 2024, the long-term rates are 0%, 15%, or 20%, depending on your total taxable income. A single filer with income under $47,025 pays 0%; between $47,025 and $518,900 pays 15%; above $518,900 pays 20%. These thresholds change each year.
Short-term gains — from assets held one year or less — are taxed as ordinary income. If you are in the 22% tax bracket for wages, you pay 22% on short-term gains too. This is why holding an asset for just over one year can save you thousands in tax on a large sale.
State and local taxes may also apply. Some states tax capital gains as income; others do not. Check your state's rules, because the combined federal and state rate can be substantial.
When you owe capital gains tax
You owe capital gains tax only when you sell the asset. If you own a house that doubled in value but you never sell it, you owe nothing. The moment you sell it, the gain becomes taxable. This is why timing the sale can matter — selling in a year when your income is lower may put you in a lower tax bracket.
Inherited assets receive special treatment called step-up in basis. If someone leaves you a house worth $500,000 and you sell it shortly after for $500,000, you owe no capital gains tax, even though the original owner bought it for $200,000. The "basis" — the price used to calculate gain — steps up to the market value on the date of death. This rule does not apply to assets you receive as a gift while the person is alive.
How to report capital gains on your tax return
You report capital gains on Schedule D (Form 1040), which lists each asset you sold during the year. For each sale, you need the purchase date, purchase price, sale date, and sale price. The IRS uses this to calculate your gain or loss.
If you sold stocks or mutual funds, your broker sends you a Form 1099-B showing the sales. If you sold real estate, you typically do not receive an official form, so you must track the numbers yourself. Keep receipts and closing documents for at least three years in case the IRS asks questions.
If you sold an asset at a loss, report that too. Losses can offset gains, reducing your tax bill. If losses exceed 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.
Capital gains on real estate sales
Home sales have a special rule. If you are single and lived in the house as your primary residence for at least two of the last five years, you can exclude up to $250,000 of gain from tax. If you are married filing jointly, the exclusion is $500,000. This means many people sell their home and owe no capital gains tax at all.
The exclusion applies only once every two years, and only to your primary residence — not investment properties or vacation homes. If you rent out part of your home or use part of it for business, the exclusion shrinks by the percentage you rented or used for business.
Strategies to reduce capital gains tax
One common strategy is tax-loss harvesting: selling an investment at a loss to offset gains elsewhere. If you sold one stock for a $5,000 gain and another for a $3,000 loss, you report a net gain of $2,000 and pay tax on that smaller amount.
Timing also matters. If you are near the edge of a tax bracket, delaying a sale by a few weeks or months might move it into a lower-income year. Donating appreciated assets to charity instead of selling them can also save tax — you avoid the capital gains tax and get a charitable deduction.
Holding assets longer than one year to may have access to for long-term rates is the simplest strategy. The difference between short-term and long-term rates can be 20 percentage points or more, so the tax savings are real.
Frequently Asked Questions
Do I owe capital gains tax if I sold an asset at a loss?
No. If you sold for less than you paid, you have a capital loss, not a gain. You can use that loss to offset other gains. If losses exceed gains, you can deduct up to $3,000 against ordinary income in that year and carry forward the rest to future years.
What if I inherited stock or real estate — do I owe capital gains tax?
Not on the inheritance itself. But if you later sell the inherited asset, you may owe capital gains tax on the increase in value after you inherited it. The tax basis "steps up" to the market value on the date of death, so gains before that date are not taxed.
How do I know if I held an asset for more than one year?
Count from the purchase date to the sale date. If you bought on January 15, 2023, and sold on January 16, 2024, you held it more than one year and may have access to for long-term rates. The exact date matters — selling one day too early can cost you thousands in tax.
Can I deduct capital losses from my regular income?
Yes, but only up to $3,000 per year. If you have $10,000 in losses, you deduct $3,000 against ordinary income this year and carry forward the remaining $7,000 to future years, deducting $3,000 per year until it is used up.
Do I have to report small capital gains?
Yes. Even if you sold an asset for a small gain, report it on Schedule D. The IRS receives copies of most sales from brokers and title companies, so unreported gains can trigger an audit notice.