Capital Gains Tax Calculator 2026 | Stocks, Real Estate & §1202 Hub
Underwrite your 2026 Capital Gains Tax liability across all asset classes. This fiduciary-grade workbench models long-term vs. short-term rates, unmasks Net Investment Income Tax (NIIT) surcharges, and calculates §1250 depreciation recapture. Execute advanced scenario analysis for primary home exclusions (§121), QSBS business sales (§1202), and tax-deferred 1031 exchanges in one integrated dashboard.
Enter the asset type, basis details, sale proceeds, tax rates, and special treatment assumptions to estimate the true after-tax result and compare timing or deferral strategies.
| Metric | Result | Meaning |
|---|
Underwriting Capital Gains: Federal Rates & Adjusted Basis Mechanics
Capital gains tax is the federal (and often state) tax you owe when you sell an asset for more than you paid for it. The gain — not the full sale price — is what gets taxed, and the rate depends on how long you held the asset and your total income.
The IRS draws a bright line at 12 months. Sell before 12 months — you pay ordinary income rates up to 37%. Hold 12+ months — you qualify for preferential long-term rates of 0%, 15%, or 20%.
| Holding Period | Tax Treatment | 2026 Rate Range |
|---|---|---|
| Under 12 months | Short-term (ordinary) | 10% – 37% |
| 12 months or more | Long-term (preferential) | 0% / 15% / 20% |
| Rental depreciation | Unrecaptured §1250 | Max 25% |
| Collectibles | Special rate | Max 28% |
0% — MFJ income ≤ $96,700
15% — Single $48,351 – $533,400
15% — MFJ $96,701 – $600,050
20% — Above those thresholds
$200,000 — Single
$250,000 — MFJ
$125,000 — MFS
28% — Collectibles (art, coins, stamps)
28% — Small business stock (non-QSBS)
Up to 100% exclusion for qualifying QSBS (§1202)
Multivariate Tax Modeling: From Realized Gains to After-Tax Proceeds
The calculator uses a 7-layer model to produce an accurate after-tax result for any asset type. Here is exactly what happens when you click Analyze.
| Input | Where to Find It | Impact |
|---|---|---|
| Purchase Price / Basis | Original purchase docs, closing HUD | Directly reduces taxable gain |
| Improvements | Capital improvement receipts | Increases basis, reduces gain |
| Depreciation Taken | Prior-year Form 4562 or Schedule E | Triggers 25% recapture tax on rental |
| Selling Costs | Closing statement, broker 1099-S | Reduces realized gain |
| Loss Offsets | Schedule D carryforward worksheet | Dollar-for-dollar gain reduction |
| State Tax Rate | Your state’s income tax rate (capital gains = ordinary for most states) | Added to total tax |
| Taxable Income Before Gain | Prior-year return, W-2 estimate | Determines which LT rate bracket applies |
| Asset Type | Special Logic Applied | Key Rate |
|---|---|---|
| Stocks / Funds | Standard LT/ST treatment | 0% / 15% / 20% |
| Primary Residence | $250K / $500K home exclusion | LT rate on gain above exclusion |
| Rental Property | Depreciation recapture at 25% | 25% recapture + LT on remainder |
| Collectibles | Capped at 28% regardless of income | 28% max |
| Business Sale | QSBS exclusion % applied first | LT rate on remainder |
State-Level Liability: Benchmarking 2026 Capital Gains Tax by State
Most states tax capital gains as ordinary income. A handful have no income tax at all. Enter the correct rate in the calculator’s “State Tax Rate” field to get an accurate all-in number.
| State | Capital Gains Rate | Treatment | Notes |
|---|---|---|---|
| California | 13.3% | Ordinary income rate | Highest in the US; no LT preference |
| New York | 10.9% | Ordinary income rate | + NYC local up to 3.876% |
| New Jersey | 10.75% | Ordinary income rate | Top bracket |
| Oregon | 9.9% | Ordinary income rate | No LT preference |
| Minnesota | 9.85% | Ordinary income rate | Top bracket |
| Massachusetts | 5.0% | Flat rate | LT gains taxed at flat 5% |
| Illinois | 4.95% | Flat rate | Flat income tax; no LT preference |
| Colorado | 4.40% | Flat rate | Flat income tax |
| Arizona | 2.50% | Flat rate | Flat income tax |
| North Carolina | 4.50% | Ordinary income rate | Flat tax rate |
| Texas | 0% | No income tax | No state capital gains tax |
| Florida | 0% | No income tax | No state capital gains tax |
| Washington | 7.0% | Capital gains only tax (>$270K) | Long-term gains above $270K threshold |
| Nevada | 0% | No income tax | No state capital gains tax |
| Wyoming | 0% | No income tax | No state capital gains tax |
| Pennsylvania | 3.07% | Flat rate | No LT preference; flat rate |
| Ohio | 3.99% | Ordinary income rate | Top bracket |
| Michigan | 4.05% | Flat rate | Flat income tax |
| Georgia | 5.39% | Ordinary income rate | Top bracket |
| Tennessee | 0% | No income tax | Hall tax repealed; no capital gains tax |
Transaction Scenarios: Modeling Real Estate, ISO/Stock & Asset Sales
Each scenario below uses realistic 2026 US figures. You can replicate any example in the calculator above by entering the same inputs.
| Field | Value |
|---|---|
| Asset Type | Stocks / Funds |
| Purchase Price | $80,000 |
| Selling Price | $240,000 |
| Selling Costs | $0 |
| Holding Period | 38 months (long-term) |
| Taxable Income Before Gain | $175,000 |
| State Rate | 0% (Texas) |
| NIIT Applies? | No ($175K + $160K = $335K… auto triggers) |
| Field | Value |
|---|---|
| Asset Type | Primary Residence |
| Purchase Price + Improvements | $320,000 + $40,000 |
| Selling Price | $750,000 |
| Selling Costs | $45,000 |
| Home Exclusion Used | Yes (MFJ = $500,000) |
| Holding Period | 84 months (long-term) |
| Taxable Income Before Gain | $180,000 |
| State Rate (IL) | 4.95% |
| Field | Value |
|---|---|
| Asset Type | Rental Property |
| Purchase Price | $500,000 |
| Improvements | $50,000 |
| Depreciation Taken | $80,000 |
| Selling Price | $920,000 |
| Selling Costs | $55,000 |
| State Rate (CA) | 13.3% |
| Taxable Income | $220,000 |
| Field | Value |
|---|---|
| Asset Type | Collectible |
| Purchase Price | $120,000 |
| Selling Price | $380,000 |
| Selling Costs | $22,800 (6% auction fee) |
| Holding Period | 72 months |
| State Rate (NY) | 10.9% |
| Local Rate (NYC) | 3.876% |
| Taxable Income | $300,000 |
| Field | Value |
|---|---|
| Asset Type | Business Sale / QSBS-style |
| Purchase Price | $50,000 (original investment) |
| Selling Price | $1,200,000 |
| Selling Costs | $36,000 |
| QSBS Exclusion % | 50% (partial; held 5+ years) |
| Holding Period | 72 months |
| State Rate (WA) | 7% (on gains >$270K) |
| Taxable Income | $280,000 |
Master Tax Strategies: Arbitrage, Deferrals & Basis Optimization
These eight strategies are used by tax professionals to legally minimize capital gains tax. Use this calculator to model each scenario before making any moves.
| Situation | Best Strategy | Tax Impact | Key Requirement |
|---|---|---|---|
| Stock sale, < 12 months held | Wait for long-term treatment | Rate cut from 37% to 15–20% | Hold 12+ months |
| Stock sale + portfolio losses | Tax-loss harvesting | Dollar-for-dollar gain offset | Sell losers before Dec 31 |
| Home sale with large gain | §121 exclusion | Up to $500K excluded | Live in home 2 of last 5 yrs |
| Rental property sale in CA / NY | 1031 exchange | Defer all gain + recapture indefinitely | Like-kind investment property |
| Large one-time business sale | Installment sale or QSBS exclusion | Spread gain or exclude up to 100% | QSBS: held 5+ years, §1202 qualifying |
| Appreciated stock, generous person | Donate directly to charity | Zero CGT + full FMV deduction | 501(c)(3) qualified org |
| New capital gain just triggered | Opportunity Zone fund investment | Defer federal tax; exclude future gain | Invest within 180 days |
| High-income family, lower-income kids | Gift appreciated assets | Sell at 0% LT rate | Recipient in 0% bracket |
Q FAQs: Tax Liability, Asset Disposal & Form 8949 Guidelines
The 12 most common capital gains tax questions — with direct answers based on 2026 IRS rules.
Example: Your parent bought a home in 1990 for $120,000. It was worth $900,000 when they passed. Your stepped-up basis is $900,000. If you sell for $950,000, you only owe capital gains tax on the $50,000 gain above $900,000 — not the $780,000 lifetime appreciation.
Important exceptions: Inherited retirement accounts (401k, IRA) do NOT receive a stepped-up basis — withdrawals are still taxed as ordinary income. In community property states (CA, TX, AZ, WA, etc.), both halves of jointly held community property receive a full step-up when one spouse dies, which is a significant tax advantage over joint tenancy. Inherited assets are also automatically treated as long-term regardless of how long you hold them after inheriting.
Example: You bought stock for $10,000 in 2010. It’s now worth $200,000. You gift it to your adult child. Their basis is your original $10,000 — so when they sell, they owe capital gains on $190,000.
This is the critical difference between gifting vs. inheriting: inherited assets get a stepped-up basis; gifted assets carry over your basis. This means gifting highly appreciated assets during your lifetime is almost always less tax-efficient than passing them through your estate at death (assuming your estate is below the federal estate tax exemption). For assets that have lost value, the rule is reversed — never gift assets worth less than your basis, as the recipient’s basis for loss purposes is capped at FMV on the gift date, creating a “dual basis” trap.
The same short-term vs long-term rules apply: hold under 12 months → short-term at ordinary income rates (up to 37%); hold 12+ months → long-term at 0%, 15%, or 20%. The 3.8% NIIT also applies to crypto gains for high-income taxpayers.
Key 2026 development: Starting with tax year 2025, digital asset brokers (exchanges like Coinbase, Kraken) are required to report crypto transactions on the new Form 1099-DA, giving the IRS full visibility into your trading activity. Additionally, the wash sale rule (IRC §1091) technically does not yet apply to crypto in 2026 — meaning you can sell crypto at a loss and immediately repurchase it to harvest a tax loss without the 30-day waiting period. However, Congress has proposed extending wash sale rules to digital assets, so this window may close.
Example: You sell a rental property with a $200,000 long-term gain and also sell stocks at a $60,000 long-term loss. Your net long-term capital gain is $140,000 — you only pay tax on $140,000, not $200,000.
The only limitation is the $3,000 annual cap on net losses deducted against ordinary income. If total losses exceed total gains, up to $3,000 can offset W-2 or other ordinary income per year, and the rest carries forward indefinitely to future tax years. There is no limit on how much capital loss can offset capital gains in the same year. Enter your capital loss offsets in the “Capital Loss Offsets” field of this calculator to see the impact.
Realized gains occur the moment you sell, exchange, or otherwise dispose of the asset. Only at that point does the gain become taxable and reportable on your tax return. This distinction is why many long-term investors hold appreciated assets for decades without paying capital gains tax — the gain is unrealized until they sell.
This is also why the stepped-up basis at death is so powerful: if you hold an appreciated asset until death, the unrealized gain is permanently eliminated (stepped up to FMV at death) and never taxed. The strategy of “buy, hold, borrow” used by ultra-wealthy investors — borrowing against appreciated assets rather than selling them — also exploits this distinction, because borrowing is not a realization event and therefore not taxable.
IRMAA surcharges apply in tiers above $106,000 (single) and $212,000 (MFJ) in 2026 MAGI. At the top tier, Medicare Part B premium surcharges can add over $400/month per person. For retirees, a one-time large capital gain — such as selling a home or liquidating investments — can add thousands of dollars in Medicare premiums two years later.
This is an often-overlooked “hidden tax” on capital gains for people aged 65+. Planning a large sale? Consult a Medicare planning specialist or CPA to model the 2-year IRMAA impact alongside the capital gains tax itself.
Failing to make adequate estimated payments results in an IRS underpayment penalty — currently assessed at the federal short-term rate plus 3% (approximately 7–8% annualized in 2026). The penalty applies quarter-by-quarter, not just at year-end.
Safe harbor rule: You can avoid the underpayment penalty entirely if you pay either 100% of your prior-year tax liability (110% if prior-year AGI exceeded $150,000) or 90% of your current-year tax liability — whichever is smaller. If you sold a large asset mid-year, use our W-4 Withholding Estimator to check whether you need to make estimated payments immediately.
Long-term capital gains distributions — regardless of how long you have personally owned the fund — are taxed at the same preferential 0%, 15%, or 20% long-term rates based on your income. Short-term distributions are reported as ordinary dividends and taxed at your full income tax rate.
This is why index funds and ETFs are often more tax-efficient than actively managed mutual funds — index funds rarely sell holdings internally, generating fewer taxable distributions. For taxable accounts, using tax-managed funds or holding actively managed funds inside a tax-advantaged account (IRA, 401k) reduces this tax drag significantly.
It makes sense in these situations:
- You’re in the 0% capital gains bracket — if your taxable income is below $49,450 (single) or $98,900 (MFJ) in 2026, you can realize long-term gains and owe zero federal capital gains tax. You can then repurchase the same assets immediately with a higher basis, resetting your future gain. No wash sale rule applies to gains (only losses).
- You expect to be in a higher bracket next year — selling appreciated assets in a low-income year (retirement transition, career break, large deductions) locks in today’s lower rate.
- Roth conversion planning — selling assets to fund Roth conversions in a low-income year accelerates wealth into tax-free accounts before rates potentially rise.
§1231 — Net Gain on Business Property: Gains from the sale of depreciable business property or real estate held for more than 1 year. Net §1231 gains are taxed at long-term capital gains rates (0%/15%/20%). Net §1231 losses are treated as ordinary losses — fully deductible against ordinary income with no $3,000 cap. This “best of both worlds” treatment makes §1231 property especially valuable.
§1245 Recapture — Personal Property: When you sell depreciable personal business property (equipment, machinery, vehicles) at a gain, all previously claimed depreciation deductions are “recaptured” and taxed as ordinary income at rates up to 37%. Only the gain above the original purchase price (if any) qualifies for §1231 treatment.
§1250 Recapture — Real Property: For real estate, only the additional depreciation above straight-line is recaptured as ordinary income at up to 37% (§1250). The remaining depreciation (straight-line amount) is taxed at a maximum 25% unrecaptured §1250 rate — the “depreciation recapture” rate used in this calculator’s rental property logic. Any remaining gain above the original basis qualifies for long-term capital gains rates.
Regulatory Guidance: Official IRS & Federal Tax Authority Resources
Every calculation in this tool is based on IRS guidance, statutory law, and inflation-adjusted parameters published by the US government. These are the primary authoritative sources the calculator draws from.
Institutional Transparency: E-E-A-T Standards & Data Integrity
We believe users deserve to know exactly how this tool was built, who made it, what data it uses, and what its limitations are. That transparency is part of our commitment to E-E-A-T standards and your financial decision-making confidence.
rel="noopener noreferrer" for security.IRS Compliance & Fiduciary-Grade Legal Disclaimer
Results produced by this calculator are estimates only. Your actual capital gains tax liability will depend on the specific facts of your transaction, your complete tax return picture, applicable elections, state and local laws, and rules not modeled in this tool. Always consult a licensed tax professional — a Certified Public Accountant (CPA), Enrolled Agent (EA), or tax attorney — before making financial decisions based on these estimates.
- Constitute or replace professional tax or legal advice
- Account for all special rules, elections, or exceptions under IRC
- Model passive activity loss (PAL) limitations (§469)
- Account for at-risk rule limitations (§465)
- Calculate AMT interaction with capital gains (use our AMT calculator)
- Handle all state and local tax rules for every jurisdiction
- Determine QSBS status — that requires legal and tax analysis
- Replace Form 8949, Schedule D, or Form 4797 preparation
- Provide a guarantee of IRS acceptance of any reported position
- Pre-sale planning to estimate tax exposure before acting
- Comparing timing strategies (sell now vs hold for long-term)
- Understanding the relative impact of state tax on your gain
- Illustrating deferral strategy benefits (1031, OZ, installment)
- Estimating whether NIIT will apply to your sale proceeds
- Preparing for a CPA consultation with estimated figures
- Financial education and general tax literacy
- Scenario modeling and what-if analysis
The 2026 long-term capital gains thresholds used in this calculator are: 0% rate for single filers with taxable income up to $49,450 (MFJ: $98,900); 15% rate for single filers $49,451–$545,500 (MFJ: $98,901–$613,700); and 20% rate above those thresholds, per IRS Rev. Proc. 2025-28 and CNBC/IRS reporting of October 2025.
Published: March 24, 2026
IRS Source: Rev. Proc. 2025-28
IRC Sections: §1, §121, §1202, §1231, §1250, §1411
Data Privacy: No inputs stored or transmitted