Skip to content
Personal Finance · Updated June 21, 2026

Capital Gains Tax 2026: Short-Term vs Long-Term + Harvesting

A complete walkthrough of the 2026 capital-gains tax bill — federal brackets, the NIIT layer, state add-ons, and the harvesting moves that actually shrink the check. With worked examples for the three taxpayer profiles where the difference matters most.

Hold a stock for 365 days and you pay one capital-gains rate. Hold it for 366 days and you pay another. The spread between those two numbers is the largest single tax-planning lever most retail investors have access to, and almost every meaningful 2026 capital-gains question turns out to be a function of three layers stacked on top of it: the federal long-term schedule, the 3.8% Net Investment Income Tax, and whatever your state takes on top.

This guide walks through the whole stack — the 2026 brackets verified against IRS Revenue Procedure 2025-32,[1] the mechanic that makes a long-term gain "stack" onto ordinary income rather than replace it, the NIIT trigger most calculators omit, the state surcharges that flip the answer in California and Washington, and the seven categories of assets that do not follow the standard 0/15/20 rule. We close with a tax-loss harvesting playbook that explains exactly when selling at a loss is worth doing, when the wash-sale rule wipes out your win, and how to think about the $3,000 ordinary-income offset most people leave on the table.

📊

Estimate your 2026 capital-gains bill

Free calculator — short-term vs long-term, with 0/15/20% bracket stacking, NIIT, and standard deduction built in.

Open calculator →

Why the holding period is the single biggest lever

Federal tax treats short-term and long-term capital gains as two entirely different beasts. A short-term capital gain — profit on an asset held 12 months or less — is taxed as ordinary income at your marginal rate. That rate can run as high as 37% federal for 2026 income above $640,600 single or $768,700 married filing jointly.[2] A long-term capital gain — profit on an asset held more than 12 months — is taxed on a separate, parallel rate schedule of 0%, 15%, or 20%.

That parallel schedule is the entire game. The top long-term rate is 20%. The top short-term rate is 37%. For a high-bracket filer, the difference between selling on day 365 versus day 366 is a 17 percentage-point swing — on a $100,000 gain, that's $17,000.

The exact 366-day threshold is the IRC §1222 definition: long-term means held for "more than one year," which the IRS has interpreted as a holding period beginning the day after acquisition and counting through the day of sale. A share bought on March 14, 2025 is long-term if sold on March 15, 2026 or later.[3] Get the calendar wrong by 24 hours and you've added 17 points to your federal rate on the gain.

The one-line takeaway

Short-term capital gains use your ordinary-income bracket (10% to 37% federal in 2026). Long-term gains use a separate 0/15/20% schedule. The 12-month-and-a-day threshold is the single highest-leverage date in the entire individual tax code for active investors.

The 2026 federal brackets in one table

Here are the long-term capital-gains brackets for tax year 2026 per IRS Revenue Procedure 2025-32, published October 9, 2025.[1] The thresholds apply to your taxable income (gross income minus the standard deduction or itemized deductions), with the long-term gain stacked on top of your ordinary income.

Filing status0% bracket up to15% bracket up to20% above
Single$49,450$545,500$545,500
Married filing jointly$98,900$613,700$613,700
Married filing separately$49,450$306,850$306,850
Head of household$66,200$579,600$579,600

For the returns being filed this spring (tax year 2025), the brackets per Revenue Procedure 2024-40 are slightly lower:[4]

Filing status (TY2025)0% bracket up to15% bracket up to20% above
Single$48,350$533,400$533,400
Married filing jointly$96,700$600,050$600,050
Married filing separately$48,350$300,000$300,000
Head of household$64,750$566,700$566,700

The TY2026 brackets are roughly 2.3% higher than TY2025 — the smallest annual inflation adjustment in five years, reflecting the cooling CPI-U readings the Treasury used to compute the cost-of-living adjustment.[1]

The 2026 standard deductions are $15,750 (single and MFS), $31,500 (MFJ), and $23,625 (HoH).[1] Those numbers come off your gross income before the bracket lookup. A single filer with $60,000 of wages and a $40,000 long-term gain has taxable income of $60,000 − $15,750 + $40,000 = $84,250 — the wage portion ($44,250) sits below the $49,450 threshold and the entire long-term gain stacks on top, with the first $5,200 in the 0% band and the remaining $34,800 in the 15% band.

The stacking mechanic that confuses everyone

Here is the single most-misunderstood mechanic in the entire long-term capital-gains regime. The 0/15/20% brackets do not apply to your gain in isolation. They apply to your gain after stacking it on top of your ordinary taxable income. The ordinary-income piece eats into your 0% and 15% band capacity before the gain gets a turn.

