What capital gains tax is and when you owe it
Capital gains tax is a tax on the profit you make when you sell something you own — a house, stock, land, or business — for more than you paid for it. The difference between what you paid and what you sold it for is your gain, and that gain is taxable income. You owe this tax to the federal government, and sometimes to your state as well.
You do not owe capital gains tax just for owning something that goes up in value. You owe it only when you sell. If you buy a stock for $1,000 and it becomes worth $5,000 but you never sell it, you owe nothing. The moment you sell it for $5,000, you have a $4,000 gain and that becomes taxable.
Capital gains are reported on your federal tax return using Form 1040 and Schedule D. Your state tax return may also require you to report them, depending on where you live and whether your state has an income tax.
Key Takeaways
- Capital gains tax applies only to the profit you make when you sell an asset, not to the asset itself or its increase in value while you own it.
- Long-term capital gains (assets held over one year) are taxed at lower rates than short-term gains, which are taxed as ordinary income.
- Your tax rate depends on your total income for the year and your filing status, not just on the size of the gain.
- Some assets like your primary home may be exempt from capital gains tax up to a certain amount if you meet holding and ownership requirements.
- You report capital gains on Schedule D of your federal tax return, and your state may require a separate report depending on state tax law.
Long-term versus short-term capital gains rates
The tax rate you pay on a capital gain depends on how long you held the asset before selling it. Long-term capital gains are profits from assets you owned for more than one year. Short-term capital gains are profits from assets you owned for one year or less.
Short-term capital gains are taxed as ordinary income at your regular income tax rate, which can be as high as 37 percent depending on your income bracket. Long-term capital gains are taxed at preferential rates: 0 percent, 15 percent, or 20 percent, depending on your total taxable income and filing status. These lower rates apply even if your ordinary income tax bracket is higher.
For example, if you are single and your taxable income is $47,025 or less in 2024, your long-term capital gains rate is 0 percent. If your income is between $47,026 and $518,900, your rate is 15 percent. Above that, it is 20 percent. These thresholds change each year and vary by filing status.
The distinction matters significantly. Selling a stock you held for 13 months triggers the long-term rate. Selling the same stock after 11 months triggers the short-term rate, which could be double or triple the tax.
How your total income affects your capital gains tax rate
Your capital gains tax rate is not determined by the size of the gain alone. It is determined by your total taxable income for the year, including wages, interest, dividends, and the capital gain itself. This means a large gain can push you into a higher tax bracket and increase the rate you pay on the gain.
If you are single, earn $50,000 in wages, and sell a stock for a $30,000 long-term gain, your total taxable income is $80,000. That $80,000 determines your rate. The first portion of your gain may fall in the 0 percent bracket, and the remainder in the 15 percent bracket. You do not pay one rate on the entire gain.
This stacking effect means the timing of when you sell matters. Selling in a year when your income is lower may result in a lower tax rate on the gain than selling in a year when you have high income from other sources.
Capital gains on real estate and primary home exemptions
When you sell real estate, the same capital gains rules apply: you owe tax on the profit. However, there is a significant exemption for your primary residence. If you owned and lived in the home as your main home for at least two of the five years before the sale, you can exclude up to $250,000 of the gain from taxation if you are single, or $500,000 if you are married filing jointly.
This exemption applies only once every two years and only to your primary home, not to investment properties or vacation homes. If you sell a rental property or a second home, you owe capital gains tax on the full profit with no exemption.
Improvements you made to the home — a new roof, kitchen renovation, or addition — increase your cost basis, which reduces your taxable gain. Routine maintenance does not. Keep records of major improvements and their costs, as you will need them to calculate your gain accurately.
How to calculate your capital gain or loss
Your capital gain is the sale price minus your cost basis. Your cost basis is what you paid for the asset, plus any costs directly related to the purchase, such as broker fees or closing costs. It is not the current market value or what you think it is worth.
If you inherited an asset, your cost basis is typically its fair market value on the date of the person's death, not what they paid for it. This is called a step-up in basis and can significantly reduce or eliminate capital gains tax on inherited property.
If you sell at a loss — you receive less than your cost basis — you have a capital loss. You can use capital losses to offset capital gains in the same year. If your losses exceed your gains, you can deduct up to $3,000 of the net loss against ordinary income. Any remaining loss carries forward to future years.
Reporting capital gains on your tax return
You report capital gains and losses on Schedule D (Form 1040), which is part of your federal tax return. You list each transaction separately: the asset, the date acquired, the date sold, the sale price, and your cost basis. The form calculates your short-term and long-term totals and your net gain or loss.
If you received a Form 1099-B from a broker or financial institution, attach it to your return. This form reports the sale proceeds. Your cost basis may or may not be reported on the 1099-B, depending on the type of asset and the broker's records, so you may need to provide it yourself.
If you sold real estate, you may also receive a Form 1099-S. This reports the sale price but not your cost basis or gain. You still report the transaction on Schedule D with your own calculation of the gain.
State tax returns vary. Some states follow federal rules and require Schedule D information. Others have their own capital gains tax or exemptions. Check your state's tax agency website or your state tax form instructions.
Special situations: collectibles, cryptocurrency, and wash sales
Most capital assets are taxed at the rates described above, but some have different rules. Collectibles — art, antiques, coins, and similar items — are taxed at a maximum long-term rate of 28 percent, higher than the standard 20 percent. Precious metals held as collectibles also fall into this category.
Cryptocurrency is treated as property, not currency, for tax purposes. When you sell or trade it, you owe capital gains tax on the profit. Even trading one cryptocurrency for another is a taxable event. You must report the fair market value in U.S. dollars on the date of the transaction.
A wash sale occurs when you sell a security at a loss and buy the same or a substantially identical security within 30 days before or after the sale. The IRS disallows the loss deduction and adds it to your cost basis in the new purchase. This rule prevents you from claiming a loss purely for tax purposes while maintaining your investment position.
Frequently Asked Questions
Do I owe capital gains tax if I sell something for less than I paid?
No. If you sell at a loss, you have a capital loss, not a gain. You can use the loss to offset capital gains in the same year. If losses exceed gains, you can deduct up to $3,000 against ordinary income, and carry the remainder forward to future years.
What if I inherited property and then sold it?
Your cost basis is the fair market value on the date the person died, not what they originally paid. This step-up in basis often means little or no capital gains tax, even if the property has appreciated significantly since the death. Keep the death certificate and a professional appraisal to document the value.
How do I report a capital gain if I do not have a 1099 form?
You still report it on Schedule D with your own records. List the asset, dates, sale price, and cost basis. If you have documentation — a purchase receipt, brokerage statement, or closing statement — keep it with your tax records. The IRS may request it if they audit your return.
Can I avoid capital gains tax by holding an asset longer?
Holding an asset longer than one year qualifies it for long-term capital gains rates, which are lower than short-term rates. However, you cannot avoid the tax entirely by holding longer. You owe tax when you sell, regardless of how long you owned it. The only exception is if you never sell.
What happens to capital gains tax if I move to a different state?
Your federal capital gains tax does not change. However, some states have capital gains taxes and others do not. If you move from a state with a capital gains tax to one without, you owe tax only on gains from the year you moved, based on when you sold. Consult your new state's tax agency about residency rules and filing requirements.