Disclaimer: This calculator provides estimates for educational purposes only and is not financial, investment, tax, or legal advice. Projections rely on assumptions about contributions, rates of return, inflation, and tax law that are uncertain and subject to change, and actual results will differ. Past performance does not guarantee future results, and no specific investment outcome is implied or guaranteed. Tax figures shown are estimates only and are not a substitute for official IRS guidance, current tax tables, or a properly filed tax return. Consult a licensed financial advisor, certified public accountant, or tax professional for guidance specific to your financial situation before making any decisions.
Frequently Asked Questions
Q
What are long-term vs short-term capital gains?
Long-term gains are from assets held over 12 months, taxed at 0%, 15%, or 20%. Short-term gains (held 12 months or less) are taxed as ordinary income at your marginal tax rate, which can be up to 37%.
Holding 366+ days qualifies for long-term rates (0%, 15%, or 20%)
Short-term gains add to ordinary income – could push you into a higher bracket
Difference can be huge: 37% short-term vs 15% long-term on the same $50K gain saves $11,000
The holding period starts the day after purchase and includes the sale date
Income Range (Single)
Short-Term Rate
Long-Term Rate
Up to $47,025
10–12%
0%
$47,026–$100,525
22%
15%
$100,526–$191,950
24%
15%
$191,951–$518,900
32–35%
15%
Over $518,900
37%
20%
Q
What are the 2026 long-term capital gains rates?
0% rate: Single filers up to $49,450, married up to $98,900. 15% rate: Single $49,451-$545,500, married $98,901-$613,700. 20% rate: Above these thresholds.
A married couple with $80K total income pays 0% on long-term gains
Most middle-income filers fall in the 15% bracket
The 20% rate only kicks in above $545,500 (single) or $613,700 (married)
These thresholds are based on taxable income (after deductions), not gross income
Q
What is the Net Investment Income Tax (NIIT)?
The NIIT is an additional 3.8% tax on investment income (including capital gains) for individuals with modified AGI over $200,000 (single) or $250,000 (married). This is on top of regular capital gains tax.
Applies to: capital gains, dividends, rental income, interest, and royalties
Single filer with $250K AGI and $50K gain: NIIT = min($50K, $250K–$200K) × 3.8% = $1,900
NIIT thresholds are NOT adjusted for inflation – more filers hit it each year
Can raise your effective long-term rate from 15% to 18.8% (or 20% to 23.8%)
Q
How can I reduce capital gains tax?
Strategies include: Hold investments over 12 months, harvest tax losses, use tax-advantaged accounts (401k, IRA), consider qualified opportunity zones, donate appreciated assets, and time sales in lower-income years.
Hold 12+ months to drop from up to 37% to 0–20% tax rate
Tax-loss harvesting: offset gains with losses (up to $3,000 net loss deduction/year)
Roth IRA/401(k) gains grow tax-free – $0 capital gains on qualified withdrawals
Donate appreciated stock: deduct fair market value without paying gains tax
Time sales in low-income years (retirement, sabbatical) to hit 0% bracket
Q
Are crypto gains taxed the same as stocks?
Yes, the IRS treats cryptocurrency as property. Short-term crypto gains are taxed as ordinary income; long-term gains get preferential rates. Every trade, including crypto-to-crypto, is a taxable event.
Every swap (BTC to ETH, crypto to stablecoin) triggers a taxable event
Mining/staking income is taxed as ordinary income at fair market value when received
NFT sales follow the same capital gains rules as other digital assets
Use crypto tax software to track cost basis across exchanges ($50–$200/year)
Q
Is there a capital gains exclusion for home sales?
Yes, if you lived in your home 2 of the last 5 years, you can exclude up to $250,000 of gain (single) or $500,000 (married) from taxes. Any gain above this is taxed at capital gains rates.
Must live in the home 2 of the last 5 years (does not have to be consecutive)
Single: exclude up to $250,000 of gain; married filing jointly: up to $500,000
Can use this exclusion once every 2 years
Home improvements (new roof, kitchen remodel) add to your cost basis, reducing taxable gain
Inherited homes get a "stepped-up" basis to fair market value at time of death
Example Calculations
1Long-Term Stock Sale: $15,000 Gain (Single, $75K Income)
Inputs
Purchase Price$10,000
Sale Price$25,000
Holding Period18 months
Other Annual Income$75,000
State Tax Rate5%
Filing StatusSingle
Result
Net Profit After Tax$11,750
Capital Gain$15,000
Federal Tax (15%)$2,250
NIIT (3.8%)$0
State Tax (5%)$750
Total Tax$3,000
Effective Rate20.0%
Gain = $25,000 - $10,000 = $15,000. Held 18 months (long-term). Total income = $75,000 + $15,000 = $90,000. Since $90,000 is between $47,025 and $518,900, the long-term rate is 15%. Federal tax = $15,000 x 15% = $2,250. NIIT = $0 (under $200K threshold). State tax = $15,000 x 5% = $750. Total tax = $3,000. Net profit = $12,000.
2Short-Term Crypto Sale: $20,000 Gain (Single, $50K Income)
Inputs
Purchase Price$5,000
Sale Price$25,000
Holding Period6 months
Other Annual Income$50,000
State Tax Rate0%
Filing StatusSingle
Result
Net Profit After Tax$15,601
Capital Gain$20,000
Federal Tax$4,399
NIIT (3.8%)$0
State Tax (0%)$0
Total Tax$4,399
Effective Rate22.0%
Gain = $25,000 - $5,000 = $20,000. Held 6 months (short-term, taxed as ordinary income). Other income of $50,000 fills brackets up to the 22% bracket. The $20,000 gain is taxed in the remaining brackets: the first portion in the 22% bracket (up to $100,525), yielding a blended federal tax of $4,399. No NIIT (under $200K). No state tax. Net profit = $15,601.
Formulas Used
Capital Gain
Capital Gain = Sale Price - Purchase Price
The profit from selling an asset, which is the basis for tax calculation.
Where:
Sale Price= The price at which you sold the asset
Purchase Price= The original cost basis of the asset
Long-Term Capital Gains Tax
Federal Tax = Gain x LT Rate (0%, 15%, or 20% based on total income)
Assets held over 12 months qualify for preferential long-term rates based on total income (other income + gain).
Where:
LT Rate= 0% up to $47,025 (single) / $94,050 (married); 15% up to $518,900 / $583,750; 20% above
Total Income= Other annual income plus the capital gain
Net Investment Income Tax (NIIT)
NIIT = Min(Gain, Total Income - Threshold) x 3.8%
An additional 3.8% tax on investment income when total income exceeds the threshold.
Where:
Threshold= $200,000 for single filers; $250,000 for married filing jointly
3.8%= Net Investment Income Tax rate
Total Tax & Net Profit
Total Tax = Federal Tax + NIIT + State Tax; Net Profit = Gain - Total Tax
Combines all tax components to determine your after-tax profit.
Where:
State Tax= Gain x State capital gains tax rate
Net Profit= Capital gain minus all taxes paid
Understanding Capital Gains Tax Rates and Strategies
1
Long-Term vs Short-Term Rates: A $11,000 Difference on $50K
A $50,000 capital gain taxed at short-term rates (ordinary income) costs up to $18,500 in federal tax for a filer in the 37% bracket. That same $50,000 gain held for 366 days qualifies for the 15% long-term rate, reducing the federal bill to $7,500 — a savings of $11,000 from simply waiting one extra day past the 12-month holding threshold. This difference is the single most impactful tax planning decision investors can make.
The 2026 long-term capital gains brackets are more generous than many realize. Single filers pay 0% on gains up to $49,450 of total taxable income, 15% between $49,451 and $545,500, and 20% above that level. A retired couple with $80,000 in taxable income (below the $98,900 married threshold) pays literally zero federal capital gains tax on long-term sales — a powerful incentive to time asset sales during low-income years.
Short-term gains stack on top of your ordinary income, potentially pushing you into a higher bracket. A W-2 employee earning $85,000 who realizes a $20,000 short-term gain sees the additional income taxed at 22%, producing about $4,400 in extra federal tax. The same gain held long-term would cost $3,000 at the 15% rate — saving $1,400. The investment calculator can help you model after-tax returns under both scenarios.
*2026 federal rates; state taxes may apply additionally
Income Range (Single)
Short-Term Rate
Long-Term Rate
Savings on $50K Gain
Up to $49,450
10–12%
0%
$5,000–$6,000
$49,451–$105,700
22%
15%
$3,500
$105,701–$201,775
24%
15%
$4,500
$201,776–$545,500
32–35%
15%
$8,500–$10,000
Over $545,500
37%
20%
$8,500
2
Net Investment Income Tax: The Hidden 3.8% Surcharge
High earners face an additional 3.8% Net Investment Income Tax (NIIT) on capital gains, dividends, rental income, and interest when modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly). A single filer with $250,000 AGI and a $50,000 capital gain pays NIIT on the lesser of the $50,000 gain or the $50,000 excess above the $200,000 threshold — adding $1,900 to the tax bill.
The NIIT thresholds have never been adjusted for inflation since the tax was introduced in 2013, meaning more filers cross the threshold each year due to wage growth. In 2026, a dual-income household earning $125,000 each hits the $250,000 married threshold without any investment income at all. Any capital gains on top of that are immediately subject to the 3.8% surcharge.
Combined with the 20% top long-term rate, the NIIT pushes the maximum federal capital gains rate to 23.8%. Add state taxes — California at 13.3%, New York City at 8.82% — and total capital gains taxation can reach 33–37% for high earners in high-tax states. Strategic timing of sales across multiple years can keep AGI below the NIIT threshold and save thousands.
Tip: If your AGI is near the $200K/$250K NIIT threshold, consider spreading large asset sales across two tax years to keep each year’s income below the line.
3
Five Strategies to Minimize Capital Gains Tax
Tax-loss harvesting offsets gains with losses from other investments. If you sell Stock A for a $30,000 gain and Stock B for a $12,000 loss, your net taxable gain drops to $18,000, saving $1,800–$2,700 in tax at the 15% rate. Unused losses carry forward indefinitely, and up to $3,000 in net losses can offset ordinary income each year.
Donating appreciated stock to charity is doubly tax-efficient. If you bought shares at $5,000 that are now worth $20,000, donating them directly lets you deduct the full $20,000 market value while paying zero capital gains tax on the $15,000 appreciation. Selling the shares first and donating cash would trigger $2,250 in tax at 15% before you make the donation.
Tax-advantaged accounts (Roth IRA, 401(k), HSA) permanently shelter gains from taxation. A $10,000 investment in a Roth IRA that grows to $50,000 over 20 years generates $40,000 in completely tax-free gains. The 401(k) calculator and compound interest calculator can model how sheltering gains accelerates wealth accumulation compared to taxable accounts.
Hold investments 12+ months — drops federal rate from up to 37% to 0–20%, saving $5,000–$11,000 per $50K gain
Tax-loss harvesting — offset gains with losses, carry excess forward indefinitely, deduct $3,000/year against income
Donate appreciated stock — deduct full market value, avoid all capital gains tax on appreciation
Time sales in low-income years — retirement, sabbatical, or career transitions may qualify for the 0% rate
Maximize tax-advantaged accounts — Roth IRA, 401(k), and HSA growth is permanently tax-free
4
Cryptocurrency and Real Estate Capital Gains
The IRS classifies cryptocurrency as property, subjecting every trade — including crypto-to-crypto swaps — to capital gains rules. Selling Bitcoin held for 8 months at a $15,000 gain triggers short-term rates (up to 37%), while waiting 4 more months converts it to a long-term gain at 0–20%. Mining and staking income is taxed as ordinary income at the fair market value when tokens are received, regardless of whether they are sold.
Primary residence sales enjoy the most generous capital gains exclusion in the tax code: up to $250,000 of gain for single filers and $500,000 for married couples, provided you lived in the home for 2 of the last 5 years. A couple who bought a home for $300,000 and sells for $750,000 pays zero capital gains tax on the $450,000 profit. Gains above the exclusion threshold are taxed at long-term rates.
Investment real estate does not receive the primary-residence exclusion but offers a 1031 exchange deferral. Selling a rental property for $400,000 (purchased at $250,000) generates a $150,000 gain, but reinvesting the full proceeds into a like-kind property within 180 days defers all capital gains tax indefinitely. The property tax calculator can help estimate the ongoing costs of the replacement property.
Warning: Every cryptocurrency trade is a taxable event, including swapping one coin for another. Use crypto tax software ($50–$200/year) to track cost basis across exchanges and avoid IRS penalties.
This calculator is provided for informational and educational purposes only. Results are estimates and should not be considered professional financial, medical, legal, or other advice. Always consult a qualified professional before making important decisions. UseCalcPro is not responsible for any actions taken based on calculator results.