Capital Gains Tax Is a Tax on Profit When You Sell Something You Own

Capital gains tax is a tax you pay on the profit you make when you sell an asset — a house, stock, business, or other property — for more than you paid for it. The profit itself, not the full sale price, is what gets taxed. If you buy a house for $200,000 and sell it for $250,000, your capital gain is $50,000, and that $50,000 is what the tax applies to.

The tax exists at both the federal level and in most states. How much you owe depends on how long you held the asset before selling it, your total income for the year, and where you live. You report capital gains on your federal tax return (Form 1040), and your state may require a separate report as well.

Key Takeaways

  • Capital gains tax applies only to profit, not to the full amount you receive when you sell an asset.
  • Long-term capital gains (assets held over one year) are taxed at lower rates than short-term gains, which are taxed as ordinary income.
  • Federal tax rates for long-term gains are 0%, 15%, or 20%, depending on your income level; short-term rates match your regular income tax bracket.
  • Most states also tax capital gains, and rates vary widely by state.
  • You report capital gains on your tax return; you do not pay the tax when you sell the asset.

Long-Term vs. Short-Term Capital Gains

The IRS divides capital gains into two categories based on how long you owned the asset. Long-term capital gains apply when you hold an asset for more than one year before selling it. Short-term capital gains apply when you sell an asset you have owned for one year or less.

Short-term gains are taxed as ordinary income — at your regular income tax rate, which can be as high as 37% at the federal level. Long-term gains receive preferential treatment and are taxed at lower rates: 0%, 15%, or 20%, depending on your total taxable income for the year. Because of this difference, the timing of when you sell an asset can significantly affect your tax bill.

For example, if you sell stock you bought six months ago, any profit is a short-term gain and taxed at your ordinary rate. If you wait six more months and then sell, the same profit becomes a long-term gain and is taxed at the lower preferential rate.

Federal Tax Rates for Long-Term Capital Gains

Long-term capital gains are taxed at one of three federal rates: 0%, 15%, or 20%. Which rate applies depends on your filing status and your total taxable income for the year. The IRS adjusts these income thresholds each year for inflation.

For the 2024 tax year, the 0% rate applies to single filers with taxable income up to roughly $47,000 and married couples filing jointly up to roughly $94,000. The 15% rate applies to income above those thresholds up to roughly $518,000 (single) or $583,000 (married filing jointly). Income above those amounts is taxed at 20%.

These thresholds change annually, so you should check the current year's rates when you file. The key point is that long-term gains are taxed separately from your ordinary income — they do not push you into a higher tax bracket for your wages or salary.

State Capital Gains Taxes

Most states impose their own capital gains tax or treat capital gains as part of ordinary income subject to state income tax. A few states — including Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, and Wyoming — have no state income tax at all and therefore no state capital gains tax.

States that do tax capital gains vary widely in their rates and rules. Some states tax long-term and short-term gains at the same rate as ordinary income. Others offer preferential rates for long-term gains, though usually not as low as the federal rates. A few states, like California, tax long-term gains at the same rate as short-term gains, meaning there is no tax advantage to holding an asset longer.

If you live in a state with income tax, you will report your capital gains on your state return as well as your federal return. Your total tax bill includes both the federal tax and the state tax.

How to Report Capital Gains on Your Tax Return

You report capital gains on your federal tax return using Schedule D (Form 1040, Capital Gains and Losses). On this form, you list each asset you sold during the year, the date you bought it, the date you sold it, your purchase price, your sale price, and the resulting gain or loss.

The IRS uses the holding period (the time between purchase and sale) to determine whether each gain is long-term or short-term. You then transfer the totals to your main tax return (Form 1040). If you have a net capital loss — meaning your losses exceed your gains — you can deduct up to $3,000 of that loss against ordinary income in a single year, and carry forward any remaining loss to future years.

Your broker or investment company will send you a Form 1099-B (Proceeds from Broker and Barter Exchange Transactions) showing the sales you made during the year. This form helps you track what you need to report. If you sell real estate, you may also receive a Form 1099-S (Proceeds from Real Estate Transactions).

Special Rules for Home Sales

If you sell a primary residence, you may be able to exclude a portion of your capital gain from taxation. If you are single, you can exclude up to $250,000 of gain; if you are married filing jointly, you can exclude up to $500,000. To may have access to, you must have owned the home and lived in it as your primary residence for at least two of the five years before the sale.

This exclusion is one of the largest tax breaks available to homeowners. It means that if you bought a house for $300,000, lived in it for five years, and sold it for $500,000, your $200,000 gain would not be taxed at all (if you are single and meet the ownership and use requirements). If you are married filing jointly, you could exclude up to $500,000, so your gain would still not be taxed.

This rule does not apply to investment properties, vacation homes, or rental properties. Those sales are subject to capital gains tax on the full profit.

Frequently Asked Questions

Do I owe capital gains tax when I sell an asset, or do I pay it when I file my return?

You pay capital gains tax when you file your tax return, not at the time of sale. The buyer does not withhold it, and you do not send it to the IRS immediately. You report the gain on Schedule D and include it in your total tax liability for the year.

What if I sell something at a loss?

Capital losses can offset capital gains. If you have $10,000 in gains and $6,000 in losses, you report a net gain of $4,000. If losses exceed gains, you can deduct up to $3,000 against ordinary income in that year and carry forward the remainder to future years.

Does the cost of selling (like a real estate agent's commission) reduce my capital gain?

Yes. Your capital gain is calculated as the sale price minus your original purchase price minus the cost of sale. If you sell a house for $300,000 and pay a 6% commission ($18,000), your net proceeds are $282,000, and that is what you use to calculate your gain.

If I inherit an asset, do I owe capital gains tax on it?

No. Inherited assets receive a "step-up in basis," meaning their tax value is reset to what they were worth on the date of death. If you inherit a house worth $400,000 and sell it a month later for $400,000, you have no gain and owe no capital gains tax, even if the original owner bought it for $200,000.

Are dividends from stocks treated as capital gains?

No. Dividends are separate from capital gains. may have access to dividends (from U.S. companies and held for a certain period) are taxed at the same preferential rates as long-term capital gains. Ordinary dividends are taxed as ordinary income. You report dividends on a different part of your tax return than capital gains.