IRS 2026 Brackets

Capital Gains Tax Calculator 2026 — Federal & State Rates

Calculate US federal and state capital gains tax for short-term and long-term asset sales, including the 3.8% Net Investment Income Tax (NIIT).

⚙️ Calculation Parameters

$
$
$
%

📊 Real-Time Analysis

Total Net Capital Gain
$0.00
Total Estimated Tax
$0.00
Effective Tax Rate
$0.00
Federal Capital Gains Tax --
Net Investment Income Tax (NIIT 3.8%) --
State Capital Gains Tax --
Net After-Tax Proceeds --

📐 How It Works: Mathematical Formulas & Methodology

Net Capital Gains Tax & NIIT Surcharge Model Verified Calculation Model
Core Formula:
\text{Tax} = (\text{Proceeds} - \text{Basis}) \times \text{Bracket Rate} + \max(0, \min(\text{Gain}, \text{MAGI} - \text{Threshold})) \times 3.8\%
In Plain English: Applies preferential capital gains tiers to long-term gains, ordinary income brackets to short-term gains, and 3.8% NIIT on investment income exceeding statutory MAGI ceilings.
Mathematical Variables & Inputs:
  • Proceeds: Gross transaction sale price minus broker execution commissions.
  • Basis: Original cost basis adjusted for stock splits, reinvested dividends, and capital improvements.
  • Holding Period: Short-Term (≤ 365 days, ordinary rates 10%-37%) vs. Long-Term (> 365 days, rates 0%, 15%, 20%).
  • NIIT: 3.8% Net Investment Income Tax applied under IRC § 1411 when MAGI exceeds $250,000 (MFJ) or $200,000 (Single).

📝 Step-by-Step Practical Calculation Example

Follow this real-world example to calculate or verify your numbers manually:

  1. A married joint filer earning $220,000 sells stock held for 3 years for $100,000 that was purchased for $40,000 ($60,000 gain).
  2. Because holding exceeds 1 year, the gain falls in the 15% long-term tier, generating $9,000 in federal capital gains tax instead of $14,400 under ordinary income rates.
💡 Pro Tip for Solving Complex Cases: Donating appreciated stock held over one year directly to a 501(c)(3) charity eliminates 100% of capital gains tax liability while providing a full fair-market-value itemized tax deduction.
🏛️ US Regulatory & Industry Benchmark: Internal Revenue Code Section 1(h) and Section 1411 establish statutory capital gains rates and net investment income tax thresholds.

Accurate financial and mathematical planning requires uncompromised computational fidelity. In accordance with federal standards and standard US banking underwriting practices, this tool calculates exact computational models, statistical distributions, and quantitative projections.

Cross-referencing statutory thresholds and institutional rules ensures that capital allocations remain compliant with current federal regulations while minimizing lifetime transaction costs.

Frequently Asked Questions

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

Assets held for 365 days or less are classified as short-term capital gains and taxed as ordinary income (up to 37%). Assets held for longer than one year qualify for favorable long-term tax rates of 0%, 15%, or 20%.

What is the Net Investment Income Tax (NIIT)?

The NIIT is a 3.8% surtax established under IRC Section 1411 on net investment income for individuals whose modified adjusted gross income exceeds $200,000 for single filers or $250,000 for married couples filing jointly.

Do all US states tax capital gains?

Most states tax capital gains as regular income. States with no personal income tax (Texas, Florida, Nevada, Washington, Wyoming, South Dakota, Alaska) do not tax capital gains.

Can capital losses offset capital gains?

Yes. Capital losses can offset capital gains dollar-for-dollar without limit. Excess losses up to $3,000 can reduce ordinary taxable income each year.

📈 Capital Gains Tax Modeling: Short-Term vs. Long-Term Rates & NIIT Rules

Profits realized from selling capital assets (stocks, cryptocurrencies, real estate, precious metals) are categorized into short-term or long-term holdings based on an exact one-year holding period. Short-term capital gains (assets held 365 days or fewer) are taxed at ordinary income rates up to 37%.

Long-term capital gains (assets held 366 days or longer) enjoy preferential federal rates of 0%, 15%, or 20%. High-income investors must also account for the statutory 3.8% Net Investment Income Tax (NIIT) under IRC § 1411 and state capital gains taxation.

📊 2026 Long-Term Capital Gains Federal Tax Brackets

Capital Gains Rate Single Taxable Income Range Married Joint Taxable Income Range Head of Household Range
0% Capital Gains Rate$0 – $48,350$0 – $96,700$0 – $64,750
15% Capital Gains Rate$48,350 – $533,400$96,700 – $600,050$64,750 – $566,700
20% Capital Gains RateOver $533,400Over $600,050Over $566,700
+3.8% NIIT SurchargeMAGI Over $200,000MAGI Over $250,000MAGI Over $200,000

Tax-Loss Harvesting & Gain Deferral Protocols

  • Harvest Losses to Offset Capital Gains: Capital losses directly offset capital gains dollar-for-dollar; net excess losses can offset up to $3,000 of ordinary wage income annually, carrying forward indefinitely.
  • Beware the 30-Day Wash Sale Rule (IRC § 1091): Selling a stock or ETF for a tax loss and repurchasing a 'substantially identical' security within 30 days before or after the sale disallows the tax loss deduction.
  • Utilize Section 121 Primary Residence Exclusion: Taxpayers who own and occupy a primary home for at least 2 of the 5 years preceding sale exclude up to $250,000 (single) or $500,000 (married joint) of capital gain entirely tax-free.

🎯 Primary Search Queries & Related Financial Terms

This computational suite is indexed for high-intent search queries and regulatory standards across the United States:

🔍 capital gains 🔍 tax short 🔍 term long 🔍 term stock 🔍 sale crypto 🔍 sale irs 🔍 tax brackets
Regulatory & Editorial Standards: Verified against official IRS bulletins, Federal Reserve statistical releases, CFPB disclosures, and standard actuarial mathematics. 100% Client-Side Sandbox execution guarantees confidential data never leaves your device.