Ad placeholder — leaderboard
Capital Gains Tax Calculator 2026
Calculate your federal capital gains tax for short-term and long-term investments, including the Net Investment Income Tax (NIIT) for high-income filers.
Ad placeholder — in-article
Tax on Gain
Effective Tax Rate
Net Investment Income Tax
Total Federal Tax on Gain
Calculated in your browser. We never see your numbers.
How to Calculate Capital Gains Tax
Capital gains tax depends on how long you held the asset before selling and your total taxable income. Short-term gains (held 12 months or less) are added on top of your ordinary income and taxed at your marginal income tax rate — from 10% up to 37%. Long-term gains (held more than 12 months) benefit from preferential rates of 0%, 15%, or 20%, and are calculated by "stacking" the gain on top of your ordinary income within the long-term capital gains brackets. Enter your capital gain, other taxable income (wages, business income, etc. — already net of deductions), holding period, and filing status to see your estimated federal tax.
2026 Capital Gains Tax Brackets
For long-term capital gains in 2026, the tax rate depends on your total taxable income. Single filers pay 0% on gains when income is below $48,350; 15% between $48,350 and $533,400; and 20% above $533,400. Married filing jointly thresholds are $96,700 for the 0% bracket, $96,700–$600,050 for 15%, and 20% above. Head of household filers pay 0% up to $64,750; 15% between $64,750 and $566,700; and 20% above. Short-term gains use the same ordinary income brackets as wages — 10%, 12%, 22%, 24%, 32%, 35%, or 37%. High earners also owe 3.8% NIIT on top of these rates once income exceeds $200,000 (single) or $250,000 (married).
Ad placeholder — rectangle
Frequently Asked Questions
What is a capital gains tax?
A capital gains tax is a tax on the profit you earn when you sell an asset — like stocks, bonds, or real estate — for more than you paid for it. The federal government distinguishes between short-term and long-term capital gains. Short-term gains (on assets held one year or less) are taxed as ordinary income at rates from 10% to 37%. Long-term gains (on assets held more than one year) qualify for preferential rates of 0%, 15%, or 20%, depending on your total taxable income.
What is the difference between short-term and long-term capital gains?
The key difference is how long you held the asset before selling. If you held it for 12 months or less, the gain is short-term and taxed at your ordinary income tax rate (up to 37%). If you held it for more than 12 months, the gain is long-term and taxed at lower preferential rates of 0%, 15%, or 20%. Because long-term rates are significantly lower, holding investments for at least a year before selling is a common tax-optimization strategy.
What are the 2026 long-term capital gains tax rates?
For 2026, long-term capital gains are taxed at 0%, 15%, or 20% depending on your taxable income and filing status. Single filers pay 0% on gains when total taxable income is below $48,350; 15% between $48,350 and $533,400; and 20% above $533,400. Married filing jointly thresholds are $96,700 (0%), $96,700–$600,050 (15%), and above $600,050 (20%). Head of household thresholds are $64,750 (0%), $64,750–$566,700 (15%), and above $566,700 (20%).
What is the Net Investment Income Tax (NIIT)?
The Net Investment Income Tax (NIIT) is an additional 3.8% surtax that applies to investment income — including capital gains — for high-income filers. It applies to single filers and head-of-household filers with modified adjusted gross income above $200,000, and to married filing jointly filers above $250,000. The 3.8% NIIT is applied to the lesser of your net investment income or the amount by which your income exceeds the threshold. This means high earners can face an effective capital gains rate of up to 23.8% (20% + 3.8% NIIT).
Do I pay state capital gains tax in addition to federal?
Yes, most U.S. states also tax capital gains, though the rules vary widely. Some states, like California and New York, tax all capital gains as ordinary income with rates as high as 13.3%. A few states — including Florida, Texas, Nevada, and Washington — have no state income tax, so capital gains are not taxed at the state level. This calculator computes federal capital gains tax only. Check your state's tax rules to understand your full tax liability.
Ad placeholder — leaderboard