Investments & Banking TY2025–2027 Verified Free • Instant • Private

Capital Gains Tax Calculator (Stocks, Crypto, Assets)

Calculate federal capital gains tax on stock, crypto, and asset sales. Model 0%, 15%, and 20% brackets stacked with NIIT. Free · No sign-up · Private.

Last updated: November 12, 2026 • Rules verified for TY2025–2027 • Reviewed by Shehryar Khan, Lead Financial Systems Architect
✓
Statutory Compliance Verified: Rules verified for TY2025–2027 (IRC Title 26, SSA, DOL & CFPB Guidelines). Reviewed by Shehryar Khan, Lead Financial Systems Architect.
⚡ Quick Answer (2025/2026 Rule of Thumb)

The Capital Gains Tax Calculator computes federal and state taxes owed on individual capital asset sales, including stocks, bonds, mutual funds, exchange-traded funds (ETFs), cryptocurrency, and precious metals. Unlike simplistic calculators that assume all gains are taxed at a single flat percentage, this engine models the statutory stacking mechanism mandated by Internal Revenue Code (IRC) Section 1(h). Long-term capital gains are stacked on top of your ordinary taxable income, determining the exact portion of your gain that qualifies for the statutory 0%, 15%, or 20% federal brackets, while evaluating liability for the 3.8% Net Investment Income Tax (NIIT under IRC § 1411).

Scenario Parameters

$
$
$
%
Total Realized Capital Gain
$0
Proceeds minus purchase cost basis
Federal Capital Gains Tax
$0
Stacked on top of ordinary income
3.8% NIIT Surtax
$0
Net Investment Income Tax (IRC § 1411)
State Capital Gains Tax
$0
State income tax on realized gain
Net After-Tax Proceeds
$0
Total cash retained from asset sale

Financial Scenario Breakdown

How the Capital Gains Tax Calculator 2025-2026 | US Tax Suite Works: Plain-English US Tax Guide

The calculator computes your gross proceeds, cost basis, and total capital gain or loss. For assets held one year or less, gains are treated as short-term and taxed at ordinary income tax rates (up to 37%). For assets held greater than one year, the engine stacks the long-term capital gain on top of your ordinary taxable income. It measures your income against the 2025 and 2026 statutory capital gains rate thresholds ($48,350 / $96,700 for 0%; $533,400 / $600,050 for 15%; remaining at 20%). It then computes your Modified Adjusted Gross Income (MAGI) against the $200,000 (Single) or $250,000 (MFJ) threshold to calculate any 3.8% NIIT surtax, combines state capital gains taxes, and displays your net after-tax cash proceeds.

Case Study: Single Investor Selling $60,000 in Stock with $35,000 Ordinary Income

"Jordan is a single taxpayer with $35,000 in ordinary taxable wages in 2025. Jordan sells shares of index funds held for 4 years, realizing a $60,000 long-term capital gain. Jordan wants to know exact taxes under the statutory stacking rule."
  • 1
    Ordinary Taxable Income: $35,000
  • 2
    2025 Statutory 0% Capital Gains Ceiling (Single): $48,350
  • 3
    Capacity Remaining in 0% Bracket ($48,350 - $35,000): $13,350
  • 4
    Total Realized Long-Term Capital Gain: $60,000
  • 5
    Portion of Gain Taxed at 0% (Tax-Free): $13,350 ($0 tax)
  • 6
    Portion of Gain Taxed at 15% ($60,000 - $13,350): $46,650
  • 7
    Federal Capital Gains Tax (15% on $46,650): $6,997.50
  • 8
    Portion Taxed at 20% Bracket: $0 (Income under $533,400)
  • 9
    Net Investment Income Tax (3.8% over $200k MAGI): $0 (MAGI $95k < $200k)
  • 10
    Total Federal Tax on Sale: $6,997.50
  • 11
    Effective Capital Gains Tax Rate: 11.66%
  • 12
    Net After-Tax Proceeds from Capital Gain: $53,002.50
  • 13
    Key Takeaway: Because Jordan's ordinary income was $35,000, the first $13,350 of Jordan's capital gain was 100% tax-free in the 0% federal bracket. Only the remaining $46,650 was taxed at 15%, reducing Jordan's effective federal capital gains rate to just 11.66%.

Key 2025 / 2026 Statutory Thresholds & IRS Rules

Statutory Provision / Rule 2025 / 2026 Benchmark Impact on US Taxpayers
Holding Period Threshold 1 Year and 1 Day Assets held 365 days or less are short-term (taxed as ordinary income); assets held >365 days are long-term.
0% Long-Term Capital Gains Bracket Up to $48,350 Single / $96,700 MFJ Long-term gains falling within this taxable income window are completely exempt from federal income tax.
15% Capital Gains Bracket Up to $533,400 Single / $600,050 MFJ The core capital gains tax bracket for the vast majority of middle- and upper-middle-class investors.
20% Top Capital Gains Bracket Over $533,400 Single / $600,050 MFJ Statutory top rate on high-income filers, creating a 23.8% federal rate when combined with NIIT.
Net Investment Income Tax (NIIT) 3.8% over MAGI Threshold Applies to net investment income for filers with MAGI over $200k (Single) or $250k (MFJ).
$3,000 Annual Net Capital Loss Limit IRC § 1211(b) Net capital losses offset capital gains dollar-for-dollar; excess net loss offsets up to $3,000 of ordinary income.

