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.
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
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
-
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
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.
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.
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.
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:
- Compute your regular taxable income (gross wages, business profits, interest) minus your deductions.
- Place your taxable ordinary income at the base of the statutory tax schedule.
- Stack your net long-term capital gains directly on top of your ordinary income.
- 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:
- Harvesting tax-free gains? Maximize bracket capacity with the 0% Capital Gains Harvesting Calculator.
- Managing repurchased shares? Track disallowed losses with the Wash-Sale Rule Calculator.
- Selling real estate property? Model the $500k primary home exclusion with the Home Sale Capital Gains Calculator.
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.