The IRS implements this through the Schedule D Tax Worksheet (Pub 550, Worksheet 2). The arithmetic is straightforward once you see it.

total taxable income = ordinary_taxable + long_term_gain

Walk through the bands in order:

  1. If your ordinary_taxable already exceeds the 0% threshold ($49,450 single TY2026), no part of your gain qualifies for the 0% band.
  2. If ordinary_taxable is below the 0% threshold, the difference is your 0%-band capacity — gain up to that amount is taxed at 0%.
  3. The next slice of gain — up through the 15% threshold ($545,500 single TY2026) minus your ordinary_taxable — is taxed at 15%.
  4. Any remaining gain above the 15% threshold is taxed at 20%.

An example makes it concrete. A single filer with $370,000 of ordinary taxable income realizes a $300,000 long-term capital gain. Their total taxable income is $670,000. Walking the bands:

  • 0% band: $49,450 − $370,000 = negative, so $0 of gain at 0%.
  • 15% band: $545,500 − $370,000 = $175,500 of remaining capacity. The first $175,500 of the gain is taxed at 15% = $26,325.
  • 20% band: the remaining $300,000 − $175,500 = $124,500 is taxed at 20% = $24,900.
  • Federal long-term capital gains tax: $51,225.

This stacking rule has a powerful corollary for low-income retirees. A married couple filing jointly with $40,000 of Social Security and pension income (after the standard deduction, roughly $8,500 of taxable income) can realize up to $90,400 of long-term capital gains and pay zero federal tax on the gain — because the entire gain stays within the $98,900 MFJ 0% threshold.[5] Strategically realizing gains in low-income years is one of the most-overlooked tools in the FIRE and early-retirement playbook.

The "zero-percent harvest"

Anyone with taxable income below the 0% threshold for their filing status can sell appreciated long-held securities, pay no federal tax on the gain, and immediately repurchase the same security to reset cost basis higher. The wash-sale rule under IRC §1091 only disallows losses, not gains — so a gain harvest is fully effective the same day.

The 3.8% NIIT layer almost every calculator forgets

Stack a second federal layer on top of the 0/15/20% schedule and the effective top rate stops being 20%. Under IRC §1411, the Net Investment Income Tax (NIIT) adds 3.8% to net investment income — including all capital gains, interest, dividends, royalties, and net rental income — when your Modified Adjusted Gross Income (MAGI) crosses a threshold:[6]

Filing statusMAGI threshold
Single$200,000
Head of household$200,000
Married filing jointly$250,000
Married filing separately$125,000

Critically, these thresholds are not indexed for inflation. They were set in 2013 by the Affordable Care Act and have remained at the same nominal dollar figures for the thirteen tax years since. With wages up roughly 35% over that window, the share of households caught by the NIIT keeps expanding — the Treasury's own SOI tables show NIIT collections rising every year even when the underlying capital-gains tax base is flat.[7]

The 3.8% applies to the lesser of (a) your net investment income or (b) the amount by which MAGI exceeds the threshold. So a single filer with $190,000 of wages and a $50,000 long-term gain has MAGI of $240,000 — that's $40,000 above the $200,000 trigger. NIIT applies to min($50,000, $40,000) = $40,000, costing $1,520. The full $50,000 gain is taxed at 15% federal LTCG ($7,500) plus $1,520 NIIT = $9,020. The effective combined federal rate on the gain is 18.04%.

For a top-bracket filer with MAGI far above the threshold, every dollar of long-term gain in the 20% bracket also gets the 3.8% layer for a combined federal rate of 23.8% — the headline number to use when comparing long-term gains against ordinary income for high earners, not the 20% the IRS rate table shows.[6]

The threshold trap

A single filer with $195,000 of W-2 income and no capital gains pays no NIIT. The same filer who realizes a $20,000 long-term gain mid-year now has MAGI of $215,000 — pushing them $15,000 over the threshold, triggering 3.8% NIIT on $15,000 = $570. The gain itself only adds $570 of NIIT, but if they had been at $250,000 of wages with no investment income, the same $20,000 gain would have triggered $760 of NIIT (the full gain caught above the threshold). MAGI proximity to the trigger matters as much as gain size.

State capital gains tax: the third layer

Federal is only one piece. State income tax stacks on top, and most states tax capital gains at the same rate as ordinary income — they do not honor the federal short-term-vs-long-term distinction.[8] Here are the highest-stakes states for a $100,000 long-term capital gain in 2026:

