How Much Capital Gains Tax You'll Owe on Investments and Property Sales
What capital gains tax is and how much you owe
Capital gains tax is what you pay on the profit when you sell an investment or property for more than you paid for it. The amount you owe depends on three things: how long you held the asset, your total income for the year, and your filing status. The IRS taxes long-term gains (assets held over one year) at lower rates than short-term gains (held one year or less), which are taxed as ordinary income at your regular tax bracket.
If you sold stock, real estate, or another asset in 2024, you report the sale on Schedule D (Form 1040) and calculate your gain by subtracting what you paid (your basis) from what you received. The tax rate itself is set by law and does not change based on how much you owe — it is determined by your income bracket and how long you held the asset.
Key Takeaways
- Long-term capital gains are taxed at 0%, 15%, or 20% depending on your income and filing status; short-term gains are taxed at your ordinary income tax rate.
- You must hold an asset for more than one year (from purchase date to sale date) for the gain to may have access to as long-term.
- Your basis is what you paid for the asset plus any improvements or fees; this is subtracted from the sale price to find your taxable gain.
- You report capital gains on Schedule D and attach it to your Form 1040 when you file.
- Some assets like primary homes have special rules — you may exclude up to $250,000 (or $500,000 if married filing jointly) of gain from tax.
Long-term vs. short-term capital gains rates
Long-term capital gains receive preferential tax treatment. For 2024, the rates are 0%, 15%, or 20%, depending on your taxable income and filing status. The 0% rate applies to lower-income filers, the 15% rate to most middle-income filers, and the 20% rate to higher-income filers. These thresholds change each year and vary by filing status.
Short-term gains are taxed as ordinary income, meaning they are added to your wages, interest, and other income and taxed at whatever bracket that total puts you in. If you are in the 24% tax bracket, a short-term gain is taxed at 24%. This is why holding an asset just over one year can make a significant difference in what you owe.
The holding period is measured from the date you bought the asset to the date you sold it. If you bought stock on March 15, 2023, and sold it on March 16, 2024, it qualifies as long-term. If you sold it on March 15, 2024, it is short-term.
How to calculate your capital gain
Your capital gain is the difference between what you received from the sale and what you paid for the asset. Start with your basis, which is usually your purchase price plus any fees you paid to buy it (like a broker commission). For real estate, you can also add the cost of improvements like a new roof or addition, but not routine maintenance.
Subtract your basis from the sale price. If you bought 100 shares of stock for $50 per share ($5,000 total) and sold them for $75 per share ($7,500 total), your gain is $2,500. If you sold for less than you paid, you have a capital loss, which you can use to offset other gains or up to $3,000 of ordinary income in a single year.
Keep records of your purchase confirmation, sale confirmation, and any receipts for improvements or fees. When you file, you will enter the sale price, basis, and gain on Schedule D. If you sold multiple assets, you list each one separately and then total your long-term and short-term gains.
Special rules for home sales
If you sold your primary residence, you may be able to exclude part or all of your gain from tax. You can exclude up to $250,000 of gain if you are single, or $500,000 if you are married filing jointly. To may have access to, you must have owned the home and lived in it as your main home for at least two of the five years before the sale.
This exclusion applies only once every two years. If you sold a home and used the exclusion, you cannot use it again for another home sale until two years have passed. If your gain exceeds the exclusion amount, you report the excess on Schedule D and pay tax on it.
Investment properties, vacation homes, and rental properties do not may have access to for this exclusion. If you converted a rental property to your primary residence, the exclusion applies only to the portion of the gain that accrued after you moved in and began living there full-time.
How income level affects your capital gains rate
Your capital gains tax rate depends on your total taxable income for the year, not just the gain itself. The IRS stacks capital gains on top of your other income (wages, interest, dividends) to determine which tax bracket you fall into. If you are close to a higher bracket threshold, a large capital gain can push you into a higher rate.
For 2024, the long-term capital gains brackets are different from ordinary income brackets. A single filer with $47,025 or less in taxable income pays 0% on long-term gains. From $47,026 to $518,900, the rate is 15%. Above $518,900, it is 20%. These thresholds are adjusted each year for inflation.
If you have both long-term and short-term gains in the same year, short-term gains are taxed first at your ordinary rate, then long-term gains are stacked on top. This can affect which tax bracket your long-term gains fall into.
Reporting capital gains on your tax return
You report capital gains on Schedule D (Form 1040), which you attach to your main tax return. Part I of Schedule D is for short-term gains (assets held one year or less). Part II is for long-term gains (assets held more than one year). You list each sale separately with the date acquired, date sold, sales price, basis, and gain or loss.
At the bottom of Schedule D, you total your short-term gains and losses, then your long-term gains and losses. If you have a net gain, it carries to Form 1040. If you have a net loss, you can deduct up to $3,000 against other income in that year, and carry any excess loss forward to future years.
If you received a Form 1099-B from your broker (for stock or mutual fund sales) or Form 1099-S from a real estate transaction, attach a copy to your return. The IRS receives a copy too, so your numbers must match what the form shows, or you will receive a notice.
State and local taxes on capital gains
Federal capital gains tax is only part of what you owe. Most states also tax capital gains, usually at the same rate as ordinary income. A few states (like Florida, Texas, and Washington) do not tax capital gains at all. Others tax them at a flat rate or a rate that differs from their ordinary income brackets.
Some cities and counties also impose local taxes on capital gains. New York City, for example, taxes capital gains as part of its income tax. You will need to check your state and local rules to know the full tax bill on a sale.
If you moved to a new state after selling an asset, you may owe tax to both states. The state where you lived when you sold the asset usually claims the income. You can often claim a credit on your new state return for taxes paid to the old state, but the rules vary.
Frequently Asked Questions
Do I owe capital gains tax if I sold an asset at a loss?
No, you do not owe tax on a loss. Instead, you can use the loss to reduce your taxable gains. If your losses exceed your gains, you can deduct up to $3,000 of the net loss against wages and other income in that year. Any loss above $3,000 carries forward to future years.
What if I inherited stock or property — do I owe capital gains tax when I sell it?
Inherited assets receive a "step-up in basis," meaning your basis is the fair market value on the date of death, not what the original owner paid. If you sell shortly after inheriting, you typically owe little or no capital gains tax. You owe tax only on gains that occur after you inherit.
Can I reduce my capital gains tax by donating the asset to charity instead of selling it?
Yes. If you donate appreciated stock or property 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 on Schedule A for this to benefit you.
How do I know if my gain is long-term or short-term?
Count the days from the purchase date to the sale date. If it is more than one year, it is long-term. The IRS counts the purchase date as day zero, so if you bought on January 1, 2023, and sold on January 2, 2024, it qualifies as long-term (more than 365 days).
What happens if I sell an investment at a gain but reinvest the money right away?
You still owe capital gains tax on the original sale. Reinvesting does not defer or eliminate the tax. The tax is based on the gain when you sold, not on what you do with the proceeds afterward.
This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.