How Capital Gains Tax Rates Work and What You Pay
Capital gains tax is the tax you owe when you sell an investment for more than you paid for it
When you sell a stock, real estate, or other investment at a profit, the IRS taxes that profit as capital gains. The rate you pay depends on how long you held the investment and how much total income you earned that year. The longer you hold an investment before selling, the lower your tax rate will be — this is the main rule that shapes capital gains tax.
There are two categories: long-term capital gains (you held the investment one year or longer) and short-term capital gains (you held it less than one year). Long-term rates are lower and are what most people think of when they hear "capital gains tax." Short-term gains are taxed at your ordinary income tax rate, which is higher.
The actual dollar amount you owe depends on three things: the profit itself, how long you held the investment, and your total income for the year. This article walks through how each one affects what you pay.
Key Takeaways
- Long-term capital gains (held one year or longer) are taxed at 0%, 15%, or 20% depending on your income level, while short-term gains are taxed at your ordinary income tax rate.
- Your income level for the year determines which capital gains rate applies to you — the IRS sets income brackets that change each year.
- The profit itself is what gets taxed, not the full sale price — if you bought a stock for $1,000 and sold it for $1,500, only the $500 gain is taxable.
- You report capital gains on Schedule D (Form 1040) when you file your tax return, and the IRS matches it to your brokerage records.
Long-term vs. short-term capital gains rates
The holding period is the first dividing line. If you own an investment for more than one year before selling, any profit is a long-term capital gain. If you sell within one year, it is a short-term capital gain.
Short-term capital gains are taxed as ordinary income. That means they are added to your wages, salary, and other income, and you pay your regular income tax rate on them — which can be 10%, 12%, 22%, 24%, 32%, 35%, or 37% depending on your total income. This is why short-term trading can be expensive from a tax perspective.
Long-term capital gains get preferential rates: 0%, 15%, or 20%. These rates are much lower than ordinary income rates, and they do not change year to year the way income tax brackets do. The 0% rate is available to lower-income filers, 15% covers most middle-income filers, and 20% applies to high-income filers. Your income level determines which bracket you fall into.
How your income level determines your capital gains rate
The IRS sets income thresholds each year that determine which capital gains rate applies to you. These thresholds are different from ordinary income tax brackets — they are lower, which is why capital gains are taxed more favorably.
For 2024, the long-term capital gains thresholds are roughly: 0% rate up to $47,025 for single filers (or $94,050 for married filing jointly); 15% rate from there up to $518,900 for single filers (or $583,750 for married filing jointly); and 20% for anything above that. These numbers change each year because the IRS adjusts them for inflation. You can find the current year's thresholds on the IRS website or in the instructions to Schedule D.
Your "income level" for this purpose includes your wages, salary, interest, dividends, and other income — plus your capital gains themselves. This means a large capital gain can push you into a higher bracket. For example, if you are single and earn $40,000 in wages, you are in the 0% capital gains bracket. But if you sell an investment for a $100,000 gain, that gain is added to your income, and part of it will be taxed at 15% or 20%.
How to calculate the profit you owe tax on
You do not pay tax on the full sale price. You pay tax only on the gain — the difference between what you paid and what you sold it for. This is called your cost basis.
The math is straightforward: sale price minus cost basis equals taxable gain. If you bought 100 shares of a stock at $50 per share ($5,000 total) and sold them at $75 per share ($7,500 total), your gain is $2,500. That $2,500 is what the IRS taxes, not the $7,500.
Cost basis includes the original purchase price plus any fees or commissions you paid to buy the investment. If you inherited an investment, the cost basis is usually the value on the date the person died, not what they originally paid — this is called a "step-up in basis" and is a significant tax advantage. If you received an investment as a gift, your cost basis is usually the same as the giver's cost basis.
Where to report capital gains on your tax return
You report capital gains on Schedule D (Form 1040), which is part of your federal income tax return. Schedule D has two sections: one for long-term gains and one for short-term gains. You list each sale separately, with the date you bought it, the date you sold it, the sale price, and your cost basis.
Your brokerage — the company where you hold your investments — sends you a Form 1099-B each January showing all the sales you made that year. The IRS receives a copy of this form too, so they know what you sold. You use the 1099-B to fill out Schedule D. If the numbers on your tax return do not match the 1099-B, the IRS will notice.
After you complete Schedule D, the total long-term and short-term gains flow to the main Form 1040. Long-term gains are taxed at the preferential rates described above; short-term gains are added to your ordinary income and taxed at your regular rate.
Special situations: mutual funds, real estate, and collectibles
Most investments follow the rules above, but a few categories have their own rules. Real estate you lived in can be excluded from capital gains tax up to $250,000 (or $500,000 if married filing jointly) if you owned and lived in it for at least two of the last five years. This is called the primary residence exclusion.
Mutual funds and exchange-traded funds (ETFs) work the same way as individual stocks — you pay capital gains tax when you sell shares at a profit. However, mutual funds also distribute capital gains to shareholders during the year, and you owe tax on those distributions even if you did not sell the fund itself. Your fund company sends you a statement showing these distributions.
Collectibles — art, coins, stamps, and similar items — are taxed at a flat 28% rate on long-term gains, which is higher than the standard 0%, 15%, or 20% rates. This is a special rule that applies only to collectibles, not to stocks or bonds.
What happens if you have losses instead of gains
If you sell an investment for less than you paid for it, you have a capital loss. You can use capital losses to offset capital gains. If you have $10,000 in gains and $3,000 in losses, you report a net gain of $7,000.
If your losses exceed your gains in a year, you can deduct up to $3,000 of the excess loss against your ordinary income (wages, salary, and other non-investment income). Any losses beyond that $3,000 carry forward to future years, and you can use them to offset future gains or income. This is why it can be valuable to harvest losses — deliberately selling losing investments to offset gains elsewhere.
Frequently Asked Questions
Do I have to pay capital gains tax if I reinvest the money?
Yes. The tax is based on the gain itself, not on what you do with the money afterward. If you sell a stock for a $5,000 profit and when ready buy a different stock with that money, you still owe tax on the $5,000 gain. Reinvesting does not defer or eliminate the tax.
What if I sold an investment at a loss — can I write that off?
Yes, but only up to $3,000 per year against ordinary income. You can use losses to offset gains dollar-for-dollar with no limit, but losses beyond your gains are capped at $3,000 annually. Any unused losses roll forward to the next year.
How do I know what my cost basis is if I lost the original paperwork?
Your brokerage has records of your purchases and can provide cost basis information. If you bought the investment through a brokerage, contact them and ask for a cost basis statement. If you bought it long ago through a broker that no longer exists, the IRS allows you to reconstruct it with documentation like old statements or confirmations.
Are dividends taxed the same way as capital gains?
No. Dividends are taxed separately. may have access to dividends (from U.S. corporations held for a certain period) are taxed at the same preferential rates as long-term capital gains. Non-may have access to dividends are taxed as ordinary income. Your brokerage statement will tell you which type you received.
What if I inherited stocks — do I owe capital gains tax?
Not on the inheritance itself. However, if you later sell those inherited stocks, you owe capital gains tax on any gain above the value on the date the person died. This "step-up in basis" is a major tax advantage of inherited investments.
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.