Skip to main content
Public Desk

    Popular: W-9, W-4,1099-NEC, Paycheck calculator,Fill any PDF

    Capital Gains Tax Calculator (2026): Stocks, Crypto & Home Sale

    Estimate 2026 federal tax on short-term and long-term capital gains from stocks, ETFs, crypto, real estate, or a primary home sale — including exact IRS bracket stacking, the 3.8% NIIT, the $250,000/$500,000 home exclusion, and capital loss deductions.

    Last updated · Reviewed by the Public Desk Editorial Team

    1. Filing status & other income

    Wages, salary, freelance net profit and interest before deductions.

    2. Asset type & holding period

    What did you sell?
    How long did you hold the asset before selling?

    3. Cost basis & sale proceeds

    What you originally paid for the asset.

    Brokerage fees or capital home improvements (roof, addition, remodel).

    Total sale price before selling costs.

    Agent commissions, transfer taxes, legal or exchange fees.

    Assumptions

    • Federal income and Net Investment Income Tax for 2026 only; state and local capital gains taxes are not included.
    • Standard deductions used unless custom itemized deductions are selected: $16,100 single, $32,200 married filing jointly, $24,150 head of household, $16,100 married filing separately.
    • Assumes regular collectibles (28% max rate) and unrecaptured Section 1250 rental depreciation (25% max rate) do not apply, and ordinary income plus taxable gain equals modified AGI for Form 8960.
    • Nothing you enter leaves your browser or is saved.

    Not a government website. Not affiliated with the IRS, USCIS, or any government agency. For informational purposes only — not tax, legal, or immigration advice. Read the full disclaimer.

    Who should use this

    Estimate 2026 federal tax on short-term and long-term capital gains from stocks, ETFs, crypto, real estate, or a primary home sale — including exact IRS bracket stacking, the 3.8% NIIT, the $250,000/$500,000 home exclusion, and capital loss deductions.

    2026 long-term capital gains brackets by filing status

    When you hold an asset for more than 12 months before selling, your taxable gain stacks on top of your ordinary taxable income and runs through these 2026 IRS thresholds:

    RateSingleMarried filing jointlyHead of householdMarried filing separately
    0%$0 to $49,450$0 to $98,900$0 to $66,200$0 to $49,450
    15%$49,450 to $545,500$98,900 to $613,700$66,200 to $579,600$49,450 to $306,850
    20%Over $545,500Over $613,700Over $579,600Over $306,850

    In addition, if your modified AGI exceeds $200,000 ($250,000 married filing jointly, $125,000 married filing separately), up to 3.8% Net Investment Income Tax applies on top of your capital gains bracket.

    Worked examples

    Example 1 — Splitting a stock gain across the 0% and 15% brackets: A single filer earns $50,000 in wages and sells shares held over a year for a $30,000 gain (bought for $20,000, sold for $50,000). After the $16,100 standard deduction, ordinary taxable income is $33,900. That leaves $15,550 of room inside the 0% bracket (up to $49,450) taxed at $0, while the remaining $14,450 is taxed at 15% for a total capital gains tax of $2,167.50 (7.23% effective rate).

    Example 2 — Selling a primary home above the $500,000 exclusion: A married couple with $140,000 of salary sells their long-time main home for $950,000, paying $45,000 in agent commissions, with a $390,000 adjusted basis ($350,000 purchase plus $40,000 remodel). Their net gain is $515,000. Subtracting the $500,000 § 121 joint exclusion leaves $15,000 of taxable long-term gain, taxed at 15% ($2,250). Because their MAGI ($155,000) is below $250,000, NIIT is $0 and total federal tax on the sale is $2,250.

    Need to check your ordinary income rate or plan quarterly estimated payments after a large sale? See the federal tax bracket calculator and the quarterly estimated tax calculator.

    What this calculator does not cover

    • State and local capital gains or income taxes (most states with an income tax treat capital gains as ordinary income).
    • Special 28% maximum federal rate on collectibles (gold coins, art, antiques) or Section 1202 qualified small business stock (QSBS).
    • Unrecaptured Section 1250 depreciation recapture (up to 25%) when selling depreciated rental or commercial real estate, or Section 1031 like-kind exchanges.
    • Wash-sale disallowed losses (IRC § 1091) when repurchasing substantially identical stock or securities within 30 days before or after a loss sale.
    • Partial IRC § 121 home sale exclusions for work, health, or unforeseen-circumstance moves under two years.

    Frequently asked questions

    What are the long-term capital gains tax rates for 2026?

    For 2026, long-term capital gains (on assets held more than 12 months) are taxed at 0%, 15%, or 20% depending on your total taxable income. Single filers pay 0% up to $49,450 of taxable income, 15% up to $545,500, and 20% above $545,500. Married couples filing jointly pay 0% up to $98,900 and 15% up to $613,700.

    How does capital gains "stacking" work with my salary?

    Ordinary taxable income (wages and interest minus your standard or itemized deduction) fills the bottom of your income brackets first. Your long-term capital gain sits on top of that ordinary taxable income. If a single filer has $33,900 of ordinary taxable income, only the remaining $15,550 of room below $49,450 gets the 0% rate, and the rest of the gain spills into the 15% bracket.

    How are short-term capital gains taxed?

    If you hold stocks, crypto, or property for one year (12 months) or less before selling, your profit is a short-term capital gain. Short-term gains do not get the 0%/15%/20% rates — they are taxed at regular federal income tax rates (10% up to 37%) stacked on top of your other ordinary taxable income.

    When does the 3.8% Net Investment Income Tax (NIIT) apply?

    High earners owe an extra 3.8% Net Investment Income Tax (Form 8960) on the smaller of their net investment income or the amount by which their modified AGI exceeds $200,000 (single or head of household), $250,000 (married filing jointly), or $125,000 (married filing separately). Those thresholds are fixed by statute and are not indexed for inflation.

    How does the $250,000 / $500,000 home sale tax exclusion work?

    Under IRC § 121 (IRS Topic 701), if you owned and lived in the property as your main home for at least 2 years out of the 5 years before the sale, you can exclude up to $250,000 of capital gain ($500,000 if married filing jointly and both spouses meet the use test). Any gain above the exclusion is taxed as a capital gain, while a loss on a personal home is never deductible.

    How much of a capital loss can I deduct against my paycheck income?

    Capital losses first offset capital gains dollar for dollar. If your investment losses exceed your gains, you can deduct up to $3,000 ($1,500 if married filing separately) against ordinary income like wages each year, and carry any remaining loss forward indefinitely to future tax years.

    Are crypto sales and ETF trades taxed under the same rules as stocks?

    Yes. The IRS treats cryptocurrency and digital assets as property. Selling crypto for cash, swapping one token for another, or spending crypto with a gain triggers short-term or long-term capital gains tax under the exact same holding-period and bracket-stacking rules as stocks and ETFs.

    Official sources

    Every number on this page comes from the documents below. Last checked against them on .

    1. IRS Rev. Proc. 2025-32, § 4.03 (2026 maximum capital gains rate thresholds) — Internal Revenue Service2026 0%, 15%, and 20% long-term capital gains thresholds alongside ordinary brackets and standard deductions.
    2. IRS Topic No. 409, Capital gains and losses — Internal Revenue ServiceOne-year holding period rule, $3,000 ($1,500 MFS) net capital loss deduction cap, carryforward rules, and nondeductibility of personal-use property losses.
    3. IRS Topic No. 559, Net investment income tax — Internal Revenue Service3.8% Net Investment Income Tax calculation and the $200,000 / $250,000 / $125,000 MAGI thresholds.
    4. IRS Topic No. 701, Sale of your home — Internal Revenue ServiceIRC § 121 $250,000 / $500,000 main-home gain exclusion and the 2-out-of-5-years ownership and use tests.
    All calculators