Costly Mistakes & IRS Tax Traps to Avoid

⚠️
Assuming Long-Term Gains Have Their Own Independent Brackets

Capital gains brackets stack on top of ordinary income. If you earn $100k in salary, zero dollars of your capital gain qualify for the 0% bracket.

⚠️
Forgetting the 3.8% NIIT Surtax

Realizing a massive capital gain can push your MAGI over $200k/$250k, triggering a surprise 3.8% surtax on top of your 15% or 20% rate.

⚠️
Ignoring State Capital Gains Taxes

Most states (e.g. California at up to 13.3%, New York at up to 10.9%) tax capital gains as ordinary income with zero preferential discount.

⚠️
Selling at a Gain Within 30 Days of a Loss

Violating the wash-sale rule on replacement shares disallows loss deductions and adjusts stock cost basis.

Statutory Capital Gains Rate Schedules: 2025 and 2026

Under IRC Section 1(h), long-term capital gains and qualified dividends benefit from preferential statutory tax rates. These brackets are indexed annually for inflation pursuant to IRS Revenue Procedure 2024-40:

Filing Status 0% Tax Rate Ceiling 15% Tax Rate Window 20% Tax Rate Ceiling
Single $0 to $48,350 $48,350 to $533,400 Over $533,400
Married Filing Jointly $0 to $96,700 $96,700 to $600,050 Over $600,050
Head of Household $0 to $64,850 $64,850 to $566,700 Over $566,700
Married Filing Separately $0 to $48,350 $48,350 to $300,025 Over $300,025

The Mechanics of the Ordinary Income Stacking Rule

The cardinal rule of capital gains taxation is that ordinary taxable income consumes bracket space first. To compute your capital gains tax:

  1. Compute your regular taxable income (gross wages, business profits, interest) minus your deductions.
  2. Place your taxable ordinary income at the base of the statutory tax schedule.
  3. Stack your net long-term capital gains directly on top of your ordinary income.
  4. Apply the 0%, 15%, or 20% rate depending on which threshold segments the capital gains occupy.

Capital Assets & Trading Tax Suite

Explore specialized modules for managing investment taxation:

Statutory Audit Trail & Policy Context

Calculation Step / IRC Statutory Line Amount ($) Tax Policy Authority & Notes

Federal Preemption & Multi-State Application

This calculator operates under federal IRS statutory guidelines (Internal Revenue Code). Federal rules apply uniformly across all 50 states, while local modifications (such as state income tax deductions or exemptions) are reflected in the net take-home and audit trail calculations.

IRC § 1(h)
Maximum Capital Gains Rate Brackets (0%, 15%, 20%)
Establishes preferential statutory tax brackets for net long-term capital gains and qualified dividends.
Verify Official Statute / Form →
IRC § 1222
Holding Period Rules for Capital Assets
Defines short-term capital gains (assets held 1 year or less) versus long-term capital gains (held greater than 1 year).
Verify Official Statute / Form →
IRC § 1411
Net Investment Income Tax (3.8% Surtax)
Imposes a 3.8% surtax on net investment income for filers exceeding $200,000 (Single) or $250,000 (MFJ) MAGI.
Verify Official Statute / Form →

Frequently Asked Questions

For 2025, long-term capital gains rates are 0% for taxable income up to $48,350 (Single) / $96,700 (MFJ); 15% up to $533,400 (Single) / $600,050 (MFJ); and 20% on any gain exceeding those thresholds.
Ordinary income occupies your lower tax brackets first. Long-term capital gains are stacked directly on top of ordinary income, determining which capital gains rate tier applies to each slice of your gain.
Assets held for 365 days or less produce short-term capital gains taxed at ordinary income tax rates (up to 37%). Assets held for longer than one year qualify for preferential 0%, 15%, or 20% long-term rates.
Under IRC § 1411, high-income taxpayers pay an additional 3.8% tax on net investment income (including capital gains) if Modified AGI exceeds $200,000 for single filers or $250,000 for married filing jointly.
Capital losses offset capital gains dollar-for-dollar without limit. If net losses exceed gains, you can deduct up to $3,000 against ordinary income per year, carrying over unused losses indefinitely.
The IRS treats cryptocurrency as property under Notice 2014-21. Selling crypto for cash, swapping one coin for another, or spending crypto triggers taxable capital gains or deductible losses.
Most states tax capital gains at regular ordinary income tax rates (ranging from 0% in tax-free states to 13.3% in California), with very few states offering preferential long-term discount rates.
Cost basis equals purchase price plus brokerage commissions. If shares were bought in lots over time, you can use First-In-First-Out (FIFO), Specific Identification (Spec ID), or Average Cost.