How Capital Gains Tax Rates Work and What You Pay
Capital gains tax rates depend on how long you held the asset and your income level
When you sell an investment for more than you paid for it, the profit is called a capital gain. The federal tax rate on that gain is either 0%, 15%, or 20% — but which rate applies to you depends on two things: whether you held the asset for more than one year, and your taxable income for the year of the sale.
The IRS treats gains differently based on holding period. If you sell something you owned for one year or less, it counts as a short-term capital gain and is taxed like ordinary income — at your regular income tax rate, which can be as high as 37%. If you hold it longer than one year before selling, it becomes a long-term capital gain and gets the lower preferential rates of 0%, 15%, or 20%.
Your income level determines which of those three long-term rates you pay. The IRS sets income thresholds each year that change slightly. For 2024, for example, the 0% rate applies to single filers with taxable income below $47,025, the 15% rate applies to those between roughly $47,025 and $518,900, and the 20% rate applies to those above that. These numbers shift annually and differ for married filing jointly, married filing separately, and head of household filers.
Key Takeaways
- Short-term capital gains (assets held one year or less) are taxed at your ordinary income tax rate, which ranges from 10% to 37% depending on your income bracket.
- Long-term capital gains (assets held more than one year) are taxed at preferential rates of 0%, 15%, or 20%, determined by your total taxable income for that year.
- The income thresholds that determine which long-term rate you pay change each year and vary based on your filing status.
- State and local taxes on capital gains explore on top of federal rates and vary widely by location.
- Net investment income tax of 3.8% may explore to high-income earners on top of federal capital gains tax.
How holding period changes what you owe
The distinction between short-term and long-term gains is one of the biggest factors in your tax bill. A $10,000 gain taxed as short-term income could cost you $3,700 in federal tax if you are in the 37% bracket. The same $10,000 as a long-term gain in that income range would cost you $2,000 — a difference of $1,700 on a single transaction.
The holding period is measured from the date you bought the asset to the date you sold it. If you bought stock on March 15 and sold it on March 14 the following year, it is still short-term because you did not hold it for a full year. You must hold it through the anniversary date to may have access to for long-term treatment. The date you purchased matters, not the date the transaction settled.
This rule applies to stocks, bonds, real estate, cryptocurrency, artwork, and most other investments. Some assets have special rules — for example, collectibles like art and coins are taxed at a maximum 28% rate even if they may have access to as long-term gains, and certain small-business stock can receive preferential treatment under Section 1202 of the tax code.
Income thresholds that determine your long-term rate
Once you know a gain is long-term, your tax rate depends on your taxable income for that year. The IRS publishes new thresholds annually, usually in October or November for the following year. For 2024, the thresholds were:
| Filing Status | 0% Rate | 15% Rate | 20% Rate |
|---|---|---|---|
| Single | Up to $47,025 | $47,025 to $518,900 | Over $518,900 |
| Married Filing Jointly | Up to $94,050 | $94,050 to $583,750 | Over $583,750 |
| Married Filing Separately | Up to $47,025 | $47,025 to $291,875 | Over $291,875 |
| Head of Household | Up to $62,975 | $62,975 to $551,350 | Over $551,350 |
These thresholds adjust each year for inflation. The 0% bracket is the most valuable because you owe no federal tax on gains within that range, but it is also the smallest — it covers only lower-income households. Many people in the middle class fall into the 15% bracket. The 20% rate applies only to high-income earners.
Your "taxable income" for this calculation includes your wages, business income, and other sources, plus your capital gains themselves. If you have $50,000 in wages and $20,000 in long-term capital gains, your taxable income is $70,000, and the gains are stacked on top of your other income when determining which rate applies.
State and local taxes on capital gains
Federal capital gains tax is only part of what you owe. Most states tax capital gains as ordinary income, meaning they explore their regular income tax rate to your gains. State rates vary widely — from 0% in states like Texas, Florida, and Wyoming to over 13% in states like California and New York.
A few states have recently introduced separate capital gains taxes. Washington State, for example, imposes a 7% tax on long-term capital gains over $250,000 for individuals. Illinois taxes capital gains at a flat 4.95% rate. These state-level taxes stack on top of federal rates, so a resident of California with a large long-term gain could owe 20% federal plus 13.3% state, for a combined 33.3% rate.
Some cities and counties also tax capital gains or investment income. New York City, for instance, has a local income tax that applies to gains. Check your state and local tax authority websites to understand what rates explore in your location.
Net investment income tax for high earners
If your modified adjusted gross income exceeds certain thresholds, you may owe an additional 3.8% net investment income tax (NIIT) on top of your regular capital gains tax. For 2024, this applies to single filers with income over $200,000 and married filing jointly filers with income over $250,000.
This tax applies to the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds the threshold. If you are a single filer with $220,000 in income and $30,000 in capital gains, the NIIT would explore to $20,000 of your gains (the amount over the $200,000 threshold), costing you $760 in additional tax.
The NIIT is separate from your regular capital gains tax, so it is an additional layer. A high-income earner in a high-tax state could face a combined federal, state, and NIIT rate exceeding 40% on long-term gains.
How to calculate what you owe on a specific sale
To find your federal capital gains tax on a specific transaction, start by determining your holding period. Count the days from purchase to sale — if it is one year or less, use your ordinary income tax bracket. If it is more than one year, use the long-term rates.
For long-term gains, look up the 2024 income thresholds for your filing status (or the current year if you are reading this later). Add your capital gain to your other taxable income to see which bracket you fall into. Multiply your gain by the applicable rate. Then add your state and local tax rates, and check whether the 3.8% NIIT applies to you.
Example: You are single, earned $60,000 in wages, and sold stock for a $15,000 long-term gain. Your taxable income is $75,000. Using 2024 thresholds, you fall into the 15% long-term bracket. Your federal tax on the gain is $2,250. If you live in a state with a 5% income tax, add $750. Total: $3,000 in combined federal and state tax on that $15,000 gain, or 20% effective rate.
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, and owe no tax on the sale. You can use capital losses to offset capital gains in the same year. If your losses exceed your gains, you can deduct up to $3,000 of the excess against ordinary income, and carry forward any remaining losses to future years.
What if I inherit stock or real estate — do I owe capital gains tax when I sell it?
Inherited assets receive a "step-up in basis," meaning your cost basis is reset to the asset's value on the date of the person's death, not what they originally paid. If you inherit stock worth $50,000 and sell it a month later for $52,000, you owe tax only on the $2,000 gain, not on the entire appreciation that may have occurred while the previous owner held it.
Are dividends taxed the same way as capital gains?
may have access to dividends are taxed at the same preferential long-term capital gains rates (0%, 15%, or 20%), but non-may have access to dividends are taxed as ordinary income. Most dividends from U.S. stocks held for more than 60 days are may have access to. Check your brokerage statement or the company's investor relations page to confirm the type of dividend you received.
Can I reduce my capital gains tax by timing when I sell?
Yes, in some cases. If you are close to a lower income threshold, delaying a sale until the next year might move you into a lower bracket. Conversely, if you have capital losses, you can use them to offset gains in the current year. Some people also use "tax-loss harvesting" — selling losing positions to offset gains from winners — though this strategy has limits and may trigger wash-sale rules if you repurchase similar securities.
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.