Skip to main content

Capital Gains Tax Calculator

Calculate your 2026 capital gains tax, see your bracket & net profit

Enter Your Investment Details

Qualified Dividends (Optional)

Understanding Capital Gains Tax in 2026

Capital gains tax is levied on the profit you make from selling an asset for more than you paid for it. Whether you are selling stocks, bonds, mutual funds, real estate, or other investments, understanding how capital gains tax works is essential for maximizing your after-tax returns. The U.S. tax code distinguishes between short-term and long-term capital gains, with significantly different tax treatments for each.

For 2026, the tax landscape remains favorable for long-term investors. Assets held for more than one year qualify for preferential long-term capital gains rates of 0%, 15%, or 20%, depending on your taxable income level. Short-term gains on assets held one year or less are taxed at your ordinary income tax rate, which can be as high as 37% for the highest earners.

Short-Term vs Long-Term Capital Gains Rates

Short-Term Capital Gains (Held 1 Year or Less)

Short-term capital gains receive no preferential tax treatment. They are added to your ordinary income and taxed at your marginal income tax rate. For 2026, the federal income tax brackets range from 10% to 37%. This means a high-income earner could pay nearly four times the tax rate on short-term gains compared to long-term gains. This is one of the strongest arguments for long-term investing and patience in the markets.

Long-Term Capital Gains (Held Over 1 Year)

Long-term capital gains benefit from preferential tax rates. For 2026, single filers with taxable income up to approximately $48,350 pay 0% on long-term gains. The 15% rate applies to income between roughly $48,350 and $533,400. The 20% rate applies to income above $533,400. These thresholds are higher for married couples filing jointly.

The Net Investment Income Tax (NIIT)

High-income investors should be aware of the 3.8% Net Investment Income Tax (NIIT), also known as the Medicare surtax. This additional tax applies to individuals with modified adjusted gross income (MAGI) exceeding $200,000 for single filers or $250,000 for married couples filing jointly. The NIIT applies to the lesser of your net investment income or the amount by which your MAGI exceeds the threshold. This can effectively raise the maximum long-term capital gains rate to 23.8%.

Tax-Loss Harvesting Strategies

Tax-loss harvesting is one of the most effective strategies for reducing your capital gains tax bill. The strategy involves selling investments that have declined in value to realize losses that offset your gains. Key rules to understand include the wash sale rule, which prevents you from claiming a loss if you repurchase the same or substantially identical security within 30 days before or after the sale.

You can use capital losses to offset capital gains dollar for dollar. If your losses exceed your gains, you can deduct up to $3,000 per year against ordinary income ($1,500 if married filing separately). Excess losses carry forward indefinitely to future tax years. Strategic tax-loss harvesting at year-end or during market downturns can save thousands in taxes annually.

How to Minimize Capital Gains Tax Legally

Several legitimate strategies can help reduce your capital gains tax burden. First, hold investments for at least one year and one day to qualify for long-term rates. Second, use tax-advantaged accounts like 401(k)s, IRAs, and Roth IRAs where gains grow tax-deferred or tax-free. Third, consider donating appreciated securities to charity instead of cash to avoid capital gains tax entirely while receiving a full fair-market-value deduction.

Additional strategies include timing your sales to years when your income is lower (such as retirement or a sabbatical), taking advantage of the primary residence exclusion ($250,000 for singles, $500,000 for married couples) when selling your home, and utilizing installment sales to spread gains across multiple tax years. Opportunity Zone investments can also defer or reduce capital gains tax for qualifying reinvestments.

Qualified Dividends Tax Treatment

Qualified dividends receive the same preferential tax treatment as long-term capital gains. To qualify, dividends must be paid by a U.S. corporation or a qualifying foreign corporation, and you must meet the holding period requirement (holding the stock for at least 60 days during the 121-day period beginning 60 days before the ex-dividend date). Ordinary dividends that do not meet these criteria are taxed at your regular income tax rate.

Frequently Asked Questions

What is the capital gains tax rate for 2026?

For 2026, long-term capital gains (assets held over 1 year) are taxed at 0%, 15%, or 20% depending on your taxable income and filing status. Short-term gains (assets held 1 year or less) are taxed as ordinary income at rates from 10% to 37%.

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