StateTop capital-gains rate 2026State tax on $100K LTCG
California13.3% (no LTCG preference)$13,300
New York10.9%$10,900
New Jersey10.75%$10,750
Hawaii7.25% on LTCG (preferential)$7,250
Oregon9.9%$9,900
Minnesota9.85%$9,850
Massachusetts5% LTCG / 8.5% STCG$5,000 LT / $8,500 ST
Washington7% on LTCG above $270K (stocks/bonds only)$0 if < $270K
Texas, Florida, NV, TN, SD, WY, AK, NH0%$0

The standouts are California, which taxes every dollar of capital gain at the same top 13.3% as wage income (no preferential treatment); Hawaii, which has a separate 7.25% cap on long-term gains that runs below its 11% top wage rate; Massachusetts, which inverts the federal logic by taxing short-term gains higher (8.5%) than long-term (5%); and Washington, where the 2022 voter-approved 7% standalone capital-gains tax now applies to long-term gains above a $270,000 standard deduction (indexed for 2026).[9]

For a California resident in the top bracket selling a $100,000 long-term gain at the 20% federal LTCG + 3.8% NIIT + 13.3% state rate, the combined effective rate is 37.1% — almost the same as the top federal ordinary rate. The often-quoted "long-term gains get taxed at 20%" is wrong by a factor of two in coastal high-tax states.

🧮

Run the full federal stack

Our calculator handles 0/15/20% bracket stacking + NIIT + standard deduction for all four filing statuses.

Calculate →

The seven categories that don't follow the 0/15/20 rule

Long-term capital gains on stocks, bonds, and most ETFs follow the 0/15/20% schedule. Seven categories of assets do not. Knowing which bucket your asset sits in matters more than the bracket math for most filers selling something unusual.

1. Collectibles — 28% maximum

Under IRC §1(h)(4), gains on collectibles held more than one year are taxed at a maximum rate of 28%, not 20%. IRC §408(m)(2) defines "collectible" broadly: works of art, rugs and antiques, gems, stamps, coins, alcoholic beverages, and most precious metals. The collectibles bucket is the one piece of the long-term schedule where holding longer actually raises your maximum rate above the standard 20% — and physical gold and silver fall under it.[10]

The 28% maximum doesn't replace the 0/15/20 schedule for filers in lower brackets. A taxpayer in the 12% ordinary bracket still pays 12% on a collectible gain. The 28% acts as a ceiling, kicking in only when your ordinary rate would have crossed above 28%.

2. Section 1250 unrecaptured depreciation — 25%

Sell a residential rental property after taking depreciation deductions and the recaptured depreciation portion is taxed at up to 25% under IRC §1(h)(6). The remaining gain — appreciation above the original cost basis — follows the standard 0/15/20% schedule. This is why rental real estate dispositions almost always produce two layers of gain on Form 4797: §1250 recapture at up to 25%, and post-depreciation appreciation at LTCG rates.[11]

3. Qualified Small Business Stock — up to 100% exclusion

Under IRC §1202, gains on Qualified Small Business Stock (QSBS) held more than five years can be partially or fully excluded from federal tax. For QSBS acquired after September 27, 2010, the exclusion is 100% — meaning the founder of a venture-backed startup who held common stock for five-plus years can sell up to the greater of $10 million or 10× basis with zero federal tax on the gain. The exclusion is the cornerstone of Silicon Valley tax planning and the rules around qualifying issuer (≤$50M gross assets at issuance, active business in a non-exempt industry) are technical but well-documented.[12]

4. Cost basis step-up at death — 100% exclusion of lifetime appreciation

Under IRC §1014, when an asset is inherited, its basis is generally reset to the fair market value on the date of the original owner's death.[13] A stock bought for $20,000 forty years ago and worth $500,000 at the original owner's death has a $480,000 unrealized gain that simply disappears for income-tax purposes. The heir's basis is $500,000; only post-death appreciation triggers capital gains tax when the heir eventually sells.

This is the single largest unrealized-gain wash in the U.S. tax code. It is the reason "die with appreciated assets, don't sell" is the default estate-planning advice for elderly clients with concentrated low-basis holdings.

5. Primary residence — §121 exclusion up to $500K

Under IRC §121, a homeowner can exclude up to $250,000 ($500,000 MFJ) of gain on the sale of a primary residence, provided they owned and used the home as their primary residence for at least two of the five years before sale. The exclusion can only be claimed once every two years, and partial exclusions apply if the sale is forced by employment relocation, health, or "unforeseen circumstances."[14] Gain above the exclusion is taxed at long-term capital gains rates.

