How to Use the US Capital Gains Tax Calculator
The US Capital Gains Tax Calculator computes federal capital gains tax for 2026 on both short-term gains (assets held β€ 1 year, taxed as ordinary income) and long-term gains (assets held > 1 year, taxed at preferential 0%, 15%, or 20% rates). It also calculates the 3.8% Net Investment Income Tax (NIIT) for high earners.
Enter your filing status, ordinary income, and capital gains. The calculator applies the correct 2026 tax brackets, determines whether each rate applies to your long-term gains based on your total income, and adds the NIIT if applicable.
A key nuance: your long-term capital gains rate is determined by your total taxable income (ordinary income + long-term gains). If your ordinary income puts you in the 15% long-term rate bracket, your entire long-term gain is taxed at 15% β there's no 'filling up' of lower brackets with long-term gains because they're a separate rate schedule.
π Worked Example
Married filing jointly, $120,000 ordinary income, $50,000 long-term capital gain, 2026:
- Long-term CGT rate bracket: 15% (income $96,701β$583,750 for MFJ)
- Long-term CGT: $7,500 (15% Γ $50,000)
- NIIT (3.8%): $0 (income below $250,000 MAGI threshold)
- Effective CGT rate: 15%
Common Use Cases
- β
Calculating federal tax on stock sales, ETF/fund disposals, or real estate gains
- β
Comparing tax on short-term vs long-term capital gains
- β
Planning when to sell an asset to qualify for long-term rates
- β
Understanding NIIT liability for high-income investors
- β
Tax-loss harvesting: estimating gains to offset with losses
- β
Calculating capital gains tax before a business or property sale
Frequently Asked Questions
What are the long-term capital gains rates for 2026?
0% for single filers with taxable income up to ~$48,350 (MFJ up to ~$96,700). 15% for income up to ~$533,400 (MFJ ~$583,750). 20% above those thresholds. These amounts are indexed annually for inflation. High-income earners also pay the 3.8% Net Investment Income Tax, making the effective top rate 23.8%.
How long must I hold an asset for long-term treatment?
You must hold the asset for more than 12 months (one year plus one day). Assets held exactly one year are still short-term. The holding period starts the day after you acquire the asset and ends on the day you sell it. For inherited assets, long-term treatment always applies regardless of holding period.
What is the Net Investment Income Tax (NIIT)?
The 3.8% NIIT applies to investment income (dividends, interest, capital gains, rental income) for high-income taxpayers. Thresholds: $200,000 for single filers, $250,000 for married filing jointly. It applies to the lesser of net investment income or the amount by which MAGI exceeds the threshold.
Can I offset capital gains with capital losses?
Yes. Capital losses offset capital gains dollar for dollar. Short-term losses offset short-term gains first; long-term losses offset long-term gains first. Net losses can then offset gains of the other type. If total losses exceed gains, up to $3,000 can offset ordinary income per year, with excess carried forward indefinitely.
Do I pay state capital gains tax in addition?
Most states tax capital gains as ordinary income, with rates from 3% to 13.3% (California). A few states (including Florida, Texas, Washington on most gains, Nevada, and others) have no income tax. New York adds state and city tax that can bring the combined rate near 33% for NYC residents.