Federal capital gains tax rates depend on your income and how long you held the asset
The federal tax rate on capital gains is either 0%, 15%, or 20%, determined by your total taxable income for the year and whether you held the investment for more than one year. Long-term capital gains (held over one year) use these three rates. Short-term capital gains (held one year or less) are taxed as ordinary income at rates up to 37%. Most people pay 15% on long-term gains because that bracket covers incomes up to roughly $492,300 for single filers and $553,850 for married filers in 2024, though these thresholds change yearly.
Your state may also tax capital gains. Nine states have no capital gains tax at all. Other states charge between 1% and 13.3% on top of the federal rate. A few states—including Washington, Minnesota, and Vermont—have recently passed or proposed capital gains taxes that apply only to high-value sales, not all gains. The total tax you owe combines federal and state rates.
Key Takeaways
- Long-term capital gains are taxed at 0%, 15%, or 20% federally, based on your total income for the year, not the gain amount alone.
- Short-term capital gains (assets held one year or less) are taxed as regular income at your ordinary tax bracket, which can be as high as 37%.
- Your state may add 0% to 13.3% on top of the federal rate, and nine states charge no state capital gains tax.
- The income thresholds that determine which rate you pay shift every year with inflation, so the same gain may be taxed differently year to year.
How holding period affects your tax rate
The length of time you own an investment before selling it is the single biggest factor in how much tax you pay. If you sell within one year of buying, the gain is short-term capital gains and taxed at your ordinary income tax rate—the same rate as your salary or wages. For most people, this is higher than the long-term rate.
If you hold the investment for more than one year before selling, the gain is long-term capital gains and qualifies for the lower 0%, 15%, or 20% rates. The IRS counts the holding period from the day after you buy to the day you sell. A purchase on January 15, 2024, becomes long-term on January 16, 2025. This distinction alone can save thousands of dollars on a large gain.
The three federal long-term capital gains brackets for 2024
| Tax Rate | Single Filers | Married Filing Jointly |
|---|---|---|
| 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 thresholds are based on your taxable income, which is your total income minus deductions and exemptions. The thresholds increase each year for inflation. For example, the 15% bracket was $44,625 to $492,300 in 2023 for single filers. You can find the current year's thresholds on the IRS website or your tax software.
If your taxable income falls in the 0% bracket, you owe no federal tax on long-term gains up to the limit. If it falls in the 15% bracket, you pay 15% on gains within that range. If your income pushes into the 20% bracket, only the portion of gains above the threshold is taxed at 20%. This is called a marginal system—you do not pay the higher rate on all your gains, only the amount that exceeds the bracket limit.
How state taxes add to your federal bill
Nine states—Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, Wyoming, and New Hampshire—do not tax capital gains at all. New Hampshire taxes only dividend and interest income, not gains from selling stocks or real estate.
The remaining 41 states and Washington, D.C., tax capital gains as part of ordinary income. State rates range from 1% in states like Colorado and Pennsylvania to 13.3% in California. Some states use a flat rate (the same percentage for everyone), while others use brackets similar to the federal system. A few states—Washington, Minnesota, and Vermont—have enacted separate capital gains taxes that apply only to sales above a certain threshold, typically $250,000 or more.
To find your state's rate, search "[your state] capital gains tax" or check your state's department of revenue website. If you live in a high-tax state and sell a large investment, state tax can add significantly to your total bill. For example, a $100,000 long-term gain in California could mean 15% federal ($15,000) plus 13.3% state ($13,300), totaling $28,300.
Special cases: Net Investment Income Tax and collectibles
If your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly), you may owe an additional 3.8% Net Investment Income Tax on top of the regular capital gains rate. This tax applies to capital gains, dividends, interest, and rental income. It is separate from the ordinary capital gains tax and is not reduced by state taxes.
Collectibles—artwork, coins, stamps, and similar items—are taxed differently. Long-term gains on collectibles are taxed at a flat 28% federal rate, not the 0%, 15%, or 20% rates. This applies even if your income would normally put you in the 0% or 15% bracket. Real estate held for investment may also have different rules depending on whether it qualifies as a primary residence or investment property.
How to calculate what you owe
Start by determining your total taxable income for the year, including wages, self-employment income, and any other sources. Then identify which gains are long-term and which are short-term. Short-term gains are added to your ordinary income and taxed at your regular bracket. Long-term gains are calculated separately using the 0%, 15%, or 20% brackets.
Most tax software walks through this calculation automatically if you enter your purchase date and sale price. If you are doing it by hand, the IRS Form 8949 (Sales of Capital Assets) and Schedule D (Capital Gains and Losses) are the forms you will use. You can also work with a tax preparer or accountant to ensure accuracy, especially if you have multiple investments or live in a state with its own capital gains tax.
Frequently Asked Questions
Do I pay 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, and owe no tax on that sale. You can use losses to offset gains from other sales in the same year. If losses exceed gains, you can deduct up to $3,000 of the net loss against ordinary income, and carry unused losses forward to future years.
What if I inherit an investment—do I owe capital gains tax?
No tax is owed at the time of inheritance. Inherited investments receive a "step-up in basis," meaning the cost basis resets to the market value on the date of death. If you later sell the inherited investment, you owe tax only on gains that occur after you inherited it, not on gains that occurred before.
Are dividends taxed the same way as capital gains?
may have access to dividends are taxed at the same 0%, 15%, or 20% rates as long-term capital gains, based on your income bracket. Non-may have access to dividends are taxed as ordinary income at your regular tax rate. Your brokerage statement will tell you which type you received. Dividend tax rates also vary by state.
Can I reduce my capital gains tax by timing when I sell?
Yes, in some cases. If you have both gains and losses, you can sell losing investments to offset gains in the same year. You can also spread sales across two tax years if you are near a bracket threshold. However, the IRS has rules against "wash sales"—you cannot buy back the same or substantially identical security within 30 days before or after a loss sale.
What is the difference between federal and state capital gains tax?
Federal capital gains tax is set by the IRS and applies to all U.S. residents. State capital gains tax is set by individual states and applies only if you live in or have income sourced to that state. Both are added together to determine your total tax. If you move states, you may owe tax to your old state on gains from sales while you lived there.