What You Actually Owe When You Sell an Asset

Capital gains tax is the tax on profit you make when you sell something you own — a house, stock, rental property, or business. You do not pay tax on the full sale price. You pay tax only on the gain, which is the difference between what you paid for it and what you sold it for. If you bought a stock for $1,000 and sold it for $1,500, your gain is $500, and that $500 is what gets taxed.

The amount of tax you owe depends on three things: how much you gained, how long you held the asset, and your income level. The IRS taxes long-term gains (assets held over one year) at lower rates than short-term gains (assets held one year or less). Your tax bracket also matters — higher earners pay higher rates on long-term gains.

Key Takeaways

  • Your taxable gain is the sale price minus what you originally paid, minus any costs of selling like broker fees or closing costs.
  • Long-term gains (held over one year) are taxed at 0%, 15%, or 20% depending on your income; short-term gains are taxed as ordinary income at your regular tax rate.
  • You report capital gains on Schedule D (Form 1040) when you file your tax return; you do not report them separately to a government office.
  • If you sell at a loss, you can deduct up to $3,000 of losses against other income in that year, and carry unused losses forward to future years.

The Math: Sale Price Minus Your Basis

Start with the price you sold the asset for. Subtract what you originally paid for it. That number is your realized gain. If you bought a rental house for $200,000 and sold it for $280,000, your realized gain is $80,000.

But you also subtract the costs of selling. These include real estate agent commissions, title insurance, closing costs, and any other fees directly tied to the sale. If you paid $12,000 in commissions and closing costs, your taxable gain drops to $68,000. Keep receipts and closing statements for all these expenses — the IRS will want proof if you are audited.

For stocks and mutual funds, your basis is what you paid per share times the number of shares. If you bought 100 shares at $50 each ($5,000 total) and sold them for $7,500, your gain is $2,500. If you sold only 50 shares, your gain is $1,250. Brokerage statements show your basis automatically when you sell.

Long-Term Versus Short-Term: The Holding Period Matters

Hold an asset for more than one year, and your gain qualifies as long-term. The IRS taxes long-term gains at preferential rates: 0%, 15%, or 20%, depending on your total income for the year. Most people fall into the 15% bracket. Hold it one year or less, and it is short-term, taxed as ordinary income at your regular tax bracket — which can be 10%, 12%, 22%, 24%, 32%, 35%, or 37%.

The holding period starts the day after you buy and ends the day you sell. 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. This one-day difference can mean hundreds or thousands of dollars in tax.

Long-term rates are lower because the government wants to encourage long-term investing. A $10,000 long-term gain taxed at 15% costs you $1,500. The same gain taxed as short-term at 24% costs you $2,400. The difference adds up fast.

How Your Income Level Affects Your Tax Rate

For 2024, the long-term capital gains brackets are tied to your ordinary income. If your total taxable income (including the gain) falls below a certain threshold, you pay 0% on long-term gains. The thresholds vary by filing status:

Filing Status0% Rate Threshold15% Rate Threshold20% Rate Threshold
SingleUp to $47,025$47,025 to $518,900Over $518,900
Married Filing JointlyUp to $94,050$94,050 to $583,750Over $583,750
Head of HouseholdUp to $62,975$62,975 to $551,350Over $551,350

These thresholds change each year. The IRS publishes updated numbers in January. If you are single, earn $40,000 in wages, and have a $20,000 long-term gain, your total income is $60,000. The first $7,025 of your gain falls in the 0% bracket; the remaining $12,975 falls in the 15% bracket. You owe $1,946 in capital gains tax.

Where to Report Your Gains on Your Tax Return

You report capital gains on Schedule D, which is part of Form 1040. You list each sale separately: the asset, the date you bought it, the date you sold it, your basis, the sale price, and the gain or loss. The IRS Form 1040 instructions walk through each line.

If you sold stocks or mutual funds, your brokerage sends you a Form 1099-B showing all your sales for the year. Use this to fill out Schedule D. If you sold real estate, you will not receive a 1099-B, but you should have your purchase documents and closing statement. Real estate agents sometimes provide a summary, but the IRS expects you to have the original paperwork.

You file Schedule D with your Form 1040 when you submit your tax return to the IRS. You do not send it separately or report it to a different office. If you use tax software, it walks you through the questions and builds Schedule D automatically.

What Happens If You Sell at a Loss

If you sell an asset for less than you paid, you have a capital loss. You can use capital losses to offset capital gains. If you have a $5,000 gain and a $3,000 loss in the same year, your net gain is $2,000, and you owe tax only on that $2,000.

If your losses exceed your gains, you can deduct up to $3,000 of the net loss against other income (wages, interest, dividends) in that year. If you have a $10,000 loss and no gains, you can deduct $3,000 against your other income, reducing your taxable income by $3,000. The remaining $7,000 carries forward to the next year, where you can deduct another $3,000, and so on until the loss is used up.

This is why some investors "harvest" losses at year-end — they sell losing positions to offset gains elsewhere and reduce their tax bill. Keep records of all losses, not just gains.

Special Cases: Home Sales and Inherited Assets

If you sell a home you lived in as your primary residence for at least two of the last five years, you can exclude up to $250,000 of gain from tax (or $500,000 if you are married filing jointly). This exclusion applies once every two years. If you bought a house for $300,000, lived in it for five years, and sold it for $500,000, your gain is $200,000, but you owe tax on $0 because the gain is below the $250,000 exclusion.

If you inherit an asset, your basis is its value on the date of death, not what the original owner paid. If your parent bought stock for $10,000 and it was worth $50,000 when they died, your basis is $50,000. If you sell it immediately for $50,000, you have no gain and owe no tax. This is called a step-up in basis, and it applies to all inherited assets.

Frequently Asked Questions

Do I owe capital gains tax if I have not sold yet?

No. You owe tax only when you actually sell and realize the gain. If you own stock worth $10,000 more than you paid, but you have not sold it, you owe nothing. The moment you sell, the tax is due when you file your return for that year.

What if I sold something years ago and forgot to report it?

You should report it on an amended return. The IRS has records of sales through 1099-B forms from brokerages. If you do not report it and the IRS finds out, you will owe back taxes, interest, and possibly penalties. Contact a tax professional or the IRS directly if you are unsure how to proceed.

Can I deduct investment losses against my salary?

Yes, but only up to $3,000 per year. If you have $10,000 in investment losses and $80,000 in salary, you can deduct $3,000 against your salary, reducing your taxable income to $77,000. The remaining $7,000 carries to next year.

How do I know my basis if I lost my original purchase documents?

For stocks and mutual funds, contact your brokerage — they keep records going back many years. For real estate, check your closing statement or deed. If you truly cannot find the documents, you may be able to reconstruct basis using tax returns or other records, but this is difficult and often requires a tax professional.