Capital Gains Tax (2026)
Estimate federal tax on short-term and long-term capital gains for 2026, including preferential rate stacking on top of ordinary taxable income.
Calculator
Enter gains to estimate preferential LTCG stacking for 2026.
Two tax systems on one return
Not all investment profit is taxed alike. Sell a stock you held fourteen months and the gain usually faces preferential long-term rates. Sell after eleven months and the same dollar gain stacks into ordinary brackets—10% through 37% in 2026—just like wages. This calculator separates those paths so you can see federal tax on short-term gains, long-term gains, and how they interact with the ordinary income you enter.
That interaction is where DIY estimates go wrong. Long-term gains do not always sit at a flat 15%. They occupy preferential bands (0%, 15%, 20% for most assets) based on total taxable income relative to filing-status thresholds published by the IRS. A modest ordinary income can leave room for 0% long-term gains; a bonus that pushes taxable income higher can bump the next dollar of gain from 0% to 15% or 15% to 20%.
2026 ordinary brackets vs preferential bands
Ordinary taxable income uses the inflation-adjusted 2026 brackets from Rev. Proc. 2025-32. Preferential long-term capital gain thresholds also adjust annually. Enter your filing status and income components; the engine stacks ordinary income first, then applies gain rates to the long-term portion.
The standard deduction still matters: $16,100 single, $24,150 head of household, $32,200 joint. Lower taxable income after deductions can expand the 0% long-term gain band for retirees living off basis and modest withdrawals.
Short-term gains: ordinary treatment
Short-term gains add to ordinary taxable income and fill brackets from the bottom up. If you already earned $80,000 wages as a single filer with standard deduction, additional short-term gain mostly lands in the 12% and 22% bands—not “your top bracket only.” Run the federal income tax calculator alongside this tool when gain is mixed with wages.
Active traders and crypto flippers often underestimate short-term exposure because each sale resets holding period. Day-traded profits are ordinary unless you qualify for trader tax status—a narrow professional classification this tool does not model.
Long-term gains: 0%, 15%, and 20%
0% band
Taxpayers whose total taxable income (including long-term gains) stays within the 0% long-term threshold for their status may owe no federal tax on those gains. Retirees with low provisional income sometimes live entirely in this band—until Required Minimum Distributions or Social Security taxation push them higher.
15% band
Most middle- and upper-middle-income investors land here on incremental long-term sales once ordinary income consumes lower bands.
20% band
High taxable income pushes additional long-term gains to 20%. Collectibles and certain small-business stock have special rates not fully modeled here.
Net investment income tax (NIIT)
At higher modified AGI ($200,000 single, $250,000 joint), the 3.8% NIIT may apply to net investment income including gains. If the engine includes NIIT preview, treat it as educational—real returns with K-1s and passive activity rules need professional review.
Losses, wash sales, and carryforwards
Harvest losses to offset gains in the same year. Net capital loss beyond gains deducts up to $3,000 against ordinary income; excess carries forward. Wash-sale rules disallow losses if you repurchase a substantially identical security within 30 days. Enter net figures when you have already netted sales.
Worked example
Single filer, $60,000 wages, $10,000 long-term gain, standard deduction only:
- Taxable income before gains: roughly $43,900 after $16,100 standard deduction
- Adding $10,000 long-term gain increases taxable income; preferential rate depends on where total falls relative to 2026 thresholds
- Contrast with $10,000 short-term gain taxed entirely through ordinary bands—often a higher bill
Run both scenarios in the form to compare cents-level outcomes.
Planning moves (not advice)
- Hold appreciated assets beyond one year when strategy allows
- Bunch charitable gifts of appreciated stock instead of cash
- Coordinate gain recognition with retirement Roth conversions—see Roth conversion calculator
- Review estimated taxes if sales lack withholding—quarterly estimated tax calculator
What this calculator does not cover
- Section 1202 QSBS exclusions
- Depreciation recapture on real estate (unrecaptured Section 1250 gain)
- Foreign currency or straddle rules
- State capital gains surcharges
Related tools
Reconcile withholding and gains with the tax refund estimator. Model RSU vesting as ordinary wages in the RSU tax calculator. Compare total tax across states with the state income tax calculator.
Qualified dividends share the same bands
Qualified dividends stack with long-term capital gains in the preferential 0/15/20% structure. Enter them with long-term gains when the tool combines preferential income, or run a separate ordinary-income estimate if you split inputs. Non-qualified dividends stay in ordinary brackets.
Installment sales and timing
Selling property on installment note spreads gain recognition across years. This calculator assumes gain recognized in the year you enter—multi-year installment schedules need manual year-by-year runs.
Primary residence exclusion (overview)
Section 121 may exclude up to $250,000 ($500,000 joint) of gain on a primary home when ownership and use tests are met. The exclusion can zero out federal gain even when sale proceeds look large. This tool does not apply Section 121 automatically—enter net taxable gain after exclusion if you already computed it.
Estimated tax and withholding on sales
Brokers withhold on some sales but not all gain scenarios. Large December sales without withholding can trigger underpayment penalties even if you pay in April. Use the quarterly estimated tax calculator when proceeds lack backup withholding.
Bracket stacking walkthrough
Imagine single filer with $40,000 ordinary taxable income after the $16,100 standard deduction and a $20,000 long-term gain. Ordinary income fills the 10% and 12% bands first. Long-term gain then sits in preferential bands based on where total taxable income falls—including the gain itself. Moving the gain from $20,000 to $40,000 can push the top slice from 0% to 15% even when ordinary income stayed flat. That is why “just use 15%” shortcuts fail.
Short-term gain in the same scenario stacks entirely as ordinary income on top of the $40,000 base—often producing a higher bill than long-term treatment. Run both holding periods in the form when deciding whether to sell before or after the one-year mark.
Retirees with pension income and modest Social Security taxation may have low ordinary taxable income but large unrealized gains in brokerage accounts—timing sales across January years can spread gains across tax years when other income dips.
Mutual fund capital gains distributions
Even when you did not sell shares, mutual funds pass through capital gains distributions each December. Those flow to Form 1099-DIV as long-term or short-term gains and can push you into higher preferential bands unexpectedly. Estimate distributions before year-end when fund companies publish estimates, especially in taxable brokerage accounts outside retirement wrappers.
Tax-managed funds and ETFs often distribute less than active mutual funds, but they are not distribution-free. Check unrealized gain inside the fund, not just your personal purchase price, when buying in a taxable account late in the year.
Collectibles and section 1250 unrecaptured gain
Collectibles gains may face a 28% maximum rate rather than 20%. Depreciation recapture on rental real estate uses 25% unrecaptured Section 1250 gain rates on the depreciation portion. Enter those components separately if the tool exposes rate overrides; default paths assume standard securities gains.
Wash-sale adjustments increase basis on replacement shares—your gain calculator input should use net gain after wash-sale basis increases, not the raw 1099-B figure when boxes are inconsistent.
Form 8949 and cost basis hygiene
Brokers report covered vs non-covered lots differently on Form 1099-B. Missing basis on non-covered sales forces you to prove purchase date and price in audit. Keep trade confirms and corporate action statements. Cryptocurrency exchanges increasingly issue 1099 forms, but transfer between wallets still requires your own lot tracking.
Charitable donation of appreciated stock avoids gain recognition entirely when you itemize and follow donee rules—compare selling then donating cash vs donating shares directly when you are charitably inclined.
State tax on gains
Many states tax capital gains as ordinary income without preferential bands. A 0% federal long-term gain can still trigger state tax. Run the state income tax calculator with gain included in state-taxable income when relocation or multi-state residency applies.
Crypto and digital asset sales
Digital assets use the same holding-period tests as other capital assets for federal purposes. Every sale needs date and basis tracking. Staking and airdrop income may be ordinary at receipt with basis issues on later disposal—this tool expects net gain you enter after your own classification.
Loss carryforward planning
Capital losses exceeding gains deduct up to $3,000 against ordinary income annually with carryforward indefinitely. Harvest losses in down markets to offset gains in up years—enter net figures after you apply carryforward worksheets.
NIIT stacking reminder
Net investment income tax at 3.8% may apply above MAGI thresholds in addition to capital gains rates. This calculator may preview NIIT when coded—layer with the federal calculator for wage-plus-investment households.
Planning takeaway
Hold appreciated assets beyond one year when strategy allows, but do not let tax tail wag investment dog. Pair sale timing with the standard vs itemized calculator if large charitable gifts of appreciated stock are part of the plan.
Estimated tax on large gains
Broker sales without adequate withholding can trigger April balance due and underpayment penalties. After modeling here, run the quarterly estimated tax calculator if the sale occurs mid-year with no withholding adjustment.
Sources and methodology
Ordinary brackets and standard deductions follow Rev. Proc. 2025-32. Preferential gain thresholds use IRS 2026 inflation-adjusted amounts where coded. Results are planning estimates, not Form 8949 preparation.
Frequently asked questions
What is the difference between short-term and long-term gains?
Assets held one year or less generate short-term gains taxed as ordinary income at your regular brackets. Assets held more than one year generally qualify for long-term rates (0%, 15%, or 20% for most assets) plus possible NIIT at higher incomes.
How do long-term rates stack on ordinary income?
Taxable income—including ordinary income and long-term gains—fills brackets in order. Long-term gains and qualified dividends often sit in preferential 0/15/20% bands based on where your total taxable income falls relative to statutory thresholds for your filing status.
Does the 2026 standard deduction affect capital gains tax?
Yes indirectly. The standard deduction ($16,100 single, $32,200 joint) reduces taxable income, which can keep more long-term gains in the 0% band for lower-income filers.
Are state taxes included?
This tool focuses on federal treatment. Many states tax capital gains as ordinary income; use the state income tax calculator for state liability.
What about loss harvesting?
Capital losses offset gains; excess losses deduct up to $3,000 against ordinary income with carryforward rules. Enter net gains after losses in the tool when you know the net figure.
Do cryptocurrency gains work the same way?
For federal income tax, yes—holding period and character rules generally mirror other capital assets. Specific reporting (Form 8949) still applies.
Government sources
- IRS — Revenue Procedure 2025-32 — Tax Year 2026 Inflation Adjustments (including OBBBA amendments) Accessed 2026-07-20 · Effective 2026-01-01
- IRS — IRS releases tax inflation adjustments for tax year 2026, including amendments from the One, Big, Beautiful Bill Accessed 2026-07-20 · Effective 2026-01-01
Related calculators
Tax year 2026 · Last reviewed 2026-07-20 · Reviewed by US Tax Tools editorial · Methodology