Capital Gains Tax Calculator
Sample Scenarios
Click a scenario to load example values based on real-world capital gains situations:
๐ Short-Term Stock Gain ($10K profit)
Stock sold within 1 year - taxed as ordinary income
Click to use
๐ Long-Term Stock Gain ($50K profit)
Stock held over 1 year - eligible for preferential rates
Click to use
โฟ Cryptocurrency Sale
Crypto gains taxed as capital gains (short or long-term)
Click to use
๐ Real Estate Sale (with exclusion)
Primary residence may qualify for $250K/$500K exclusion
Click to use
๐จ Collectibles Sale
Art, coins, etc. taxed at 28% long-term rate
Click to use
๐ฐ High-Income Investor
Subject to NIIT (3.8%) and top capital gains rates
Click to use
Enter Your Capital Gains Details
Transaction Details
Tax Information
Important Tax Disclaimer
This calculator provides estimates only based on 2026 federal tax rates. Tax situations vary significantly based on individual circumstances. Consult a qualified tax professional before making financial decisions. Tax rates are verified against official IRS sources but may change without notice.
CAPITAL GAINS ANALYSIS
Tax calculation summary
LONG-TERM
Hold Period Impact
If you sell today (Long-term)
$1,750
Current tax liability
Already long-term
No additional savings from holding longer
Tax Rate Tiers (Where You Fall)
Your effective long-term rate: 15.00%
Same Gain, Different Asset Types
Detailed Tax Breakdown
| Purchase Price | $10,000 |
| Sale Price | $15,000 |
| Capital Gain/Loss | $5,000 |
| Holding Period | 731 days (Long-term) |
| Federal Tax | $1,500 |
| Long-Term Rate | 15.00% |
| Net Investment Income Tax (NIIT) | $0 |
| State Tax | $250 |
| Total Tax Liability | $1,750 |
| Effective Tax Rate | 35.00% |
| After-Tax Proceeds | $13,250 |
๐ Visual Analysis
Tax Breakdown
Short-Term vs Long-Term Tax Comparison
Effective Tax Rate by Income Level
Step-by-Step Calculation
Purchase Price: $10,000
Sale Price: $15,000
Holding Period: 731 days (2 years, 1 days)
Asset Type: Stock
Capital Gain = Sale Price - Purchase Price
Capital Gain = $15,000 - $10,000
Net Capital Gain: $5,000
Holding Period: 731 days
Long-Term Threshold: 365 days
Classification: Long-Term
Long-Term Capital Gains Tax Rate Applied
Taxable Income: $75,000
Total Income (including gain): $80,000
Long-Term Capital Gains Tax: $1,500
Net Investment Income Tax (NIIT): Not applicable
State Tax: $250
Federal Tax: $1,500
NIIT: $0
State Tax: $250
Total Tax Liability: $1,750
Effective Tax Rate: 35.00%
After-Tax Proceeds = Sale Price - Total Tax
After-Tax Proceeds = $15,000 - $1,750
After-Tax Proceeds: $13,250
๐ Official Data Sources
Official guidance on tax withholding and estimated tax payments
Updated: 2025-12-15
Official IRS guidance on capital gains tax rates and calculations
Updated: 2025-11-01
2026 tax year inflation adjustments for tax brackets and thresholds
Updated: 2025-10-15
Instructions for reporting sales and dispositions of capital assets
Updated: 2025-12-01
Official IRS guidance on the 3.8% Net Investment Income Tax
Updated: 2025-09-01
Official guidance on taxation of collectibles at 28% rate
Updated: 2025-11-15
Important Disclaimer
This calculator provides estimates for educational purposes only. Tax rates are subject to annual inflation adjustments. Long-term capital gains rates: 0%, 15%, or 20% based on income. Short-term gains taxed as ordinary income. Consult a qualified tax professional for personalized advice.
Last verified: February 4, 2026 | Data source: IRS.gov
For educational and informational purposes only. Verify with a qualified professional.
How is capital gains tax calculated in 2026?
Short-term gains (held under 1 year) are taxed as ordinary income at 10-37%. Long-term gains (1+ year) get preferential rates: 0% up to $49,450 single/$98,900 married, 15% up to $545,500/$613,700, and 20% above. Add 3.8% NIIT if MAGI exceeds $200K/$250K. Collectibles are taxed at 28% long-term.
๐ Key Takeaways
- โข Short-term vs long-term rates: Assets held <1 year taxed as ordinary income (10-37%), held โฅ1 year get preferential rates (0/15/20%)
- โข NIIT 3.8% surtax applies to investment income above $200K (single) or $250K (married) โ not indexed for inflation
- โข Wash sale rule prevents claiming losses if you repurchase the same asset within 30 days
- โข Tax-loss harvesting can offset gains โ up to $3,000 of losses can offset ordinary income annually
๐ก Did You Know?
IRS Collections: Capital gains taxes generated $180B in federal revenue in 2024 โ second only to income taxes.
Historical Rate Changes: Long-term rates were 20% from 2013-2017, dropped to 0/15/20% in 2018, and remain unchanged through 2026.
Step-Up Basis Estate Benefit: Heirs receive assets with cost basis stepped up to date-of-death value โ avoiding capital gains on lifetime appreciation.
Carried Interest Loophole: Private equity managers pay capital gains rates (20%) instead of ordinary income (37%) on performance fees.
Tax Bracket Thresholds: The 0% bracket ($44K single/$89K married) means many retirees pay zero capital gains tax on investment sales.
Wash Sale Impact: Violating the wash sale rule disallows $50B+ in losses annually โ costing taxpayers billions in missed deductions.
๐ฏ Expert Tips
Harvest Losses in December
Sell losing positions before year-end to offset gains. You can deduct up to $3,000 against ordinary income, with excess carried forward.
Hold >1 Year for LTCG
Long-term capital gains rates (0/15/20%) are significantly lower than short-term rates (10-37%). Time your sales strategically.
Use Tax-Loss Harvesting ETF Swaps
Sell a losing ETF and immediately buy a similar one (e.g., SPY to VOO) to maintain exposure while capturing the loss.
Maximize 0% Bracket
If your taxable income is below $44K (single) or $89K (married), realize gains up to the bracket limit โ pay 0% tax.
๐ Comparison: vs TurboTax and H&R Block
| Feature | This Calculator | TurboTax | H&R Block |
|---|---|---|---|
| Cost | Free | $59-$119 | $35-$85 |
| NIIT Calculation | โ Included | โ Included | โ Included |
| 2026 Tax Rates | โ Updated | โ Updated | โ Updated |
| Instant Results | โ Real-time | Requires filing | Requires filing |
๐ Infographic Stats
What is Capital Gains Tax?
Capital gains tax is a tax on the profit from selling an asset that has increased in value. The tax applies to various types of investments including stocks, bonds, real estate, cryptocurrency, and collectibles.
The key distinction is between short-term and long-term capital gains:
- Short-term gains: Assets held for less than 1 year are taxed as ordinary income (10% to 37%)
- Long-term gains: Assets held for 1 year or more receive preferential tax rates (0%, 15%, or 20%)
How are short-term vs long-term gains taxed?
Short-Term Capital Gains
Taxed at your ordinary income tax rate (same as your salary). Rates range from 10% to 37% depending on your income level and filing status.
Long-Term Capital Gains
Preferential rates based on your total taxable income (2026 IRS brackets):
- 0%: Income up to $49,450 (single) or $98,900 (married filing jointly)
- 15%: Income between $49,451-$545,500 (single) or $98,901-$613,700 (married)
- 20%: Income above $545,500 (single) or $613,700 (married)
Source: IRS Revenue Procedure 2025 (inflation adjustments for tax year 2026)
Note: Collectibles (art, coins, etc.) are always taxed at 28% for long-term gains.
When does the NIIT apply to capital gains?
The Net Investment Income Tax (NIIT) is an additional 3.8% tax that applies to investment income for high-income taxpayers.
NIIT Thresholds (2026)
- Single: $200,000 Modified Adjusted Gross Income (MAGI)
- Married Filing Jointly: $250,000 MAGI
- Head of Household: $200,000 MAGI
NIIT applies to the lesser of: (1) your net investment income, or (2) the amount by which your MAGI exceeds the threshold.
What are the key formulas for capital gains tax?
Capital Gain
The profit (or loss) from selling an asset
Long-Term Capital Gains Tax
Rate depends on total taxable income including the gain
Net Investment Income Tax (NIIT)
Applies to investment income above $200K (single) or $250K (married)
Total Tax Liability
Sum of all applicable taxes on the capital gain
Effective Tax Rate
The overall percentage of your gain that goes to taxes
Related Calculators
IRS Late Filing Penalty Calculator โ April 15 Stress Estimator
IRS late filing and failure-to-pay penalty calculator for April 15: Form 4868 extension toggle, daily compound interest on tax owed, FTF/FTP overlap, stress gaugeโeducational.
TrendingCrypto Cost Basis Calculator
Track your cryptocurrency cost basis for accurate tax reporting. FIFO, LIFO, and specific ID methods.
TrendingCrypto Tax Calculator
Calculate your cryptocurrency taxes including capital gains, losses, and reporting requirements for 2026.
TrendingJapan Tax Calendar & Residency Calculator 2026
Map your Japan visa and residency dates to municipal tax obligations, residence tax triggers, and the April 2026 fiscal year reset.
TrendingProperty Tax Estimator
Estimate your property taxes based on home value, location, and exemptions.
TrendingQuarterly Estimated Tax Calculator
Calculate your quarterly estimated tax payments to avoid IRS penalties. For self-employed, freelancers, and investors.
Trending