For couples in expensive coastal markets, the $500,000 MFJ cap — unchanged since 1997, not indexed for inflation — has become a real constraint. A Bay Area home bought for $400,000 in 2005 and sold for $1,700,000 in 2026 has $1,300,000 of gain; $500,000 is excluded and $800,000 is fully taxable at LTCG plus NIIT plus California's 13.3%.

6. Like-kind exchanges — IRC §1031, real estate only

IRC §1031 allows deferral (not elimination) of capital gain on the exchange of one piece of real estate for "like-kind" real estate, provided strict identification and closing deadlines are met. The 2017 Tax Cuts and Jobs Act removed personal property (vehicles, equipment, art) from §1031 eligibility — only real estate qualifies today.[15] A successful §1031 exchange defers the gain into the replacement property's basis; the gain is recognized only when the replacement property is sold without another §1031.

7. Qualified Opportunity Zones — IRC §1400Z-2

Under IRC §1400Z-2 (created by TCJA 2017 and modified by subsequent regulations), a taxpayer who reinvests an eligible capital gain into a Qualified Opportunity Fund (QOF) within 180 days can defer recognition of that gain through 2026 (the program's terminal year for new investments) and permanently exclude any appreciation in the QOF if held for ten years.[16] The program is the most significant new capital-gains-deferral vehicle introduced this century, though its complexity and the narrow qualifying-zone geography limit practical use to relatively sophisticated investors.

Tax-loss harvesting: the actual playbook

Tax-loss harvesting is the deliberate sale of securities at a loss to offset capital gains realized elsewhere in the same tax year. Done well, it reduces a $20,000 gain to a $5,000 gain and saves real money. Done badly, it triggers the wash-sale rule and the loss is permanently disallowed.

The IRC §1211(b) offset hierarchy

Capital losses are netted against capital gains in a specific order:[17]

  1. Short-term losses first offset short-term gains dollar-for-dollar.
  2. Long-term losses first offset long-term gains dollar-for-dollar.
  3. If one category is net-negative and the other is net-positive, the categories cross to net out the net-negative.
  4. If total net losses still exist, up to $3,000 ($1,500 if MFS) offsets ordinary income that year.
  5. Anything beyond $3,000 carries forward to next year indefinitely — same rules apply when used.

This hierarchy is the load-bearing structure of tax-loss harvesting. You generally want to harvest short-term losses when you have short-term gains (offsetting the more expensive tax) and long-term losses when you have long-term gains (preserving short-term capacity). The categorization matters because of the rate spread — using a short-term loss against a long-term gain wastes 17 percentage points of offset capacity.

The wash-sale rule

Under IRC §1091, if you sell a security at a loss and buy a "substantially identical" security within 30 days before or 30 days after the sale, the loss is disallowed and the disallowed loss adds to the basis of the replacement security.[18] The disallowance is permanent for the current year — the basis adjustment defers (but does not eliminate) the loss until the replacement security is eventually sold.

"Substantially identical" has been interpreted narrowly in practice. Selling VTI (Vanguard Total Stock Market ETF) and buying ITOT (iShares Total US Stock Market) is generally accepted as different securities by tax practitioners despite tracking the same index. Selling VFIAX (Vanguard 500 Index Mutual Fund) and buying VOO (Vanguard 500 Index ETF) is widely treated as substantially identical because both track the literal same index from the same issuer. The IRS has never published bright-line rules, so the cautious move is to swap into a different index family entirely.

The wash-sale rule applies across your accounts. A loss in your taxable brokerage that gets re-bought inside your IRA within the 30-day window is also disallowed — and the basis adjustment is lost because IRAs have no cost basis. The IRA wash-sale trap is the single most expensive mistake in retail tax-loss harvesting.[19]

The $3,000 ordinary-income offset

Net capital losses up to $3,000 ($1,500 MFS) offset ordinary income each year under IRC §1211(b). For a filer in the 24% federal bracket, this is $720 of annual federal tax savings on top of any cap-gains offset. State tax savings stack on top — another $400 in California, $300 in New York.

The strategic implication: if you have net losses pushing toward $3,000 in any given year but no offsetting gains, realize the loss to capture the ordinary-income offset. The remainder carries forward; you do not lose the future capacity.

The harvesting decision tree

(1) Net short-term losses against short-term gains first. (2) Net long-term losses against long-term gains. (3) If total net losses remain, take the $3,000 ordinary-income offset and carry forward the rest. (4) Always wait 31 days before re-buying the same security, or buy a non-substantially-identical alternative. (5) Never re-buy in an IRA during the wash window.

Three case studies with the math

Case 1: The mid-career index investor

Anika, 38, is a software engineer in Austin (Texas — no state income tax). 2026 W-2 income: $185,000. During the March 2026 correction she sold three positions for losses totaling $14,000 (all long-term) and one position for a $9,000 short-term gain. In December she sold a winning position for $35,000 of long-term gain.

The Schedule D math:

  • Short-term: $9,000 gain, $0 losses → net $9,000 short-term gain.
  • Long-term: $35,000 gain, $14,000 losses → net $21,000 long-term gain.
  • Total net capital gains: $30,000.

The federal bill: $9,000 STCG stacks on her $185,000 W-2 income (in the 24% bracket) — federal tax on the STCG is roughly $2,160. The $21,000 LTCG stacks on top of $194,000 of ordinary taxable income (above the $49,450 0% threshold and below the $545,500 15% threshold) — taxed at 15% = $3,150. MAGI ≈ $215,000, which exceeds the $200,000 NIIT threshold by $15,000; NIIT applies to min($30,000, $15,000) = $15,000, costing $570. Total federal capital-gains-related tax: $5,880. Texas state tax: $0.

The lesson: harvesting the $14,000 of long-term losses in March against the $35,000 long-term gain in December saved her $14,000 × (15% LTCG + 3.8% NIIT) = $2,632 of federal tax. The losses were "free" tax savings — she would have sold the depreciated positions eventually anyway.

Case 2: The high-income tech founder selling QSBS

Marcus, 44, co-founded a SaaS company in San Francisco in 2018. In 2026 the company is acquired for $80 million; Marcus's 12% stake produces $9.6 million of gain on common stock he has held for 8 years. The shares qualify as Qualified Small Business Stock under IRC §1202 (the company had under $50M of gross assets at issuance and is in a qualifying industry).

Without QSBS treatment: $9.6M × (20% federal LTCG + 3.8% NIIT + 13.3% California) = $9.6M × 37.1% = roughly $3.56M in tax.

With QSBS: under §1202, Marcus excludes the greater of $10M or 10× basis. With basis near zero, the $10M cap dominates. The entire $9.6M gain is excluded from federal income tax, federal NIIT, and California income tax (California conforms to §1202 for stock acquired after 2008, with some technical caveats).[12] Total tax: approximately $0.

The lesson: for venture-backed founders and early employees who acquired stock when the company was small, §1202 is the largest single tax break in the U.S. code. Failing to track the QSBS holding period and the qualifying-issuer status loses millions. Marcus's $3.56M tax savings is what makes the difference between "comfortable" and "set for life" outcomes.

Case 3: The retiree managing the 0% bracket

Eleanor and Frank, both 68, are five years into retirement in Phoenix, AZ. Their 2026 income mix: $36,000 Social Security (15% taxable under IRC §86 because their provisional income is in the lower phase-in range) + $24,000 pension + $18,000 traditional IRA RMD = $47,400 of ordinary taxable income. Standard deduction (MFJ + two over-65 = $31,500 + $3,200 = $34,700). Their ordinary taxable income drops to $12,700.

That leaves them with $98,900 − $12,700 = $86,200 of room in the 0% LTCG bracket. They have $400,000 of appreciated mutual funds in their taxable brokerage with a $250,000 cost basis (i.e., $150,000 of unrealized gain).

Strategy: sell enough fund shares to realize $86,200 of long-term capital gain. Federal tax on the gain: $0. Arizona conforms to federal capital-gains treatment with a 25% subtraction for LTCG from in-state assets — their state tax on the harvested gain is roughly $1,300. They immediately rebuy the same fund shares (no wash-sale rule on gains), resetting their cost basis $86,200 higher.

Over a ten-year period of repeated annual gain harvests at the 0% bracket, they can wash $862,000 of unrealized appreciation through the 0% bracket — $172,000 of federal tax savings versus realizing the same gain in a single $400,000 transaction at the 15% rate.

The lesson: the 0% LTCG bracket is the most under-utilized planning lever for low-income retirees. Anyone with taxable income below the threshold for their filing status should systematically realize gains every year. The wash-sale rule does not apply to gains.

Five traps that catch capital-gains filers

1. The dividend reinvestment wash-sale trap

If you sell a stock at a loss and your dividend reinvestment plan automatically buys new shares of the same stock within 30 days, the wash-sale rule disallows your loss on the corresponding number of shares. Most brokerages do not auto-detect this — it shows up as a surprise on your 1099-B. Turn off DRIP on any holding you may harvest, or sell after the most recent dividend date with the next dividend more than 30 days out.

2. Mutual fund year-end distributions

Actively managed mutual funds make capital-gain distributions to shareholders in December based on the fund's own internal trading activity during the year. A new investor who buys the fund on December 15 and receives a December 22 distribution will pay tax on a gain they never economically earned. Check the fund's "estimated capital gain distribution" disclosures before buying anywhere in October–December.[20]

3. The state-residency timing mistake

Capital gains are sourced to the state of residence on the date of the sale, not the date the asset was purchased. A California resident who moves to Texas in October and sells in November can have the gain sourced to Texas (zero state tax). The reverse — selling in California before a planned year-end move to Texas — wastes the move. Coordinate large-gain timing with residency change dates if you are moving across a tax border.

4. The §121 home-sale 2-of-5 ownership rule

Convert a primary residence to a rental, hold it as a rental for more than three years, and you lose the §121 home-sale exclusion entirely — you no longer meet the "owned and used as primary residence for 2 of last 5 years" test. The conversion has to be reversed for at least the 24 months before sale to re-qualify. Many landlords lose six-figure exclusions to this technicality.

5. The estimated-tax penalty surprise

A large mid-year capital gain often triggers an underpayment penalty under IRC §6654 because your W-2 withholding alone no longer covers 90% of the year's expected tax. The safe harbor is 100% of last year's total tax (110% if last year's AGI exceeded $150,000).[21] If you realize a major gain in Q2 or later, make a Form 1040-ES payment by the quarterly deadline following the sale.

An action checklist for this week

  1. Pull a year-to-date Schedule D draft from your brokerage. Most major platforms (Fidelity, Schwab, Vanguard) offer a "tax lots" or "year-to-date realized gain/loss" report. This is your starting position for any further trades.
  2. Identify any positions that will cross the long-term threshold within 30 days. If holding 30 more days converts a short-term gain into a long-term gain, the federal tax savings of up to 17 percentage points almost always justifies the delay. Mark the calendar.
  3. If you have realized gains and unrealized losses, harvest the losses. The offset hierarchy under IRC §1211(b) gives you up to a one-for-one offset of gains, plus $3,000 of ordinary-income offset per year. Even small losses ($500–$1,000) are worth taking before December 31.
  4. If your taxable income is below the 0% LTCG threshold, harvest gains. Single filers under $49,450 (TY2026), MFJ under $98,900. Sell appreciated long-held positions, pay $0 federal tax, immediately rebuy to reset basis higher. The wash-sale rule does not apply to gains.
  5. Compute your year-end MAGI and check NIIT proximity. If you are within $20,000 of the $200K single or $250K MFJ threshold, defer any optional gains to next year to avoid the 3.8% layer.
  6. Audit your DRIP settings. Turn off dividend reinvestment on any holding you might harvest. Reinvestment within 30 days of a loss sale triggers the wash-sale rule.
  7. If you sold real estate or a business, file Form 8949 + Schedule D early. Large gains attract IRS attention; clean reporting with full documentation prevents desk audits.
  8. Plug your numbers into the CalcLeap capital-gains calculator. Confirm the federal stack (bracket + NIIT) matches what your brokerage's tax-planning tool projects.

Frequently asked questions

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

A short-term capital gain is profit on an asset held 12 months or less. A long-term capital gain is profit on an asset held more than 12 months. Short-term gains are taxed as ordinary income at your marginal rate, which can run from 10% to 37% federal in 2026. Long-term gains use a separate preferential schedule of 0%, 15%, or 20%. For a single filer with $100,000 of other income, a $25,000 short-term gain triggers about $5,633 in federal tax, while the same gain held more than a year triggers $3,750 — a $1,883 difference for waiting one extra day.

What are the 2026 long-term capital gains tax brackets?

Per IRS Revenue Procedure 2025-32, the 2026 long-term capital gains brackets are: Single filers — 0% up to $49,450, 15% up to $545,500, 20% above; Married filing jointly — 0% up to $98,900, 15% up to $613,700, 20% above; Married filing separately — 0% up to $49,450, 15% up to $306,850, 20% above; Head of household — 0% up to $66,200, 15% up to $579,600, 20% above. These thresholds apply to taxable income, with the LTCG amount stacked on top of ordinary income.

How does the 3.8% Net Investment Income Tax (NIIT) work?

The NIIT under IRC §1411 adds 3.8% to net investment income — including capital gains, interest, dividends, and rental income — when Modified Adjusted Gross Income (MAGI) exceeds $200,000 for single filers, $250,000 for married filing jointly, or $125,000 for married filing separately. The 3.8% applies to the lesser of your net investment income or the amount by which MAGI exceeds the threshold. Because these thresholds are not indexed for inflation, the share of taxpayers caught by the NIIT grows every year. The effective top federal rate on long-term capital gains is therefore 23.8%, not 20%.

What is tax-loss harvesting and how does it work?

Tax-loss harvesting is the practice of selling securities at a loss to offset gains realized elsewhere in the same tax year. Under IRC §1211(b), capital losses first offset capital gains dollar-for-dollar (short-term losses offset short-term gains first, then long-term losses offset long-term gains; net losses then cross categories). Any remaining net loss can offset up to $3,000 of ordinary income per year, with the excess carried forward indefinitely. The wash-sale rule under IRC §1091 disallows the loss if you buy a substantially identical security within 30 days before or after the sale.

Do I have to pay state tax on capital gains in 2026?

It depends on your state. Most states tax capital gains as ordinary income at the same rate as wages — California taxes them up to 13.3%, New York up to 10.9%, New Jersey up to 10.75%. Nine states have no state income tax (Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, Washington for ordinary wages, and Wyoming). Washington enacted a 7% standalone tax on long-term capital gains above $270,000 in 2025 indexed for 2026, and Massachusetts taxes short-term gains at 8.5% versus 5% on long-term gains.

How does the home-sale exclusion work?

Under IRC §121, a single filer can exclude up to $250,000 of gain ($500,000 for married filing jointly) on the sale of a primary residence, provided you owned and used the home as your primary residence for at least two of the five years before the sale. The exclusion can only be used once every two years. There is no age requirement (the rule that previously applied only to homeowners over 55 was eliminated by the Taxpayer Relief Act of 1997). Gain above the exclusion is taxed as long-term capital gain if you owned the home more than one year.

What is the cost basis step-up at death?

Under IRC §1014, when an asset is inherited, its cost basis is generally reset to the fair market value on the date of the original owner's death. This means appreciated assets passed to heirs avoid capital gains tax on all appreciation that occurred during the original owner's lifetime. A stock bought for $20,000 that grew to $500,000 over forty years has a $480,000 unrealized gain that disappears for tax purposes when inherited. The heir's basis is $500,000; only post-death appreciation triggers tax.

Are collectibles and crypto taxed differently from stocks?

Collectibles — defined in IRC §408(m)(2) to include art, antiques, gems, stamps, coins, and most precious metals — are subject to a maximum 28% long-term capital gains rate under IRC §1(h)(4) rather than the 20% rate that applies to stocks. Cryptocurrency is treated by the IRS as property (Notice 2014-21), so the standard short-term-vs-long-term rules apply. Section 1250 unrecaptured depreciation on real estate is taxed at up to 25%, and qualified small business stock under IRC §1202 can be partially or fully excluded from tax depending on acquisition date.

Can I avoid capital gains tax by reinvesting?

Generally, no. The myth that you avoid capital gains by reinvesting proceeds applies only to specific situations: IRC §1031 like-kind exchanges (now limited to real estate), IRC §1400Z-2 Qualified Opportunity Zone investments, and IRC §1045 rollovers of qualified small business stock. A sale of stock followed by repurchase of new stock is a fully taxable event regardless of whether you spend the cash. Inside a retirement account (401(k), IRA, Roth IRA), trades do not trigger capital gains tax at the time of sale — only at withdrawal for traditional accounts.

How do I know if I will owe estimated taxes on a capital gain?

Under IRC §6654, you owe quarterly estimated tax if you expect to owe more than $1,000 in tax after withholding. A safe harbor avoids the penalty if you pay (through withholding or estimated payments) the lesser of 90% of the current year's tax or 100% of last year's tax (110% if your prior-year AGI exceeded $150,000). A large mid-year capital gain often triggers estimated-tax exposure even when withholding from wages would otherwise have been adequate. Use Form 1040-ES and pay by the quarterly deadline that follows the gain.

Methodology & sources

Bracket figures cited are taken directly from IRS Revenue Procedure 2025-32 (TY2026) and Revenue Procedure 2024-40 (TY2025), the annual inflation-adjustment notices published by the Treasury each October. NIIT thresholds reflect the original 2013 Affordable Care Act figures, which are not indexed for inflation. State capital-gains rates reflect each state's top marginal individual income tax rate in effect for 2026 as published by the relevant state Department of Revenue. Effective combined rates are computed as a simple sum (no deduction for state tax paid against federal) to illustrate the worst-case top-bracket scenario. Numerical case studies use the bracket-stacking math implemented in the CalcLeap capital-gains calculator (built per IRS Schedule D Tax Worksheet, Publication 550, and verified against IRS Topic No. 409). The 28% collectibles rate, 25% §1250 unrecaptured depreciation rate, §1202 QSBS exclusion, and §121 home-sale exclusion follow current statute as of the publication date.

Sources cited:

  1. Internal Revenue Service, Revenue Procedure 2025-32 — 2026 inflation-adjusted tax provisions including ordinary income brackets, standard deductions, and capital gains thresholds. Published October 9, 2025. irs.gov
  2. Internal Revenue Service, Topic No. 409 Capital Gains and Losses — overview of the holding-period definition, short-term vs long-term distinction, and federal rate structure. irs.gov
  3. Internal Revenue Code §1222 — Other terms relating to capital gains and losses; defines "short-term" and "long-term" by reference to the one-year holding period. law.cornell.edu
  4. Internal Revenue Service, Revenue Procedure 2024-40 — 2025 inflation-adjusted tax provisions. Published October 22, 2024. irs.gov
  5. Internal Revenue Service, Publication 550 — Investment Income and Expenses, including Schedule D Tax Worksheet implementing the bracket-stacking mechanic for long-term capital gains. irs.gov
  6. Internal Revenue Code §1411 — Net Investment Income Tax. Statutory thresholds Single/HoH $200,000; MFJ $250,000; MFS $125,000; rate 3.8%; not indexed for inflation. law.cornell.edu
  7. Internal Revenue Service, Statistics of Income — Individual Income Tax Returns, NIIT collection data showing growth in affected returns since 2013. irs.gov
  8. Tax Foundation, "State Individual Income Tax Rates and Brackets 2026" — survey of state treatment of capital gains, including which states offer preferential rates and which conform to federal ordinary-income treatment. taxfoundation.org
  9. Washington State Department of Revenue, Long-term capital gains tax program — 7% rate on long-term capital gains above $270,000 (2025) standard deduction; indexed annually. dor.wa.gov
  10. Internal Revenue Code §1(h)(4) — 28% maximum rate on collectibles gain; §408(m)(2) definition of "collectible" including art, antiques, gems, stamps, coins, alcoholic beverages, and most precious metals. law.cornell.edu
  11. Internal Revenue Code §1(h)(6) — Unrecaptured §1250 gain taxed at maximum 25% rate; applies to depreciation recapture on real property. law.cornell.edu
  12. Internal Revenue Code §1202 — Partial or full exclusion of gain on Qualified Small Business Stock held more than five years; 100% exclusion for stock acquired after September 27, 2010; greater of $10 million or 10× basis cap. law.cornell.edu
  13. Internal Revenue Code §1014 — Basis of property acquired from a decedent; step-up to fair market value at date of death. law.cornell.edu
  14. Internal Revenue Code §121 — Exclusion of gain from sale of principal residence; $250,000 single / $500,000 MFJ cap; 2-of-5 year ownership and use test. law.cornell.edu
  15. Internal Revenue Code §1031 — Like-kind exchange deferral; limited to real property by Tax Cuts and Jobs Act of 2017. law.cornell.edu
  16. Internal Revenue Code §1400Z-2 — Special rules for capital gains invested in Qualified Opportunity Funds; deferral and post-10-year permanent exclusion of appreciation. law.cornell.edu
  17. Internal Revenue Code §1211(b) — Limitation on capital losses for individuals; $3,000 ($1,500 MFS) annual ordinary-income offset; indefinite carryforward of excess losses under IRC §1212(b). law.cornell.edu
  18. Internal Revenue Code §1091 — Loss from wash sales of stock or securities; 30-day window before and after sale; disallowance with basis adjustment to replacement security. law.cornell.edu
  19. Internal Revenue Service, Revenue Ruling 2008-5 — wash-sale rule applies to losses on securities sold in taxable account and repurchased inside an IRA; disallowed loss is permanently lost because IRA has no cost basis. irs.gov
  20. Investment Company Institute, Mutual Fund Distributions — Q&A on year-end capital-gains distributions and the tax-cost-of-purchasing-just-before-distribution trap. ici.org
  21. Internal Revenue Code §6654 — Failure by individual to pay estimated income tax; 90% / 100% / 110% safe-harbor structure. law.cornell.edu

This article is educational. It is not personalized tax advice. Tax law changes; verify current statute and your state's conformity status before relying on any computation here. Consult a CPA or Enrolled Agent for advice tailored to your situation, especially for QSBS, §1031 exchanges, real-estate dispositions, and any sale above $100,000. Read our editorial process →

⚠️ Disclaimer: Bracket figures, NIIT thresholds, and state tax rates shown are for educational and informational purposes only and reflect publicly available information as of the publication date. Tax outcomes depend on filing status, residency, holding period, asset type, and many other facts specific to your return. Always confirm current statute and consult a qualified tax professional before making transactions that trigger significant capital-gains liability. CalcLeap is not a tax advisor and does not provide personalized tax advice.