Short-term capital gains apply to assets held for one year or less and are taxed at your ordinary income tax rate (10-37%). Long-term capital gains apply to assets held longer than one year and receive preferential rates of 0%, 15%, or 20%.

How do I calculate capital gains tax?

Capital gain = Sale Price - Purchase Price - Selling Costs. Determine if it is short-term or long-term based on your holding period. Short-term gains are added to ordinary income. Long-term gains use preferential tax brackets based on your total taxable income.

What is the Net Investment Income Tax (NIIT)?

The NIIT is an additional 3.8% tax on investment income for individuals with MAGI above $200,000 (single) or $250,000 (married jointly). It applies to capital gains, dividends, interest, rental income, and other investment income above the threshold.

How are qualified dividends taxed?

Qualified dividends are taxed at the same rates as long-term capital gains: 0%, 15%, or 20%. They must be from qualifying U.S. or foreign corporations and meet holding period requirements to receive this preferential treatment.

What is tax-loss harvesting?

Tax-loss harvesting means selling losing investments to offset capital gains and reduce your tax bill. You can deduct up to $3,000 in net losses against ordinary income per year, with excess losses carried forward to future years. Watch out for the wash sale rule.

Do I pay capital gains tax on my primary residence?

You can exclude up to $250,000 in gains ($500,000 married jointly) when selling your primary residence if you have owned and lived there for at least 2 of the last 5 years. Gains above these exclusion amounts are taxed as capital gains.

Can I avoid capital gains tax legally?

Yes. Hold investments over one year for lower rates, use tax-advantaged accounts (401k, IRA), harvest losses, donate appreciated assets to charity, use the primary residence exclusion, time sales to low-income years, or invest in Opportunity Zones.

2026 Long-Term Capital Gains Tax Brackets

Filing Status0% Rate15% Rate20% Rate
SingleUp to $48,350$48,350 - $533,400Over $533,400
Married Filing JointlyUp to $96,700$96,700 - $600,050Over $600,050
Married Filing SeparatelyUp to $48,350$48,350 - $300,025Over $300,025
Head of HouseholdUp to $64,750$64,750 - $566,700Over $566,700
Related tools: Compound Interest Calculator | ROI Calculator | Retirement Calculator | Stocks vs Real Estate
This calculator provides estimates for educational purposes only. Tax laws are complex and change frequently. The 2026 brackets shown are projected based on inflation adjustments and may differ from final IRS figures. Consult a qualified tax professional for advice on your specific situation. This tool does not constitute tax advice.

Ready to file your full return?

Calculators are great for estimates. When you are ready to actually file, our step-by-step assistant walks you through federal, state, deductions, and refund tracking in one place.

File your full return →

File Your Taxes and Get Your Refund

Compare trusted tax filing options to find the best fit for your situation:

SoftwarePriceBest ForAction
FreeTaxUSAFree (Federal)Simple returnsFile Free →
TurboTaxFrom $69Complex returnsStart Filing →
H&R BlockFrom $55In-person supportFile Now →
TaxActFrom $35Budget optionGet Started →

Affiliate links. We may earn a commission at no extra cost to you. See our disclosure.

PRO

Get Your Personalized Tax Report

Download a detailed PDF with your tax breakdown, deduction checklist, and strategies that may help reduce your future tax liability.

✅ Complete tax breakdown by bracket
✅ Missed deductions checklist
✅ Year-over-year comparison
✅ Action plan to reduce next year's taxes
Download Tax Report — $3.99Secure PayPal payment • Instant delivery

💡 Why This Matters

Studies show that Americans overpay an average of $1,200 per year in taxes simply because they miss deductions and credits they qualify for. The right tax strategy can save you $2,000 to $10,000 annually, depending on your income, filing status, and life situation.

Common Mistake #1

Not adjusting W-4 withholding after marriage, a new child, or a raise — resulting in a surprise tax bill or an oversized refund (which is an interest-free loan to the IRS).

Common Mistake #2

Choosing the standard deduction without comparing to itemized deductions. Homeowners in high-tax states often miss thousands in savings with the new $40,000 SALT cap.

Common Mistake #3

Missing refundable credits like the Earned Income Tax Credit (EITC). About 20% of eligible taxpayers fail to claim EITC, leaving up to $7,830 on the table.

Understanding Tax Brackets (2026)

Tax brackets are marginal. A single filer earning $60,000 pays an effective rate of about 14% — not the 22% bracket rate. Here is how it breaks down:

10% × $11,925 = $1,192.50
12% × $36,550 = $4,386.00
22% × $11,525 = $2,535.50
Total: $8,114 → Effective rate: ~13.5%

Get Help Filing These Numbers

Pick a tax software to handle the math + filing. We earn a small commission at no cost to you.

TurboTax
Federal returns from $0
TaxAct
Up to 50% off competitors
FreeTaxUSA
Free federal, $14.99 state

❓ Frequently Asked Questions

How much can I save with the standard deduction in 2026?+
For 2026, the standard deduction is $16,100 for single filers and $32,200 for married filing jointly under OBBBA. Seniors 65+ get an additional $4,000 bonus deduction, meaning a married couple over 65 could shield up to $40,200 from federal income tax. If your itemized deductions total less than these amounts, the standard deduction is the better choice — and roughly 87% of taxpayers benefit from it.
Should I itemize or take the standard deduction?+
Itemize if your total deductible expenses exceed the standard deduction. Common itemized deductions include mortgage interest, state and local taxes (SALT, now capped at $40,000), charitable donations, and medical expenses exceeding 7.5% of AGI. Use our Federal Income Tax Calculator to compare both options with your specific numbers.
What tax credits am I eligible for in 2026?+
Common 2026 credits include: Child Tax Credit ($2,000/child), Earned Income Tax Credit (up to $7,830 for 3+ children), American Opportunity Credit (up to $2,500 for college), Saver's Credit for retirement contributions, and the Child & Dependent Care Credit. Credits reduce your tax bill dollar-for-dollar, making them more valuable than deductions.
How do tax brackets actually work?+
Tax brackets are marginal, meaning only the income within each bracket is taxed at that rate. Earning $60,000 does not mean you pay 22% on everything. You pay 10% on the first $11,925, 12% on $11,926–$48,475, and 22% only on $48,476–$60,000. Your effective rate ends up around 13.5%. Try our Tax Bracket Calculator to see your exact breakdown.
When should I hire a tax professional vs. DIY?+
Consider a tax professional if you are self-employed, own rental properties, had significant investment activity, experienced major life changes, have foreign income, or earn over $200,000. A CPA typically costs $200–$500 but can save thousands in complex situations. For straightforward W-2 returns, free tax software handles most cases well.
What's the difference between a tax deduction and a tax credit?+
A deduction reduces your taxable income — a $1,000 deduction in the 22% bracket saves $220. A credit reduces your actual tax bill — a $1,000 credit saves you a full $1,000. Some credits are refundable (you get money back even if you owe nothing), while others are non-refundable (they can only reduce your tax to zero).

📚 Did You Know?

$3,167

Average federal tax refund for 2025 filing season. Many taxpayers could keep this money year-round by adjusting their W-4 withholding.

87%

of taxpayers take the standard deduction. With the 2026 increase to $16,100 (single) and $32,200 (married), even more will benefit.

20%

of eligible taxpayers fail to claim the Earned Income Tax Credit, leaving up to $7,830 in refundable credits unclaimed each year.

$40K

New 2026 SALT deduction cap under OBBBA, up from $10,000. A major benefit for homeowners in high-tax states like CA, NY, and NJ.

🛠️ Explore More Tax Tools

📈 Federal Income Tax Calculator💰 Paycheck Calculator📊 Tax Bracket Calculator💼 Self-Employment Tax📈 Capital Gains Tax⏰ Overtime Tax Calculator🍴 Tips Tax Calculator🏠 SALT Deduction Calculator📋 W-2 vs 1099 Comparison💰 Roth Conversion Calculator🏥 HSA Tax Savings👴 Senior Tax Calculator

Related Resources

AI How To Invest — Smart Investment Tools ↗ReturnMyTax Home — All Tax Calculators ↗
More Free Tools From Our Network
📈
AIHowToInvest.com
145+ free financial calculators
🎓
StudLoans.com
Student loan repayment tools
🌍
AttractionScout.com
Travel attractions guide

Tax calculations are estimates for educational and informational purposes only. This site does not provide tax, legal, or financial advice. Tax laws change frequently. Always consult a qualified tax professional for advice specific to your situation. Data sourced from IRS publications and official state tax authority websites.

Affiliate Disclosure: Some links on this site are affiliate links. We may earn a commission at no additional cost to you.