Capital Gains Tax Calculator 2026
Calculate your 2026 federal and state capital gains tax — short-term, long-term, NIIT surcharge for stocks, real estate, and crypto.
2026 Capital Gains Tax Rates Explained
The IRS taxes capital gains differently based on how long you held the asset. Long-term capital gains (assets held more than 12 months) are taxed at preferential rates of 0%, 15%, or 20% based on your taxable income. Short-term capital gains (held 12 months or less) are taxed as ordinary income — at your marginal income tax bracket, which ranges from 10% to 37% in 2026.
The 2026 long-term capital gains rate thresholds (IRS Rev. Proc. 2025-61): 0% for single filers with income up to $48,350 and married filing jointly up to $96,700. 15% applies to most middle-income earners. 20% applies to single filers above $533,400 and MFJ above $600,050. High-income earners (MAGI above $200K single / $250K joint) also owe an additional 3.8% Net Investment Income Tax (NIIT) on investment gains.
State Capital Gains Taxes (2026)
Most states tax capital gains as ordinary income at the same rate as wages. California applies its top rate of 13.3% with no preferential treatment for long-term gains — the highest in the nation. Nine states have no income tax: Texas, Florida, Nevada, Washington, Wyoming, South Dakota, Alaska, Tennessee, and New Hampshire (dividends only). A handful of states like Colorado (4.4%) and Arizona (4.5%) offer relatively low rates. The combined federal + state burden matters significantly for relocation decisions and asset timing.
Capital Gains Tax Planning Strategies
Several legal strategies reduce capital gains tax exposure. Tax-loss harvesting: sell losing positions to offset gains dollar-for-dollar. Losses above gains offset up to $3,000 of ordinary income per year, with excess carried forward. Hold period optimization: wait past 12 months to flip short-term (ordinary rate) to long-term preferential rate — a difference of 10–20+ percentage points. Income timing: if your income fluctuates, realizing gains in a lower-income year can mean paying 0% instead of 15% or 20%. 1031 exchange: real estate investors can defer capital gains indefinitely by rolling proceeds into a like-kind property within IRS deadlines.
Inherited and Gifted Assets: Which Cost Basis Applies
The number most people get wrong in a capital gains calculation is not the rate, it is the basis. An asset you inherit generally takes a stepped-up basis equal to its fair market value on the date of the decedent's death under the inherited-basis rule of the tax code, so gain accrued during the decedent's lifetime disappears and a sale soon after inheriting can produce almost no taxable gain. An asset you receive as a lifetime gift is the opposite: under the gift-basis rule you carry over the giver's original basis and their holding period, so a long-held gifted share can hand you decades of built-in gain. A gifted asset that has lost value uses a dual-basis rule, where the donor's basis applies for computing a gain and the lower market value at the time of the gift applies for computing a loss. The IRS sets out each case in its guidance on the basis of assets. Enter the basis the rule gives you in the field above rather than what the asset cost the previous owner. Updated September 2026.
Capital Gains on Home Sales: $250K/$500K Exclusion + Depreciation Recapture (2026)
Home sales get special capital gains treatment under IRC §121 that most calculators miss. The Section 121 exclusion lets a single filer exclude up to $250,000 of capital gain from the sale of a primary residence — $500,000 for married filing jointly. Requirements: you must have owned AND used the home as your primary residence for at least 2 of the last 5 years before sale (the "2-of-5 rule"). Example: single filer bought a home for $300,000, sold for $600,000, gain = $300,000, excludable portion = $250,000, taxable long-term capital gain = $50,000 taxed at 0%/15%/20% depending on income. Watch two gotchas: partial exclusion is available if you moved for job/health/unforeseen reasons before hitting 2 years (prorated), and depreciation recapture applies if you claimed depreciation (rental use, home office deduction) — that portion is taxed at 25% regardless of long-term status, per IRS Publication 523. Second homes and rental properties get NO exclusion — the full gain is taxable unless you complete a §1031 exchange. Per the IRS Publication 523 (Selling Your Home), keep documentation of every capital improvement (kitchen remodel, roof replacement, additions) — they raise your cost basis and reduce the taxable gain dollar-for-dollar. Updated 2026-07-27.
The Wash Sale Rule: When a Capital Loss Is Disallowed
Selling a losing position to offset gains only works if you stay out of it. Under the wash sale rule, if you buy the same or a substantially identical security within 30 days before or after the sale, the loss is disallowed for that year — a 61-day window centred on the trade, not 30 days forward. The loss is not destroyed: it is added to the cost basis of the replacement shares and surfaces when you finally sell those. The traps are the ones people do not see coming: an automatic dividend reinvestment inside the window triggers it, and so does repurchasing in your IRA, which permanently kills the loss rather than deferring it. Buying in a spouse’s account counts too. The rule applies to stocks and securities; whether it reaches digital assets has been treated differently in practice, so confirm current treatment before relying on it for crypto. Source: IRS Publication 550. Updated 2026-09-18.
How to Report Capital Gains: Form 8949 and Schedule D
The figure this calculator returns is an estimate of tax owed; the filing itself runs through two forms. Every individual sale is listed on Form 8949 — description, date acquired, date sold, proceeds, cost basis and adjustment codes — split into short-term and long-term sections, and into whether your broker reported the basis to the IRS. Those subtotals then carry to Schedule D, which nets short-term against long-term and produces the number that lands on your Form 1040. Two things catch filers out. First, brokers frequently do not report cost basis for older or transferred holdings, which leaves you to prove it — keep purchase confirmations. Second, a net capital loss offsets other income only up to an annual limit, with the remainder carried forward indefinitely to future years, so a large loss is not wasted but is not deductible all at once either. Source: IRS — About Schedule D. Updated 2026-09-18.