The rate you pay depends on how long you held the investment
Capital gains tax is the federal tax on profit when you sell an investment for more than you paid for it. The rate you owe is either 0%, 15%, or 20% — but which one applies depends on two things: how long you owned the asset, and how much total income you earned that year.
If you held the investment for one year or less, the IRS taxes your profit as short-term capital gains, which means it gets taxed at your ordinary income tax rate — the same rate as wages or salary. That can range from 10% to 37% depending on your tax bracket.
If you held the investment for more than one year, it counts as long-term capital gains, and the rate is much lower: 0%, 15%, or 20%. Most people pay 15%. Which bracket you land in depends on your total taxable income for the year, not on the size of the gain itself.
Key Takeaways
- Short-term gains (held one year or less) are taxed at your regular income tax rate, which ranges from 10% to 37%.
- Long-term gains (held more than one year) are taxed at 0%, 15%, or 20%, depending on your total income for the year.
- The IRS counts the holding period from the day after you buy to the day you sell; one year and one day qualifies as long-term.
- Your state may also charge capital gains tax on top of the federal rate, and the amount varies by state.
Long-term capital gains brackets for 2024
The 0%, 15%, and 20% long-term rates apply to different income ranges. These ranges change each year and depend on your filing status — single, married filing jointly, head of household, or married filing separately.
For 2024, if you file as single, you pay 0% on long-term gains if your total taxable income is $47,025 or less. You pay 15% if your income is between $47,026 and $518,900. You pay 20% if your income exceeds $518,900.
If you file as married filing jointly, the 0% bracket extends to $94,050. The 15% bracket runs from $94,051 to $583,750. The 20% bracket applies to income above $583,750.
These thresholds are adjusted annually for inflation, so the numbers will be different in 2025. The IRS publishes updated brackets each year in the fall.
How the IRS counts the holding period
The IRS counts your holding period from the day after you purchase the investment to the day you sell it. If you buy a stock on January 15 and sell it on January 15 the following year, you have held it for exactly one year, which does not may have access to as long-term. You must hold it until January 16 of the following year.
This matters because the difference between 364 days and 366 days can mean the difference between paying your ordinary income tax rate and paying 15%. If you are close to the one-year mark, check your purchase confirmation before you sell.
The holding period rule applies to all investments: stocks, bonds, mutual funds, real estate, and cryptocurrency. The only exception is inherited assets, which receive a "step-up in basis" and are treated as long-term regardless of how long the deceased owner held them.
State capital gains taxes
Most states do not have a separate capital gains tax — they tax investment profits as ordinary income at their regular state income tax rate. However, a growing number of states have introduced capital gains taxes that apply only to investment profits, separate from income tax.
As of 2024, states with dedicated capital gains taxes include California, Washington, Oregon, Minnesota, and New Jersey. The rates and thresholds vary significantly. California taxes long-term gains at 13.3% but only on gains above $250,000. Washington taxes gains at 7% on all long-term gains above $250,000. New Jersey taxes gains at 3.876% on gains above $1 million.
If you live in a state with no income tax — Florida, Texas, Wyoming, Nevada, South Dakota, Tennessee, and Alaska — you owe no state capital gains tax. If you live in a state with income tax but no capital gains tax, your gains are taxed at your ordinary state income tax rate.
How capital losses offset your gains
If you sell an investment at a loss, you can use that loss to reduce your capital gains. If you have $10,000 in gains and $3,000 in losses, you report a net gain of $7,000 and pay tax only on that amount.
If your losses exceed your gains in a given year, you can deduct up to $3,000 of the excess loss against your ordinary income. Any remaining loss carries forward to future years, where you can use it to offset future gains or ordinary income in the same way.
This is called tax-loss harvesting, and it is a common strategy for investors who want to reduce their tax bill. However, the IRS has a rule called the "wash sale" rule: if you sell a security at a loss and buy the same or a substantially identical security within 30 days before or after the sale, the loss does not count. The rule is designed to prevent people from claiming a loss and immediately buying back the same investment.
How investment type affects the rate
Most investments — stocks, bonds, mutual funds, ETFs, and real estate — follow the standard long-term and short-term capital gains rules. However, a few asset types have special rules.
Collectibles (art, antiques, coins, 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 20% bracket. Short-term collectible gains are still taxed at your ordinary income rate.
Section 1250 property (real estate you depreciated for tax purposes) may be subject to "recapture," which means part of your gain is taxed at 25% instead of your normal long-term rate. This applies mainly to rental properties and business real estate.
may have access to small business stock can receive preferential treatment under Section 1202, potentially allowing you to exclude 50% to 100% of your gain from taxation if you meet specific holding and business size requirements. This is a complex rule that requires professional tax guidance.
Frequently Asked Questions
Do I have to report capital gains if I did not make much money?
Yes. You must report all capital gains on your tax return, even small ones. However, if your total income is below the standard deduction for your filing status, you may owe no federal income tax. The IRS still wants to see the transaction reported.
What if I sold an investment at a loss — do I still owe tax?
No. If you sold at a loss, you owe no capital gains tax on that transaction. You can use the loss to offset other gains or up to $3,000 of ordinary income. Any unused loss carries forward to future years.
Does the 0% capital gains bracket mean I pay nothing?
Correct. If your total taxable income falls within the 0% bracket for your filing status, you owe no federal tax on long-term capital gains. You still must report the gains on your return, but the tax owed is zero.
How do I know if my gain is short-term or long-term?
Count the days from the day after you bought to the day you sold. If it is one year or less, it is short-term. If it is more than one year, it is long-term. Your brokerage statement usually shows the purchase date and sale date, making the calculation straightforward.
Can I reduce my capital gains tax by donating to charity?
You cannot deduct the capital gains tax itself. However, if you donate appreciated securities directly to a charity, you avoid the capital gains tax on the appreciation and receive a charitable deduction for the full fair market value. This is often more tax-efficient than selling and donating the proceeds.