Capital Gains Tax Calculator

HOT

Calculate Your ImpactUse the calculator below to see how this story affects you personally

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

Original purchase price of the asset
Price at which the asset was sold
Date when the asset was purchased
Date when the asset was sold
Type of asset sold

Tax Information

Your tax filing status
Your total taxable income (excluding this capital gain)
Your state capital gains tax rate
%
Share:
Capital Gains Tax Analysis
Total Tax: $1,750
Capital Gain: $5,000
Effective Rate: 35.00%
numbervibe.com/calculators/trending/capital-gains-tax-calculator
โš ๏ธ

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.

Data Sources:IRS Topic 409 โ†—|IRS Pub 505 โ†—|NIIT FAQ โ†—Last verified: Feb 4, 2026

CAPITAL GAINS ANALYSIS

Tax calculation summary

CALCULATED
CAPITAL GAIN
$5000

LONG-TERM

TOTAL TAX
$1750
EFFECTIVE RATE
35.00%
AFTER-TAX PROCEEDS
$13250

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)

0%
15%
20%

Your effective long-term rate: 15.00%

Same Gain, Different Asset Types

Stocks
15%
$750 tax
Crypto
15%
$750 tax
Real Estate
15%
$750 tax
Collectibles
28%
$1,400 tax

Detailed Tax Breakdown

Purchase Price$10,000
Sale Price$15,000
Capital Gain/Loss$5,000
Holding Period731 days (Long-term)
Federal Tax$1,500
Long-Term Rate15.00%
Net Investment Income Tax (NIIT)$0
State Tax$250
Total Tax Liability$1,750
Effective Tax Rate35.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

Transaction Details

Purchase Price: $10,000

Sale Price: $15,000

Holding Period: 731 days (2 years, 1 days)

Asset Type: Stock

Capital Gain Calculation

Capital Gain = Sale Price - Purchase Price

Capital Gain = $15,000 - $10,000

Net Capital Gain: $5,000

Holding Period Classification

Holding Period: 731 days

Long-Term Threshold: 365 days

Classification: Long-Term

Tax Calculation

Long-Term Capital Gains Tax Rate Applied

Taxable Income: $75,000

Total Income (including gain): $80,000

Long-Term Capital Gains Tax: $1,500

Additional Taxes

Net Investment Income Tax (NIIT): Not applicable

State Tax: $250

Total Tax Summary

Federal Tax: $1,500

NIIT: $0

State Tax: $250

Total Tax Liability: $1,750

After-Tax Analysis

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

IRS Publication 505 - Tax Withholding and Estimated Tax

Official guidance on tax withholding and estimated tax payments

Updated: 2025-12-15

IRS Topic No. 409 - Capital Gains and Losses

Official IRS guidance on capital gains tax rates and calculations

Updated: 2025-11-01

IRS Revenue Procedure 2025-XX (Inflation Adjustments)

2026 tax year inflation adjustments for tax brackets and thresholds

Updated: 2025-10-15

IRS Form 8949 Instructions

Instructions for reporting sales and dispositions of capital assets

Updated: 2025-12-01

IRS Schedule D Instructions

Instructions for reporting capital gains and losses

Updated: 2025-12-01

IRS Net Investment Income Tax FAQ

Official IRS guidance on the 3.8% Net Investment Income Tax

Updated: 2025-09-01

IRS Publication 544 - Sales of Assets (Collectibles)

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

FeatureThis CalculatorTurboTaxH&R Block
CostFree$59-$119$35-$85
NIIT Calculationโœ“ Includedโœ“ Includedโœ“ Included
2026 Tax Ratesโœ“ Updatedโœ“ Updatedโœ“ Updated
Instant Resultsโœ“ Real-timeRequires filingRequires filing

๐Ÿ“ˆ Infographic Stats

0/15/20%
LTCG Brackets
3.8%
NIIT Rate
$44K
0% Threshold
$518K
20% Threshold

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

Capital Gain = Sale Price - Purchase Price

The profit (or loss) from selling an asset

Long-Term Capital Gains Tax

Tax = Capital Gain ร— Long-Term Rate (0%, 15%, or 20%)

Rate depends on total taxable income including the gain

Net Investment Income Tax (NIIT)

NIIT = Investment Income ร— 3.8% (if MAGI exceeds threshold)

Applies to investment income above $200K (single) or $250K (married)

Total Tax Liability

Total Tax = Federal Tax + State Tax + NIIT

Sum of all applicable taxes on the capital gain

Effective Tax Rate

Effective Rate = (Total Tax / Capital Gain) ร— 100%

The overall percentage of your gain that goes to taxes

Related Calculators