Last updated March 2026

Capital Gains Tax Calculator 2026

Calculate your capital gains tax on stocks, real estate, or other investments. Compare short-term vs long-term rates based on your income and filing status.

$
$
$
Wages, salary, self-employment income

Capital Gains Tax Guide 2026

When you sell an investment โ€” stocks, mutual funds, real estate, cryptocurrency, or other assets โ€” for more than you paid, the profit is a capital gain. The IRS taxes this gain, but the rate depends on how long you held the asset and your income level.

Short-Term vs. Long-Term Capital Gains

This is the single most important distinction in capital gains taxation:

2026 Long-Term Capital Gains Tax Rates

Filing Status0% Rate15% Rate20% Rate
SingleUp to $47,025$47,026 โ€“ $518,900Over $518,900
Married Filing JointlyUp to $94,050$94,051 โ€“ $583,750Over $583,750
Married Filing SeparatelyUp to $47,025$47,026 โ€“ $291,850Over $291,850
Head of HouseholdUp to $63,000$63,001 โ€“ $551,350Over $551,350

Note: Long-term capital gains income is "stacked on top" of ordinary income to determine which rate applies. Your capital gains rate is based on your total taxable income including the gains.

The 3.8% Net Investment Income Tax (NIIT)

High earners may also owe the Net Investment Income Tax: an additional 3.8% on capital gains (and other investment income like dividends and rental income) for taxpayers whose modified AGI exceeds $200,000 (single) or $250,000 (married). This effectively raises the top rate on capital gains to 23.8%.

Special Rules for Real Estate

If you sell your primary home at a gain, you may qualify for the home sale exclusion:

For investment properties, gains are taxed at long-term capital gains rates if held over a year, but depreciation recapture is taxed at up to 25%.

Tax-Loss Harvesting: Offsetting Your Gains

If you have both gains and losses in your portfolio, you can offset gains with losses:

Important: The wash-sale rule prevents you from selling a security at a loss and immediately rebuying the same or substantially identical security within 30 days before or after the sale. If you trigger the wash-sale rule, the loss is disallowed.

Cryptocurrency Capital Gains

The IRS treats cryptocurrency as property, not currency. Every time you sell, exchange, or spend crypto, it's a taxable event. The same short-term and long-term rules apply. Mining and staking income is taxed as ordinary income at the time received, and your cost basis is the fair market value on the day you received it.

Frequently Asked Questions

What is the long-term capital gains tax rate?

0%, 15%, or 20% depending on your taxable income. Single filers pay 0% up to $47,025 in total taxable income; 15% from $47,026โ€“$518,900; and 20% above that. High earners may also owe the 3.8% NIIT, pushing the maximum effective rate to 23.8%.

What is the difference between short-term and long-term capital gains?

Short-term gains (assets held 1 year or less) are taxed as ordinary income at your regular rate (up to 37%). Long-term gains (assets held over 1 year) are taxed at preferential rates of 0%, 15%, or 20%. Holding one extra day past the 1-year mark can save thousands in taxes.

What is tax-loss harvesting?

Selling investments at a loss to offset gains. $10,000 in gains minus $4,000 in losses = $6,000 net taxable gain. You can also deduct up to $3,000 of net losses against ordinary income per year, with any unused losses carrying forward to future years.