For 2026, most long-term investment gains fall into the 0%, 15%, or 20% federal capital-gains rate bands. The rate is determined by your filing status and total taxable income, not simply by the size of the gain. A sale can also affect the 3.8% Net Investment Income Tax, state taxes, and later Medicare premiums.
The important question is not just “What bracket am I in?” It is: How much of this sale lands in each tax layer, and what else changes because I sold? This guide walks through the 2026 federal rules with examples you can check before making a sale.
Your actual result also depends on taxable income, asset type, and additional taxes. Holding period alone does not determine the final bill.
- Held one year or less: Net short-term gains generally face ordinary federal income-tax rates.
- Held more than one year: Most net long-term gains qualify for the 0%, 15%, or 20% preferential rate structure.
- Stacking matters: Ordinary taxable income generally fills the lower taxable-income space before preferential gains are layered on top.
- The 0% rate is not always a zero-cost decision: A taxable gain may still affect ACA subsidies, NIIT, Medicare IRMAA or state tax, depending on your circumstances.
On This Page
- Calculate a 2026 capital-gains tax estimate
- You know the sale price.What do you keep?
- 2026 long-term capital-gains tax brackets
- What changed for capital gains in 2026?
- Why a 15% gain can cost more than 15%
- Before selling: check what you actually own and what it cost
- Cryptocurrency gains and wash sales in 2026
- Practical ways to reduce an avoidable tax surprise
- 2026 capital-gains tax FAQ
- Your decision before selling
- How We Verified This
Calculate a 2026 capital-gains tax estimate
Start with the estimator, then use the tables below to check the assumptions. The tool calculates an illustrative incremental federal tax on a standard investment sale; it does not prepare a complete tax return. Enter taxable income after deductions, excluding the sale, and supply a separate modified adjusted gross income (MAGI) estimate for NIIT.
You know the sale price.
What do you keep?
Estimate the federal tax on your capital gain, see how the brackets stack, and compare short-term with long-term treatment.
See what drives the estimate
The holding-period difference
Both include additional NIIT. Price, income, and 2026 rules stay the same in this comparison. It is not a forecast of the benefit of waiting to sell.
- 0% long-term room before this sale
- —
How this sale is taxed
| Tax layer | Gain | Tax |
|---|
The adjustment accounts for changes in tax on existing preferential income and the ordinary-income tax ceiling. It can increase or decrease the layer subtotal.
Each amount is rounded for display; row totals may differ by a cent.
Show the NIIT calculation
- Filing-status MAGI threshold
- —
- NIIT before this sale
- —
- NIIT with this sale
- —
For a positive gain, we add the gain to both MAGI and net investment income, calculate NIIT each way, and take the difference. Loss effects are not estimated.
How to enter income without double counting
Ordinary income is the taxable portion after deductions, with this sale and preferential income removed. Enter qualified dividends and other eligible long-term gains separately. Their total plus ordinary income should represent your taxable income before this sale.
MAGI and net investment income are separate inputs used for NIIT. Include applicable investment income in those totals even when you also entered it in the preferential-income field. The calculator does not add that field to MAGI automatically. It assumes deductions are already used or allocated and stay unchanged.
What this estimator covers—and where it stops
Designed for a fully taxable sale of standard investments, such as stocks, funds, and many digital assets. It models the difference in federal regular tax and NIIT with and without a positive gain. It does not calculate tax benefits from losses or perform capital-loss netting.
Not modeled: state/local tax, AMT, credits, deduction phaseouts, unused deductions, loss carryovers, wash sales, home-sale exclusions, collectibles, depreciation recapture, qualified small business stock, installment sales, gifted/inherited basis rules, employee equity compensation, foreign-income rules, business property, or kiddie tax. Enter an independently determined adjusted basis when appropriate.
The model uses rate brackets, not the IRS $50 tax-table bands. It is a planning estimate, not a tax return, a payment recommendation, or a safe-harbor calculation. Use a full return calculation for those decisions.
2026 rates, method & sources
Ordinary-income and long-term gain thresholds: IRS Revenue Procedure 2025-32, §§4.01 and 4.03. NIIT method and thresholds: IRS Topic 559.
The regular-tax model follows the preferential-income stacking and ordinary-tax ceiling described in the Form 1040 instructions, using 2026 brackets. The linked worksheet currently describes tax year 2025; its dollar thresholds are not used here. Sources checked September 22, 2026.
Calculator limitation: Specialized gains, dividends already using preferential brackets, loss carryovers, partnership assets, real estate exclusions, state rules, alternative minimum tax and other adjustments may require a different calculation. Do not use the estimate as a substitute for a filed tax return.
2026 long-term capital-gains tax brackets
These thresholds apply to 2026 tax-year income, generally reported on a return filed in 2027. They come from IRS Revenue Procedure 2025-32, section 4.03. The 0% and 15% ceilings depend on taxable income including the gain; a gain may span more than one rate band.
| Filing status | 0% through | 15% through | 20% above |
|---|---|---|---|
| Single | $49,450 | $545,500 | $545,500 |
| Married filing jointly | $98,900 | $613,700 | $613,700 |
| Head of household | $66,200 | $579,600 | $579,600 |
| Married filing separately | $49,450 | $306,850 | $306,850 |
A 15% rate does not apply to every dollar of a gain just because your taxable income crosses the 0% ceiling. Only the portion above that threshold moves into the next band. Not all long-term gains use this table. Collectibles gains and some taxable qualified small-business-stock gains can fall in a maximum 28% rate group, while unrecaptured Section 1250 gain from depreciable real property can face a maximum 25% rate. These are ceilings, not automatic flat tax rates, and special netting rules apply. See IRS Publication 550.
Example: a $30,000 gain does not all get the same rate
Assume a single filer has $40,000 in taxable ordinary income before an additional $30,000 of eligible long-term gains, no qualified dividends or other preferential gains, and no relevant tax adjustments. The 2026 0% ceiling is $49,450, leaving $9,450 of room. The remaining $20,550 falls in the 15% band. Estimated regular federal tax attributable to that gain: $3,082.50 ($20,550 × 15%). This excludes NIIT, state tax, and any effect of the gain on deductions or credits.
Illustration excludes NIIT, state tax, and other return interactions. Not a standalone filing calculation.
What about short-term capital gains?
A stock or fund held one year or less generally produces short-term gain taxed under the same graduated rates that apply to ordinary income. The 2026 rates still run from 10% to 37%; the anticipated 2026 reversion to the pre-TCJA rate structure did not occur. For the official income cutoffs, see the IRS 2026 ordinary-income bracket announcement.
A security bought on January 15, 2026 is generally long-term if sold on January 16, 2027 or later, assuming the ordinary trade-date holding-period rule applies. Rather than memorize “366 days,” check the actual acquisition and sale dates and the relevant holding-period rule, particularly around leap years or non-purchase acquisitions. See IRS Publication 544.
What changed for capital gains in 2026?
The 2026 “TCJA tax cliff” warnings circulating in older articles are out of date. Congress enacted Public Law 119-21 in 2025, retaining the seven-bracket individual rate structure and changing several deduction rules. For 2026, the standard deduction is $16,100 for single and married-separately filers, $32,200 for married-joint filers, and $24,150 for heads of household, before any applicable additional deductions. These numbers affect taxable income, which in turn affects capital-gains bracket room. IRS 2026 tax-law summary.
This distinction is easy to miss: the federal capital-gains rate schedule did not disappear, and your bracket does not suddenly revert because 2025 ended. What changes your actual bill is the taxable-income calculation, the kind of gain, and any additional tax or benefit interactions.
Why a 15% gain can cost more than 15%
The 3.8% Net Investment Income Tax
The NIIT is 3.8% of the smaller of your net investment income or the amount by which NIIT modified adjusted gross income exceeds the applicable threshold. The thresholds are $200,000 for single and head-of-household filers, $250,000 for married filing jointly, and $125,000 for married filing separately. They are not indexed for inflation. This is a separate computation from the regular long-term capital-gains rate. IRS NIIT explanation.
The same sale can raise both figures. That is why the estimator asks for them separately.
Example: A married couple has NIIT MAGI of $240,000 before a $30,000 taxable investment gain, and assume that $30,000 is their only net investment income. Their post-sale MAGI is $270,000, exceeding the $250,000 threshold by $20,000. NIIT is 3.8% of the smaller of $30,000 or $20,000, or $760. It would be wrong to automatically charge 3.8% on the full gain.
Assumes the $30,000 gain is the couple’s only net investment income. This is the NIIT layer, separate from their regular capital-gains tax.
Medicare IRMAA: a later premium consequence
If you are enrolled in Medicare, a one-time realized gain can raise your income-related Medicare Part B and Part D premiums later. Social Security ordinarily uses tax information from two years earlier, so 2026 income may be used to set 2028 premiums, using the 2028 thresholds when issued. This is not a separate capital-gains tax, and you should not substitute published 2026 IRMAA thresholds for unknown 2028 brackets. See the Medicare IRMAA brackets guide for how the premium determination works.
State capital-gains taxes
Your federal rate is only one part of the calculation. State taxes vary by residence, income sourcing, and the nature of the sale. There is no universal “live in a new state for 183 days and escape tax” rule. States use their own domicile, statutory-residency and source-income rules; relocating just before selling stock or vesting employer shares may not erase obligations to the former state. For state comparisons, use the state capital-gains tax guide.
Before selling: check what you actually own and what it cost
Capital gain is generally the amount realized on sale minus adjusted basis. Basis is not always just the first amount you paid: reinvested dividends, splits, commissions, transfers, gifts, inherited property, and other adjustments may matter. Check your transaction history and reported cost basis before using any estimator. A missing basis figure on a broker statement is not proof your basis is zero. See IRS Publication 550.
- Verify the holding period: short-term and long-term gains get different regular federal rates.
- Check existing gains and losses: capital losses can offset gains, but timing, wash sales, carryovers, and netting rules matter.
- Estimate taxable income and NIIT MAGI separately: they are not interchangeable inputs.
- Check state and Medicare effects: a sale can matter beyond federal income tax.
- Choose the right specialized guide: home sales, inherited property, collectibles and business assets have extra rules.
Cryptocurrency gains and wash sales in 2026
Selling or exchanging a digital asset generally can be a taxable disposition; gain or loss depends on the asset’s tax characterization and your basis. But the stock wash-sale rule in Internal Revenue Code Section 1091 does not automatically apply to every cryptocurrency. It generally covers stocks and securities, and a particular token’s security status can matter. Do not confuse a broader information-reporting requirement with a new universal wash-sale ban.
Form 1099-DA reporting began to phase in with broker reporting of gross proceeds for 2025 transactions and reporting of basis on certain covered transactions beginning in 2026. The IRS does not say that this automatically cross-checks every exchange for wash sales. See IRS digital-assets guidance and Form 1099-DA instructions.
Practical ways to reduce an avoidable tax surprise
Most preventable mistakes happen before the trade: selling just before a holding-period change, entering gross salary instead of taxable income, forgetting a capital-loss carryforward, or ignoring NIIT and Medicare premium effects. A tax-conscious approach is to model the incremental effect of the particular sale before making it.
- Use available losses carefully: losses generally offset capital gains. An overall net loss can offset up to $3,000 of ordinary income annually, or $1,500 if married filing separately; remaining losses may carry forward. Wash-sale rules and netting order can change the answer.
- Check the long-term date: waiting until a security qualifies for long-term treatment may help, but investment risk, price changes and liquidity needs can outweigh a tax benefit.
- Consider charitable gifts of appreciated securities: eligible donations may avoid realizing gain, but deduction rules, itemization, valuation and the charity’s acceptance process matter. Never assume a dollar-for-dollar tax savings.
- Avoid broad claims of guaranteed “tax arbitrage”: moving states, installment sales, opportunity funds and direct-indexing strategies require specialized analysis and do not produce a standard savings amount.
For a deeper discussion of individual strategies, see ways to reduce capital-gains tax on stocks. This page stays focused on calculating and understanding the federal rate.
2026 capital-gains tax FAQ
Can I owe 0% federal capital-gains tax?
Yes. Eligible long-term gain falling within the 0% band has no regular federal capital-gains tax on that portion. However, benefits, income-based premiums and state-tax rules may use different income measures.
Is the $3,000 capital-loss deduction per person?
Not generally. The maximum net capital loss applied against ordinary income on a joint return is usually $3,000; for married filing separately it is $1,500 per spouse, subject to each return’s actual losses and the capital-loss rules. Unused amounts may carry forward. IRS Schedule D instructions.
Does a 15% bracket mean 15% on my entire gain?
No. Long-term gains can cross the 0%, 15%, and 20% bands as total taxable income rises. The regular rate for a gain also does not tell you whether NIIT applies.
Does inherited property or a home sale use this same calculator?
Not necessarily. Inherited property often has special basis rules, and an eligible principal residence may qualify for an exclusion. Those rules require separate inputs. See inherited-property capital gains and capital gains on a home sale.
Can selling stock in 2026 raise my 2028 Medicare premiums?
Potentially. If your 2026 MAGI is used for the 2028 determination, a sizable taxable gain can raise income-related premium surcharges. The actual 2028 brackets are a separate annual determination.
Your decision before selling
Get four numbers before you act: your adjusted basis, estimated taxable income before the sale, the gain by holding period, and expected NIIT MAGI after the sale. Those four inputs usually make the federal calculation clearer than memorizing a single tax rate. Then check any state, Medicare or special-asset rules.
Adjusted basis
Holding period
Taxable income
Other effects
The order matters: a polished rate calculation based on the wrong cost basis or income measure can still lead to the wrong decision.
How We Verified This
These are the authorities and references used to verify the material facts in this article.
