📈 Capital Gains Tax Calculator

Calculate federal and state tax on stocks, real estate, and investment sales — 2026

✓ Updated for 2026 IRS thresholds

Investment Details

$
$
$
%

Tax Results

Total Capital Gains Tax
Capital Gain / Loss
Tax Rate Applied
Federal Capital Gains Tax
State Tax
Effective Rate on Gain
Net Profit After All Taxes

How Capital Gains Tax Works in the US

Capital gains tax applies to profit from selling assets like stocks, bonds, mutual funds, and real estate. The rate depends heavily on how long you held the asset. Holding just one day beyond the one-year mark can cut your federal tax rate from 37% down to 20% or less.

Short-Term vs Long-Term Rates

Short-term gains (held ≤1 year) are taxed as ordinary income — the same rates as your salary (10%–37%). Long-term gains (held >1 year) qualify for preferential rates of 0%, 15%, or 20%.

2026 Long-Term Capital Gains Rates

Example

You bought stock for $10,000 and sold for $25,000 after 14 months (long-term). Your total income is $80,000 (single). Your long-term rate is 15%, so federal tax = $2,250. Add 5% state tax = $750. Total tax = $3,000. Net profit after tax = $12,000 on a $15,000 gain. If you had sold after just 10 months (short-term) and are in the 22% bracket, federal tax alone would be $3,300 — $1,050 more.

Strategies to Reduce Capital Gains Tax

Frequently Asked Questions

What is a capital loss carryforward?
If your capital losses exceed your capital gains in a tax year, you can deduct up to $3,000 of the net loss against ordinary income. Any remaining loss is "carried forward" to future tax years, where it offsets future gains or provides another $3,000/year deduction. This carryforward has no expiration date.
Does the home sale exclusion apply to investment properties?
No — the $250,000/$500,000 home sale exclusion only applies to your primary residence, and you must have lived there for at least 2 of the past 5 years. Investment properties and vacation homes don't qualify for this exclusion. However, 1031 exchanges allow real estate investors to defer capital gains by reinvesting proceeds into a like-kind property.
How does capital gains tax work for inherited assets?
Inherited assets receive a "stepped-up basis" — your cost basis is set to the fair market value at the date of the original owner's death, regardless of what they originally paid. If you then sell the asset, you only owe capital gains on appreciation after the date of inheritance. And since inherited assets are automatically treated as long-term (held over 1 year), they always qualify for the lower long-term rates.

Related Calculators