What Happens to Your Profit When You Sell Something You Own

Capital gains tax is a tax on the profit you make when you sell an asset — a house, stock, business, or piece of land — 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. The tax rate you pay depends on how long you held the asset and how much total income you earned that year.

You do not pay tax on the full sale price. You only pay tax on the profit. If you bought a house for $200,000 and sold it for $250,000, your capital gain is $50,000. That $50,000 is what gets taxed, not the $250,000.

Key Takeaways

  • Capital gains tax applies only to the profit you make on a sale, not the full sale price.
  • Long-term gains (assets held over one year) are taxed at lower rates than short-term gains, which are taxed as ordinary income.
  • Your total income for the year determines which tax bracket your gains fall into, so a large gain can push you into a higher rate.
  • Some assets like primary homes have exclusions that let you avoid tax on part or all of the gain under specific conditions.

The Difference Between Long-Term and Short-Term Gains

How long you owned the asset before selling it determines which tax rate applies. If you held it for more than one year, it is a long-term capital gain. If you held it for one year or less, it is a short-term capital gain.

Short-term 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 gains are taxed at preferential rates: 0 percent, 15 percent, or 20 percent, depending on your total income for the year. This means holding an asset longer usually results in a much lower tax bill on the same profit.

The one-year 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.

How Your Income Level Affects Your Tax Rate

Capital gains do not have their own separate tax brackets. Instead, they are added to your other income for the year, and the total determines your rate. If you earned $50,000 in wages and have a $30,000 long-term capital gain, your taxable income is $80,000 for the year.

For 2024, the long-term capital gains brackets are 0 percent, 15 percent, and 20 percent. The 0 percent rate applies to lower-income filers — for example, single filers with taxable income under roughly $47,000. The 15 percent rate applies to middle-income filers, and the 20 percent rate applies to higher-income filers. These income thresholds change each year.

This matters because a large gain can push you from one bracket into another. If you are near the top of the 15 percent bracket, selling an asset with a big gain might move part of that gain into the 20 percent bracket. A tax professional can help you understand where your specific gain will land.

What Counts as a Capital Asset

Most things you own are capital assets: stocks, bonds, real estate, vehicles, art, collectibles, and business interests. When you sell any of these for a profit, the gain is subject to capital gains tax.

Some assets have special rules. If you sell your primary home, you may be able to exclude up to $250,000 of the gain (or $500,000 if you are married filing jointly) if you meet ownership and use tests — generally, you must have owned and lived in the home for at least two of the last five years. Inherited assets receive a "step-up in basis," meaning the tax is calculated based on the value on the date of death, not the original purchase price, which often eliminates or greatly reduces the gain.

Ordinary income items — like inventory if you run a business, or collectibles like art and coins — may be taxed at higher rates even if held long-term. Your situation determines the treatment.

How to Calculate Your Gain

The calculation is straightforward: sale price minus purchase price equals gain. But you can also subtract certain costs you paid to buy or sell the asset.

If you bought stock and paid a $50 commission, your cost basis is the stock price plus the $50. If you sold it and paid another $50 commission, you subtract that from the sale price. Real estate sales often include closing costs, title insurance, and realtor fees — all of these reduce your gain. Keep receipts and closing documents so you can document these costs if the IRS asks.

If you inherited an asset, your cost basis is its value on the date of death, not what the original owner paid. This is why inherited assets often have little or no taxable gain when sold shortly after inheritance.

Reporting Capital Gains on Your Tax Return

You report capital gains on Schedule D (Capital Gains and Losses), which you attach to your Form 1040. You list each sale separately: the date acquired, date sold, purchase price, sale price, and gain or loss.

Your broker or investment company sends you a Form 1099-B (Proceeds from Broker and Barter Exchange Transactions) showing sales of stocks and bonds. For real estate, you may receive a Form 1099-S (Proceeds from Real Estate Transactions). These forms go to the IRS as well, so your numbers must match.

If you have losses in the same year, you can use them to offset gains. If losses exceed gains, you can deduct up to $3,000 of the net loss against ordinary income in that year. Any remaining loss carries forward to future years.

State and Local Taxes on Capital Gains

Federal capital gains tax is only part of the picture. Most states also tax capital gains as income, using rates that vary widely. Some states have no income tax at all, while others tax gains at rates matching their ordinary income brackets.

A few states — including California, New York, and Washington — have enacted or proposed additional taxes specifically on capital gains, separate from ordinary income tax. These rates and thresholds vary and change, so check your state's tax authority website for current rules if you live in or are selling property in a state with special capital gains provisions.

Frequently Asked Questions

Do I owe capital gains tax if I sell at a loss?

No. If you sell an asset for less than you paid for it, you have a capital loss, not a gain. You do not owe tax on a loss. You can use losses to offset gains from other sales in the same year, and if losses exceed gains, you can deduct up to $3,000 against other income.

What if I sell a rental property or investment real estate?

Rental property gains are taxed the same way as other long-term gains — at 0, 15, or 20 percent depending on your income. However, if you depreciated the building for tax purposes while renting it out, you may owe a 25 percent tax on the depreciation recapture portion of the gain. A tax professional should review rental property sales.

Can I avoid capital gains tax by donating the asset to charity instead of selling it?

Yes. If you donate an appreciated asset directly to a may have access to charity, you avoid the capital gains tax entirely and may also deduct the fair market value of the asset as a charitable contribution. You must own the asset long-term for this to work. Selling first and donating the proceeds does not give you the same tax benefit.

How do I report gains from cryptocurrency or digital assets?

Cryptocurrency is treated as property, not currency, for tax purposes. When you sell, trade, or exchange crypto, you have a capital gain or loss. You report it on Schedule D the same way as stock sales. If you received crypto as payment for work or services, that is ordinary income at fair market value on the date received.

What happens to capital gains tax if I move to a different state?

You owe federal capital gains tax regardless of where you live. State tax depends on where you live when you sell the asset. If you sell property in one state but live in another, you may owe tax to both states. Some states have reciprocal agreements or credits to avoid double taxation. Consult a tax professional if you are relocating or selling out-of-state property.