The two tax rates that apply to most investment sales
Capital gains tax is the federal tax you owe when you sell an investment for more than you paid for it. The rate you pay depends on how long you held the investment and your total income for the year. There are two main categories: short-term capital gains (held one year or less) and long-term capital gains (held more than one year).
Short-term gains are taxed as ordinary income, meaning they use the same tax brackets as your wages or salary. Long-term gains have their own, usually lower tax brackets. The exact rate you pay within each category depends on your filing status and total taxable income for that year.
Key Takeaways
- Short-term capital gains use your ordinary income tax rate, which ranges from 10% to 37% depending on your income bracket.
- Long-term capital gains are taxed at 0%, 15%, or 20% depending on your income and filing status, and are generally lower than short-term rates.
- Your filing status (single, married filing jointly, head of household) determines which income thresholds apply to you.
- State and local taxes on capital gains vary widely and are separate from federal rates.
Short-term capital gains: taxed as regular income
If you sell an investment you held for one year or less, the profit is a short-term capital gain. The IRS taxes this as ordinary income, which means it falls into the same tax brackets as your job income. For 2024, those brackets range from 10% to 37%, depending on how much total income you have and your filing status.
This matters because short-term gains can push you into a higher tax bracket. If you earn $50,000 in wages and realize a $20,000 short-term gain, that $20,000 is taxed at the marginal rate for your new total income of $70,000, not at your original rate. You will owe tax on the full gain at whatever bracket that income level reaches.
Long-term capital gains: the preferential rates
If you hold an investment for more than one year before selling, the profit is a long-term capital gain and receives preferential tax treatment. Instead of your ordinary income rate, you pay 0%, 15%, or 20%, depending on your total income and filing status. These rates are fixed and do not change with inflation the way ordinary income brackets do.
The 0% rate applies to lower-income filers. For 2024, single filers with taxable income up to $47,025 pay 0% on long-term gains. The 15% rate applies to middle-income filers, and the 20% rate applies to the highest earners. The exact thresholds vary by filing status: married filing jointly has higher income limits than single filers, and head of household falls in between.
How your filing status changes the tax brackets
The income thresholds for each long-term capital gains rate depend on whether you file as single, married filing jointly, head of household, or married filing separately. Married couples filing jointly have the widest income ranges before hitting the higher rates, which is one reason joint filing is often advantageous for couples with investment income.
For example, in 2024, a single filer moves from the 0% rate to the 15% rate at $47,025 in taxable income. A married couple filing jointly does not hit the 15% rate until $94,050. Head of household filers fall in between at $63,000. These thresholds shift slightly each year for inflation, so the exact numbers change annually.
State and local taxes on capital gains
Federal capital gains tax is only part of what you owe. Most states also tax capital gains, either as part of ordinary income tax or through a separate capital gains tax. State rates range from 0% (in states with no income tax) to over 13% in high-tax states. A few states, including California and Washington, have enacted capital gains taxes that apply only to long-term gains above a certain threshold.
Your total tax bill on an investment sale includes federal tax plus whatever your state and local governments charge. Someone in California might owe 15% federal long-term capital gains tax plus California's state income tax and potentially a separate capital gains tax, depending on the sale amount. Check your state's tax authority website or a tax professional for your specific state rate.
How the holding period is calculated
The IRS counts the holding period from the day after you buy an investment to the day you sell it. If you buy stock on January 15 and sell it on January 15 of the next year, you have held it exactly one year, and the gain is short-term. You must hold it until January 16 of the following year for it to be long-term. The date matters because even one day short of one year means short-term treatment and ordinary income tax rates.
This applies to stocks, bonds, mutual funds, real estate, and most other investments. Some assets have special rules — for example, collectibles like art or coins are taxed at a maximum 28% rate even if held long-term — but the one-year holding period is the standard dividing line.
What happens if you have losses
Capital losses work in reverse: if you sell an investment for less than you paid, you have a capital loss. You can use losses to offset gains, reducing your tax bill. If your losses exceed your gains in a year, you can deduct up to $3,000 of the net loss against your ordinary income. Any remaining loss carries forward to future years.
This is why some investors track their sales carefully and may choose to sell losing positions in years when they have large gains. Pairing a $10,000 gain with a $10,000 loss means no tax on either. The mechanics are the same whether the gain or loss is short-term or long-term, but the tax rate on the gain depends on the holding period.
Frequently Asked Questions
Do I owe capital gains tax if I do not sell?
No. You only owe capital gains tax when you actually sell the investment and realize the gain. If you own stock worth $50,000 more than you paid but never sell it, you owe no federal capital gains tax on that increase. Some states have proposed wealth taxes on unrealized gains, but federal law does not currently tax gains until you sell.
What if I inherited an investment — do I owe capital gains tax on it?
Inherited investments receive a "step-up in basis," meaning the IRS treats the value on the date of death as your new purchase price. If you inherit stock worth $100,000 and it was worth $60,000 when the person died, your basis is $100,000. If you sell it immediately for $100,000, you owe no capital gains tax. You only owe tax on gains that occur after you inherit it.
Can I avoid capital gains tax by holding an investment forever?
You can avoid it during your lifetime, but your heirs will benefit from the step-up in basis when you die. If you want to reduce capital gains tax, you can donate appreciated investments to charity and deduct their full current value without paying capital gains tax on the appreciation. You can also use losses to offset gains or spread large sales across multiple years.
Are dividends taxed the same way as capital gains?
may have access to dividends from stocks and mutual funds are taxed at the same preferential long-term capital gains rates (0%, 15%, or 20%). Non-may have access to dividends and interest income are taxed as ordinary income. The distinction depends on how long you held the stock and the type of dividend, so check your brokerage statement to see which category applies.
What if I sold an investment at a loss — can I claim that on my taxes?
Yes. Capital losses offset capital gains dollar-for-dollar. If you have $15,000 in gains and $10,000 in losses, you report a net $5,000 gain and pay tax only on that amount. If losses exceed gains, you can deduct up to $3,000 against ordinary income in that year, with the remainder carrying forward to future years indefinitely.