What capital gains tax actually means and why you owe it
Capital gains tax is the tax you owe on profit when you sell something you own — a stock, a house, a piece of land, a rental property. The tax applies only to the gain, not the full sale price. If you bought a stock for $1,000 and sold it for $1,500, your capital gain is $500, and that $500 is what gets taxed, not the $1,500.
The IRS taxes capital gains differently depending on how long you held the asset. If you owned it for one year or less, it counts as a short-term capital gain and is taxed at your ordinary income tax rate — the same rate as your salary or wages. If you owned it for more than one year, it counts as a long-term capital gain and is taxed at a lower rate: 0%, 15%, or 20%, depending on your income level.
You report capital gains on your tax return using Form 8949 (Sales of Capital Assets) and Schedule D (Capital Gains and Losses). The IRS uses these forms to track what you sold, when you sold it, and how much you gained or lost.
Key Takeaways
- Capital gain equals the sale price minus what you originally paid, minus any selling costs like broker fees or commissions.
- Short-term gains (held one year or less) are taxed at your regular income tax rate; long-term gains (held over one year) are taxed at 0%, 15%, or 20% based on your income.
- You report all sales on Form 8949 and summarize them on Schedule D, which attaches to your Form 1040.
- If you sold at a loss, you can use that loss to reduce other gains, and up to $3,000 of excess losses can reduce your ordinary income each year.
- Your broker or mutual fund company sends you a Form 1099-B or 1099-DIV in January showing what you sold and the proceeds, which you use to fill out Form 8949.
The math: calculating your actual gain or loss
Start with three numbers: the price you paid for the asset (called your cost basis, the price you sold it for (the sale proceeds), and any costs you paid to sell it (broker commissions, fees, or closing costs on real estate).
The formula is: Sale Proceeds − Cost Basis − Selling Costs = Capital Gain (or Loss). If the result is negative, you have a capital loss instead.
Example: You bought 100 shares of a stock at $50 per share ($5,000 total). You sold them at $65 per share ($6,500 total). Your broker charged a $25 commission. Your capital gain is $6,500 − $5,000 − $25 = $1,475.
Cost basis is not always what you paid. If you inherited the asset, your basis is usually its value on the date the person died. If you received stock as compensation, your basis is the fair market value on the date you received it. If you bought a house and made improvements (a new roof, a deck), those costs add to your basis. Keep receipts and records for anything that changes your basis.
How holding period changes your tax rate
The date you bought and the date you sold determine whether your gain is short-term or long-term. Count the days between purchase and sale. If it is one year or less, the gain is short-term. If it is more than one year, the gain is long-term.
Short-term capital gains are taxed at your ordinary income tax rate. If you are in the 24% tax bracket for regular income, short-term gains are also taxed at 24%. This can make short-term gains expensive to owe.
Long-term capital gains are taxed at a lower rate that does not match your income bracket. The rates are 0%, 15%, or 20%. Which rate you pay depends on your taxable income for the year:
| Long-Term Capital Gains Rate | Single Filers (2024) | Married Filing Jointly (2024) |
|---|---|---|
| 0% | Up to $47,025 | Up to $94,050 |
| 15% | $47,025 to $518,900 | $94,050 to $583,750 |
| 20% | Over $518,900 | Over $583,750 |
These income thresholds change each year. The IRS publishes updated amounts in January. If you have both short-term and long-term gains, calculate the tax on each separately, then add them together.
Using losses to reduce what you owe
If you sold an asset for less than you paid for it, you have a capital loss. Capital losses reduce capital gains dollar-for-dollar. If you had $5,000 in long-term gains and $2,000 in losses, your net gain is $3,000.
If your losses exceed your gains in a year, you can use up to $3,000 of the excess loss to reduce your ordinary income (wages, salary, interest, and other non-investment income). Any loss beyond $3,000 carries forward to the next year, where you can use it again.
Example: You had $2,000 in capital gains and $8,000 in capital losses. Your net loss is $6,000. You use $3,000 to reduce your ordinary income this year. The remaining $3,000 carries to next year, where you can use it again if you have gains or ordinary income.
This is called tax-loss harvesting when done intentionally. Some investors sell losing positions late in the year to offset gains from winning positions, reducing their total tax bill. You must wait 30 days before buying the same or a substantially identical security, or the loss is disallowed under the wash-sale rule.
Where to report capital gains on your tax return
You report capital gains using two forms that work together. Form 8949 lists each sale: the asset, the date bought, the date sold, the cost basis, the sale proceeds, and the gain or loss. Schedule D summarizes your short-term and long-term gains and losses from Form 8949 and calculates your net gain or loss for the year.
Schedule D then attaches to your Form 1040 (your main tax return). The net capital gain from Schedule D goes on line 7 of Form 1040. If you have a net capital loss, it reduces your income on Form 1040 (up to $3,000 per year, with the rest carrying forward).
Your broker or mutual fund company sends you a Form 1099-B (for stocks, bonds, and options) or Form 1099-DIV (for mutual funds) in January. This form shows what you sold and the proceeds. The IRS also receives a copy. Use this form to fill out Form 8949. If the information on the 1099 is wrong, you can correct it on Form 8949 — you do not need to ask the broker to reissue the form.
Common mistakes that trigger IRS notices
The most common error is forgetting to report a sale at all. The IRS matches the 1099 forms your broker sends to the IRS against what you report on your return. If you do not report a sale, the IRS will notice and send you a notice of deficiency with interest and penalties.
Another frequent mistake is using the wrong cost basis. If you bought shares in multiple batches at different prices, you must specify which shares you sold. If you do not, the IRS assumes you sold the oldest shares first (called FIFO, or first-in-first-out). If you actually sold newer shares at a lower cost, you owe more tax than you should. Keep detailed records of every purchase and specify which lot you are selling when you place the order with your broker.
Forgetting to account for stock splits, dividends reinvested, or inherited assets also inflates your gain. If a company splits its stock 2-for-1, your cost basis per share is cut in half. If you reinvested dividends, each reinvestment is a separate purchase with its own cost basis. If you inherited stock, your basis resets to the value on the date of death, not what the original owner paid.
Misclassifying the holding period is another trap. If you bought on January 15 and sold on January 15 the next year, that is exactly one year, which counts as long-term. If you sold on January 14, it is short-term. Count carefully, and do not assume the calendar year matters — only the actual days between purchase and sale.
Frequently Asked Questions
Do I owe capital gains tax if I did not sell anything?
No. Capital gains tax applies only when you sell and realize a gain. If you own a stock that went up in value but you still hold it, you owe no tax on the unrealized gain. You owe tax only in the year you sell.
What if my broker did not send me a 1099-B?
Contact your broker and ask for it. Brokers are required to send 1099-B forms by January 31. If you sold through a broker that no longer exists or closed your account, request the form from the firm that acquired the account. If you cannot get a 1099, you can still report the sale on Form 8949 using your own records, but the IRS may follow up if the numbers do not match what they received.
Can I deduct investment losses against my salary?
Only up to $3,000 per year. Capital losses first reduce capital gains dollar-for-dollar. Any excess loss can reduce your ordinary income (salary, wages, interest) by up to $3,000 in a single year. Losses beyond $3,000 carry forward indefinitely to future years.
What happens if I inherit stock and then sell it?
Your cost basis is the fair market value on the date the person died, not what they originally paid. If the stock was worth $10,000 when you inherited it and you sold it for $12,000, your capital gain is $2,000, even if the original owner paid $1,000 decades ago. This is called a step-up in basis and is one of the tax benefits of inheritance.
Do I report cryptocurrency sales the same way?
Yes. The IRS treats cryptocurrency as property, not currency. Every sale — whether you sold Bitcoin for dollars or traded one cryptocurrency for another — is a taxable event. Use Form 8949 and Schedule D just as you would for stocks. If you received cryptocurrency as payment for work, that counts as ordinary income at fair market value on the date received, and your cost basis is that same value.