Capital Gains Tax Calculator 2026

Calculate the tax on your investment gains. Our capital gains tax calculator shows both short-term and long-term rates to help you understand the tax impact of selling investments.

Capital Gains Tax Calculator

Results update automatically

$
$
$

Your Results

Instant calculation

Capital Gain

$5,000.00

Your long-term profit

Tax Owed

$750.00

Net After Tax

$4,250.00

Return %

50.0%

Tax Rate Applied

15.0%

How Calculated

Purchase Price$10,000.00
Sale Price$15,000.00
Gross Gain$5,000.00
Tax Rate15.0%
Tax Amount$750.00
Tips
  • Hold investments for 1+ years to qualify for lower long-term capital gains rates
  • If your income is below $47,025 (single), you pay 0% on long-term gains

Understanding Capital Gains Tax in 2026

Capital gains tax applies when you sell an asset for more than you paid for it. The tax rate depends on how long you held the asset and your income level. Our capital gains tax calculator helps you estimate the tax impact of selling stocks, real estate, or other investments so you can make informed decisions about when to sell.

Short-Term vs. Long-Term Capital Gains

The holding period determines whether gains are short-term or long-term:

Capital Gains Classification

Short-Term Gains
  • • Held 1 year or less
  • • Taxed as ordinary income
  • • Rate: 10% to 37%
  • • No preferential treatment
Long-Term Gains
  • • Held more than 1 year
  • • Preferential tax rates
  • • Rate: 0%, 15%, or 20%
  • • Significant tax savings

For example, if you're in the 24% tax bracket, a $10,000 short-term gain costs $2,400 in taxes. The same gain held long-term would cost only $1,500 (15% rate)—saving $900.

2026 Long-Term Capital Gains Tax Rates

Long-term capital gains are taxed at preferential rates based on your taxable income:

2026 Long-Term Capital Gains Rates

RateSingleMarried Joint
0%$0 - $48,350$0 - $96,700
15%$48,350 - $533,400$96,700 - $600,050
20%Over $533,400Over $600,050

These income thresholds apply to your taxable income including the capital gain itself. A large gain could push some of it into a higher rate bracket.

Types of Assets Subject to Capital Gains Tax

Capital gains tax applies to many types of investments:

  • Stocks and Bonds: The most common type. Sale proceeds minus purchase price (plus commissions) equals gain or loss.
  • Mutual Funds and ETFs: Gains distributed by funds are taxable, plus gains when you sell shares.
  • Real Estate: Primary residence has $250,000/$500,000 exclusion; investment property fully taxable.
  • Cryptocurrency: Treated as property by the IRS; every sale or trade is a taxable event.
  • Collectibles: Art, coins, precious metals taxed at higher rate (up to 28% for long-term).
  • Business Assets: May qualify for Section 1202 exclusion or Section 1031 exchange.

Net Investment Income Tax (NIIT)

High-income taxpayers pay an additional 3.8% Net Investment Income Tax on investment income:

NIIT Thresholds for 2026

SingleMAGI over $200,000
Married Filing JointlyMAGI over $250,000
Married Filing SeparatelyMAGI over $125,000

This 3.8% surtax applies to the lesser of your net investment income or the amount by which your MAGI exceeds the threshold. It effectively raises the top capital gains rate to 23.8% (20% + 3.8% NIIT).

💡 Pro Tip: Tax Loss Harvesting

Offset capital gains by selling losing investments. You can deduct up to $3,000 of net capital losses against ordinary income each year, with excess carrying forward. Be aware of the "wash sale" rule—you can't repurchase substantially identical securities within 30 days before or after the sale.

Capital Gains on Real Estate

Real estate has special rules that can reduce or defer capital gains:

  • Primary Residence Exclusion: Up to $250,000 ($500,000 married) of gain is tax-free if you lived there 2 of the last 5 years.
  • Depreciation Recapture: Investment property gains from depreciation are taxed at 25%, not capital gains rates.
  • 1031 Exchange: Defer taxes by reinvesting proceeds into a like-kind property within specific timeframes.
  • Opportunity Zones: Invest gains in qualified opportunity zones to defer and potentially reduce taxes.

Strategies to Minimize Capital Gains Tax

Smart investors use several strategies to reduce their capital gains tax burden:

  • Hold Over One Year: The simplest strategy—wait to qualify for long-term rates.
  • Harvest Losses: Sell losers to offset gains; $3,000 excess can offset ordinary income.
  • Gift Appreciated Assets: Gift to someone in a lower bracket or donate to charity.
  • Timing Sales: Spread gains across tax years to stay in lower brackets.
  • Use Tax-Advantaged Accounts: Hold investments in IRAs, 401(k)s where gains aren't taxed annually.
  • Qualified Small Business Stock: Section 1202 offers potential 100% exclusion for certain holdings.

Frequently Asked Questions About Capital Gains Tax

Capital gains tax is calculated as: (Sale Price - Purchase Price - Selling Costs) × Applicable Tax Rate. For long-term gains, use the 0%/15%/20% rates based on your income. For short-term gains, use your ordinary income tax bracket rate.
You can't avoid it entirely, but you can minimize it: hold investments over one year for lower rates, use tax-advantaged accounts (IRAs, 401(k)s), harvest losses to offset gains, donate appreciated stock to charity, or use the primary residence exclusion for home sales.
Yes. Reinvesting doesn't defer or eliminate capital gains tax—you must pay tax on gains in the year of sale regardless of whether you reinvest. This is different from real estate 1031 exchanges or IRA/401(k) rollovers, which do allow deferral.
The wash sale rule disallows a loss deduction if you buy substantially identical securities within 30 days before or after the sale. The loss isn't gone—it's added to the cost basis of the new shares. This rule applies across all your accounts, including IRAs.
The IRS treats cryptocurrency as property. Every sale, trade, or use of crypto is a taxable event. Trading Bitcoin for Ethereum is taxable. Buying goods with crypto is taxable. Keep detailed records of purchase dates and prices to calculate gains accurately. Use specific identification (FIFO, LIFO, or HIFO) to optimize taxes.