Free Capital Gains Calculator
Free capital gains tax calculator for 2026. Calculate short-term (up to 37%) and long-term (0%, 15%, 20% + 3.8% NIIT) rates. No sign-up. Strategies included.
Last reviewed: January 2026 · Tax data verified against IRS Publication 15-T & state revenue departments
Related Tools & Resources
How This Calculator Works
How long you hold an investment changes everything about the tax bill. Short-term gains (held a year or less) get taxed as ordinary income — up to 37%. Long-term gains (held more than a year) qualify for 0%, 15%, or 20%. On a $50,000 gain, the difference between short-term and long-term rates can be thousands of dollars.
For 2026, the 0% long-term rate applies if your total taxable income (including the gain) is under $47,025 (single) or $94,050 (married). The 15% rate covers most people, up to $518,900 (single) or $583,750 (married). Above that, it's 20%. These brackets are based on your total taxable income, not just the gain — so your salary can push you into a higher capital gains bracket.
Don't forget the Net Investment Income Tax (NIIT). That's an extra 3.8% on top when your MAGI exceeds $200,000 (single) or $250,000 (married).
A guy I know sold some stock after 11 months because he wanted the cash for a down payment. Held it just 3 more weeks and he would've qualified for long-term rates. Cost him about $4,000 in extra tax. That one still stings.
The effective top rate on long-term gains is 23.8% (20% + 3.8% NIIT), not the 20% most people quote. We factor in your ordinary income to figure out which bracket your gains fall into, and we show you the NIIT impact too.
Common tax-saving strategies worth knowing:
- Tax-loss harvesting: offset gains with losses to reduce your tax bill
- Watch your holding period: sometimes waiting a few weeks saves you thousands
- Donate appreciated assets to charity: you deduct the full value and never pay capital gains on it
Small decisions, big savings.
How It's Calculated
Formula
Step-by-Step
- 1Determine holding period: >1 year = long-term, ≤1 year = short-term
- 2For long-term: apply 0% rate (income up to $48,350), 15% (up to $533,400), or 20% (above)
- 3For short-term: apply ordinary income brackets (10%–37%)
- 4Add 3.8% Net Investment Income Tax if modified AGI exceeds $200,000 (single) / $250,000 (MFJ)
- 5Subtract cost basis from sale price to determine gain
- 6Calculate total capital gains tax liability
Example
For detailed data sources and full methodology, see our Methodology & Data Sources page.
Key Rates & Data for 2026
Short-Term Rate
Ordinary income (up to 37%)
Long-Term Rates
0% / 15% / 20%
NIIT Rate
3.8% (above $200K/$250K)
0% Bracket (Single)
Up to $47,025 taxable
Top Effective Rate (incl. NIIT)
23.8%
Capital Gains Tax FAQ
What's the difference between short-term and long-term capital gains?
How are cryptocurrency gains taxed?
What is the Net Investment Income Tax (NIIT)?
How can I reduce my capital gains tax?
Do I have to pay capital gains tax on my primary home?
What are the 2026 capital gains tax brackets?
Related Articles
2026 Tax Brackets: IRS Income Tax Brackets 2026 Explained
Complete guide to the IRS 2026 tax brackets — income tax brackets 2026, marginal tax rate, federal income tax rates, adjusted gross income, and tax credits for married couples filing jointly.
How FICA Taxes Work in 2026
Understanding FICA taxes (Social Security and Medicare) in 2026 — what you pay, what your employer pays, and how self-employment tax differs.
Related Calculators
Link to This Calculator
Help others find this free tool — add a link to your website or blog.
<a href="https://thetaxcalc.com/capital-gains-calculator" title="Capital Gains Calculator 2026 | Short & Long">Capital Gains Calculator 2026 | Short & Long</a>
Next Steps
See take-home pay for $30K–$500K across 23 states
Side-by-side tax comparison for any two states
Salary you'd need if you move to another state
Project your retirement savings with compound growth
Key tax terms explained in plain English
Full federal bracket breakdown with examples
Explore More Tools