Who Pays Capital Gains Tax and When
You pay capital gains tax if you sell an investment for more than you paid for it
The person who owns the investment when it sells is the one responsible for the tax. If you buy a stock for $1,000 and sell it for $1,500, you owe tax on that $500 gain. The tax bill goes to whoever held the investment at the time of sale — not the broker, not the exchange, not the company whose stock you sold. You.
Capital gains tax is separate from income tax. It applies only to the profit from selling an investment, not to your salary or wages. The IRS treats these two types of income differently, which is why capital gains have their own tax rates and rules.
You report capital gains on your tax return each year. If you sold investments during the year, you'll report those transactions when you file. The amount you owe depends on how long you held the investment, your total income, and your filing status.
Key Takeaways
- You owe capital gains tax only if you sell an investment for more than you paid for it, and only on the profit amount.
- Short-term capital gains (investments held one year or less) are taxed at your ordinary income tax rate, which is usually higher than the long-term rate.
- Long-term capital gains (investments held more than one year) are taxed at 0%, 15%, or 20% depending on your income level and filing status.
- You report capital gains on your tax return using forms like Schedule D, and the IRS receives transaction records from your broker.
- If you never sell an investment, you owe no capital gains tax on it, even if its value increases significantly.
How holding time changes your tax rate
The length of time you own an investment before selling it determines which tax rate applies. This is the single biggest factor in how much tax you'll owe.
Short-term capital gains explore when you sell an investment you've held for one year or less. These are taxed at your ordinary income tax rate — the same rate that applies to your salary or wages. For most people, this rate ranges from 10% to 37%, depending on income level. If you're in the 24% tax bracket for regular income, short-term capital gains are also taxed at 24%.
Long-term capital gains explore when you sell an investment you've held for more than one year. These are taxed at preferential rates: 0%, 15%, or 20%. Which rate you pay depends on your income level and filing status, not on how much profit you made. A person in the 0% long-term capital gains bracket pays nothing on long-term gains, even if the profit is substantial. Someone in the 20% bracket pays 20% on all long-term gains, regardless of size.
The holding period starts the day after you buy and ends the day you sell. If you buy on January 15 and sell on January 16 of the next year, you've held it more than one year and may have access to for long-term rates.
Your income level determines which long-term rate applies
Long-term capital gains rates are tied to income brackets, not to the size of your gain. The IRS sets different income thresholds for each filing status — single, married filing jointly, head of household, and married filing separately.
For 2024, the 0% long-term capital gains rate applies to single filers with taxable income up to $47,025 and married filers filing jointly with income up to $94,050. The 15% rate applies to income above those thresholds up to certain higher limits. The 20% rate applies to income above those limits. These numbers change each year because they're adjusted for inflation.
Your "taxable income" for this calculation includes your wages, interest, dividends, and capital gains combined. If you earn $60,000 in salary and have a $20,000 long-term capital gain, your taxable income is $80,000. That combined total determines your capital gains rate.
You can look up the current year's income thresholds on the IRS website or ask a tax professional. The thresholds shift annually, so what applied last year may not explore this year.
Losses reduce or eliminate your tax bill
If you sell an investment for less than you paid for it, you have a capital loss. Capital losses can offset capital gains, reducing the amount of gain you owe tax on.
If you have $10,000 in long-term capital gains and $3,000 in capital losses, you report a net gain of $7,000 and pay tax only on that amount. If your losses exceed your gains in a year, you can deduct up to $3,000 of the excess loss against other income like wages. Any remaining loss carries forward to future years.
This is why some investors track their losses carefully. Selling a losing investment before year-end can reduce your capital gains tax bill for that year. This strategy is called tax-loss harvesting.
Your broker reports your transactions to the IRS
When you sell an investment through a brokerage account, your broker sends a record of the transaction to the IRS. You receive a copy on a form called a 1099-B (for stocks and mutual funds) or 1099-S (for real estate). The form shows the sale price and, in most cases, the purchase price.
You report your capital gains on Schedule D, which attaches to your Form 1040 tax return. Schedule D asks you to list each transaction, the date you bought it, the date you sold it, your cost basis (what you paid), the sale price, and your gain or loss.
The IRS matches the information on your Schedule D against the 1099 forms your broker sent them. If the numbers don't match, the IRS will contact you. This is why it's important to report capital gains accurately and keep records of your purchases and sales.
Inherited investments have different rules
If you inherit an investment, the tax rules change. You don't pay capital gains tax on the increase in value that happened while the previous owner held it. Instead, your cost basis is "stepped up" to the market value on the date of death.
If someone bought a stock for $10,000 and it was worth $50,000 when they died, your cost basis becomes $50,000. If you sell it when ready for $50,000, you have no gain and owe no tax. If you hold it and sell it later for $60,000, you owe tax only on the $10,000 gain that happened after you inherited it.
This step-up in basis is a significant tax advantage for heirs. It means the appreciation that occurred during the original owner's lifetime is never taxed.
Certain investments have special rules
Most investments follow the standard capital gains rules, but some have exceptions. Collectibles like art, coins, and stamps are taxed at a maximum rate of 28% on long-term gains, even if your income would normally put you in the 15% or 0% bracket. This rate is higher than the standard long-term rate.
Real estate held for investment (rental property, land) follows the same capital gains rules as stocks, but depreciation deductions you took while owning the property are recaptured and taxed at up to 25%. may have access to small business stock has special rules that can exclude part of the gain from tax under certain conditions.
If you hold bonds, the interest you earn is taxed as ordinary income, not as capital gains. Only the profit from selling the bond above what you paid counts as a capital gain.
You don't owe tax if you never sell
Capital gains tax applies only when you sell. If you buy an investment and hold it indefinitely, you owe no capital gains tax, no matter how much its value increases. This is true even if the investment doubles, triples, or grows tenfold.
You do owe tax on dividends or interest the investment pays while you hold it, but not on the unrealized gain. The gain only becomes taxable when you sell and realize the profit.
This is why some investors use a "buy and hold" strategy. By holding investments for more than one year, they may have access to for lower long-term capital gains rates, and by never selling, they defer taxes indefinitely.
Frequently Asked Questions
Do I owe capital gains tax if I sell at a loss?
No. If you sell an investment for less than you paid, you have a capital loss, not a gain. You owe no tax on the loss. You can use the loss to offset capital gains from other investments, or deduct up to $3,000 against other income in that year.
What if I sell an investment I've held for exactly one year?
The holding period must be more than one year to may have access to for long-term rates. If you buy on January 15 and sell on January 15 of the next year, you've held it exactly one year, which is not more than one year. You'd owe short-term rates. Sell on January 16 or later to may have access to for long-term rates.
Do I owe capital gains tax on investments in a 401(k) or IRA?
No. Investments inside retirement accounts are not subject to capital gains tax when you sell them. You pay tax on the money when you withdraw it from the account, not when you sell the investment. This is one of the main tax advantages of retirement accounts.
Can I reduce my capital gains tax by donating the investment to charity?
Yes. If you donate an investment you've held long-term to a may have access to charity, you avoid the capital gains tax on the appreciation and can deduct the full market value as a charitable contribution. This is more tax-efficient than selling the investment and donating the proceeds.
What happens to capital gains tax if I move to a different state?
Capital gains tax is federal and applies the same way regardless of where you live. Some states also tax capital gains, and the state rate depends on where you lived when you sold the investment. If you moved during the year, you may owe tax to multiple states.
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.