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.

Stocks + real estate + business sales Short-term vs long-term NIIT + state + local tax Home exclusion + recapture Loss offsets + timing compare 1031 / OZ / installment notes
1Asset & Basis Setup
Controls special treatment logic.
Used for home exclusion and basic bracket assumptions.
Original cost basis of the asset.
Capital improvements or basis increases.
Gross sale proceeds before selling costs.
Commissions, legal fees, and closing costs.
12+ months generally indicates long-term treatment.
Used to place the gain into tax-rate context.
2Special Treatment & Adjustment Layer
Used mainly for rental-property recapture estimates.
Losses used to offset gains.
Applies to qualifying primary residence sales.
For business-sale style modeling only.
Estimated state tax on the gain.
Optional local tax estimate.
3.8% NIIT estimate where applicable.
Compares current tax with delayed long-term treatment.
3Deferral & Planning Layer
Illustrative only, mainly relevant to investment real estate.
Illustrative deferral scenario note.
Illustrative note for spreading recognition over time.
Used for short-term or ordinary-gain treatment.
This workbench combines asset-type logic, basis changes, recapture, NIIT, state and local tax, long-term timing comparisons, and deferral illustrations in one calculator.
💰

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.

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.

1Short-Term vs Long-Term

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 PeriodTax Treatment2026 Rate Range
Under 12 monthsShort-term (ordinary)10% – 37%
12 months or moreLong-term (preferential)0% / 15% / 20%
Rental depreciationUnrecaptured §1250Max 25%
CollectiblesSpecial rateMax 28%
2How Capital Gain Is Calculated
1
Start with Gross Sale Proceeds
The total amount received from selling the asset before any deductions.
2
Subtract Your Adjusted Basis
Original purchase price plus capital improvements, minus depreciation taken (for rental property).
3
Subtract Selling Costs
Commissions, legal fees, transfer taxes, and closing costs reduce your realized gain dollar-for-dollar.
4
Apply Exclusions and Loss Offsets
Home sale exclusion (up to $500K MFJ), capital loss carryforwards, and QSBS exclusions reduce taxable gain before applying rates.
📌 The calculator handles all four steps automatically. Enter your basis, proceeds, selling costs, and any exclusions — it does the rest.
Federal Long-Term Rates 2026
0% — Single income ≤ $48,350
0% — MFJ income ≤ $96,700
15% — Single $48,351 – $533,400
15% — MFJ $96,701 – $600,050
20% — Above those thresholds
Net Investment Income Tax (NIIT)
An additional 3.8% tax applies to investment income for taxpayers above:

$200,000 — Single
$250,000 — MFJ
$125,000 — MFS
Special Rates to Know
25% — Unrecaptured §1250 depreciation (rental property)
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.

1The 7-Layer Calculation Chain
1
Net Gain Calculation
Sale price − selling costs − adjusted basis (purchase price + improvements − depreciation taken) = realized gain.
2
Exclusions Applied
Home sale exclusion ($250K single / $500K MFJ), QSBS exclusion percentage, and loss offsets reduce the taxable gain.
3
Holding Period Test
Under 12 months → ordinary income rates. 12+ months → long-term preferential rates. Collectibles always 28%. Rental recapture always 25%.
4
Federal Tax Computed
Applies 0%, 15%, or 20% long-term rate based on 2026 income thresholds, or the entered ordinary rate for short-term treatment.
5
NIIT Added if Applicable
3.8% NIIT automatically applies when taxable income + gain exceeds the threshold for your filing status ($200K Single, $250K MFJ).
6
State + Local Tax
Applies your entered state and local rates to the net taxable gain. Use your state’s capital gains rate (same as income for most states).
7
Deferral Comparison
If deferral options are toggled on (1031, Opportunity Zone, installment), the calculator models the deferred tax amount and surfaces the best planning move.
All seven layers run simultaneously in under one second. The result panel shows every component separately so you can see exactly which layer is driving your tax bill.
2Inputs Quick Reference
InputWhere to Find ItImpact
Purchase Price / BasisOriginal purchase docs, closing HUDDirectly reduces taxable gain
ImprovementsCapital improvement receiptsIncreases basis, reduces gain
Depreciation TakenPrior-year Form 4562 or Schedule ETriggers 25% recapture tax on rental
Selling CostsClosing statement, broker 1099-SReduces realized gain
Loss OffsetsSchedule D carryforward worksheetDollar-for-dollar gain reduction
State Tax RateYour state’s income tax rate (capital gains = ordinary for most states)Added to total tax
Taxable Income Before GainPrior-year return, W-2 estimateDetermines which LT rate bracket applies
3Asset Type Logic Summary
Asset TypeSpecial Logic AppliedKey Rate
Stocks / FundsStandard LT/ST treatment0% / 15% / 20%
Primary Residence$250K / $500K home exclusionLT rate on gain above exclusion
Rental PropertyDepreciation recapture at 25%25% recapture + LT on remainder
CollectiblesCapped at 28% regardless of income28% max
Business SaleQSBS exclusion % applied firstLT 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.

1State Capital Gains Rates — Common States
StateCapital Gains RateTreatmentNotes
California13.3%Ordinary income rateHighest in the US; no LT preference
New York10.9%Ordinary income rate+ NYC local up to 3.876%
New Jersey10.75%Ordinary income rateTop bracket
Oregon9.9%Ordinary income rateNo LT preference
Minnesota9.85%Ordinary income rateTop bracket
Massachusetts5.0%Flat rateLT gains taxed at flat 5%
Illinois4.95%Flat rateFlat income tax; no LT preference
Colorado4.40%Flat rateFlat income tax
Arizona2.50%Flat rateFlat income tax
North Carolina4.50%Ordinary income rateFlat tax rate
Texas0%No income taxNo state capital gains tax
Florida0%No income taxNo state capital gains tax
Washington7.0%Capital gains only tax (>$270K)Long-term gains above $270K threshold
Nevada0%No income taxNo state capital gains tax
Wyoming0%No income taxNo state capital gains tax
Pennsylvania3.07%Flat rateNo LT preference; flat rate
Ohio3.99%Ordinary income rateTop bracket
Michigan4.05%Flat rateFlat income tax
Georgia5.39%Ordinary income rateTop bracket
Tennessee0%No income taxHall tax repealed; no capital gains tax
📌 State rates shown are general estimates for 2026. Always verify with your state tax authority or CPA. Local taxes (NYC, Portland OR, etc.) stack on top of state rates — enter the combined state + local rate in the calculator.

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.

1Stock Sale — Austin, TX | Single | Long-Term
Inputs
FieldValue
Asset TypeStocks / Funds
Purchase Price$80,000
Selling Price$240,000
Selling Costs$0
Holding Period38 months (long-term)
Taxable Income Before Gain$175,000
State Rate0% (Texas)
NIIT Applies?No ($175K + $160K = $335K… auto triggers)
Results
Net Gain
$160,000
$240K − $80K
Federal Tax
$24,000
15% LT rate
NIIT
$6,080
3.8% on gain
Total Tax
$30,080
18.8% effective rate
Verdict: No state tax because Texas has no income tax. NIIT applies because total income with the gain exceeds $200K for a single filer. Planning move: harvesting any existing capital losses would reduce the NIIT base dollar-for-dollar.
2Home Sale — Chicago, IL | MFJ | Long-Term + Exclusion
Inputs
FieldValue
Asset TypePrimary Residence
Purchase Price + Improvements$320,000 + $40,000
Selling Price$750,000
Selling Costs$45,000
Home Exclusion UsedYes (MFJ = $500,000)
Holding Period84 months (long-term)
Taxable Income Before Gain$180,000
State Rate (IL)4.95%
Results
Raw Gain
$345,000
$750K − $45K − $360K
After Exclusion
$0
$345K < $500K exclusion
Total Tax
$0
Fully excluded
Net Proceeds
$705,000
$750K − $45K costs
Verdict: The $500,000 MFJ exclusion covers the entire $345,000 gain — zero federal, NIIT, or state tax owed. This is the most powerful tax exclusion in the individual tax code. Planning move: if the gain had exceeded $500K, only the excess would have been taxable.
3Rental Property Sale — Los Angeles, CA | Single | Recapture
Inputs
FieldValue
Asset TypeRental 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
Results
Net Gain
$315,000
After basis, costs, depreciation
Recapture Tax
$20,000
25% on $80K depreciation
Federal LT Tax
$47,250
20% on remaining $235K
CA State Tax
$41,895
13.3% on $315K
NIIT
$11,970
3.8% on $315K
Total Tax
$121,115
38.4% effective rate
Verdict: California’s 13.3% rate pushes the combined burden to 38.4% — one of the highest possible in the US. A 1031 exchange into another investment property would defer all $121K of tax. This is the most common reason California real estate investors use 1031 exchanges.
4Collectible Sale — New York, NY | Single | Art Collection
Inputs
FieldValue
Asset TypeCollectible
Purchase Price$120,000
Selling Price$380,000
Selling Costs$22,800 (6% auction fee)
Holding Period72 months
State Rate (NY)10.9%
Local Rate (NYC)3.876%
Taxable Income$300,000
Results
Net Gain
$237,200
$380K − $22.8K − $120K
Federal Tax (28%)
$66,416
28% collectibles rate
NY + NYC Tax
$35,093
10.9% + 3.876% combined
NIIT
$9,013
3.8% on gain
Total Tax
$110,522
46.6% combined rate
After-Tax Proceeds
$246,678
Net cash after all taxes
Verdict: The 28% federal collectibles rate plus NYC’s combined 14.776% state+local rate creates a brutal 46.6% combined tax rate — nearly half the gain goes to taxes. Charitable donation of the art instead of a sale could convert a $110K tax bill into a $237K charitable deduction at ordinary income rates.
5Business Sale — Seattle, WA | MFJ | QSBS Exclusion
Inputs
FieldValue
Asset TypeBusiness 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 Period72 months
State Rate (WA)7% (on gains >$270K)
Taxable Income$280,000
Results
Raw Gain
$1,114,000
$1.2M − $36K − $50K
After 50% QSBS
$557,000
Taxable portion
Federal LT Tax (20%)
$111,400
20% on $557K
NIIT
$21,166
3.8% on $557K
WA State Tax
$77,980
7% on gain > $270K
Total Tax
$210,546
18.9% effective rate
Verdict: The 50% QSBS exclusion cuts federal tax nearly in half. If the shares had been held for 5+ years as fully qualifying QSBS (§1202), the exclusion could be 100% — resulting in zero federal tax on the entire $1.114M gain. Washington’s new capital gains tax applies to gains above $270K, adding meaningful state cost.

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.

📅
Tip 1 — Cross the 12-Month Line Before Selling
The difference between 11 months and 12 months can be the difference between a 37% rate and a 15% rate. If a gain will be large, waiting a few extra weeks to clear the 12-month threshold is almost always worth it. Run both scenarios in the calculator to see the exact dollar difference before deciding.
TimingAll asset typesFree
📉
Tip 2 — Harvest Capital Losses Before Year-End
Capital losses offset gains dollar-for-dollar with no limit. If you have unrealized losses in your portfolio, sell those positions before December 31 to generate losses that reduce your current-year gain. You can immediately repurchase similar (not identical — 30-day wash sale rule) assets to maintain your market exposure.
Loss harvestingDec 31 deadlineStocks
🏠
Tip 3 — Use the $500K Home Exclusion Strategically
The §121 primary residence exclusion ($250K single / $500K MFJ) requires 2 of the last 5 years as your primary home. Married couples who are renting their former home should track this window carefully — if the 5-year clock runs out, the exclusion is lost. The calculator models how much remains taxable if the exclusion only partially covers your gain.
Home sale2-of-5 rule§121
🔄
Tip 4 — Defer Rental Gains with a 1031 Exchange
A §1031 like-kind exchange lets you defer all capital gains and depreciation recapture tax indefinitely when you swap one investment property for another. There is no limit on the number of times you can 1031. The calculator illustrates the amount of tax deferred if you toggle the 1031 option on — this single strategy is why wealthy real estate investors rarely pay capital gains tax.
Real estate§1031Unlimited deferral
🌱
Tip 5 — Opportunity Zone Investments for Gain Deferral
If you invest capital gains proceeds into a Qualified Opportunity Fund within 180 days, you can defer federal capital gains tax until 2026 (the deadline for existing investments) and potentially exclude future appreciation entirely after 10 years. This is especially powerful for taxpayers in high-tax states who have already triggered a large gain. Toggle the OZ option in the calculator to see the illustrated deferral amount.
OZ fund180-day window10-year exclusion
📋
Tip 6 — Installment Sales Spread the Tax Burden
Selling a business or investment property on an installment basis lets you recognize the gain over multiple years rather than all at once. This can keep you in a lower capital gains bracket each year, avoid bumping the NIIT threshold, and prevent phaseouts from triggering. Use the installment sale toggle to estimate how much of your gain deferred to future years reduces this year’s bill.
Business saleReal estateMulti-year recognition
🎁
Tip 7 — Gift Appreciated Assets to Low-Income Family Members
If you gift appreciated stock or property to a family member in the 0% capital gains bracket (income under $48,350 for single filers in 2026), they can sell and owe zero federal capital gains tax. This is especially useful for funding college or retirement for lower-income family members. Beware the Kiddie Tax rules for children under 19 — consult a CPA before gifting to minors.
Gift strategy0% bracketFamily planning
🏛️
Tip 8 — Donate Appreciated Assets to Charity (Skip the Tax Entirely)
Donating appreciated stock or property directly to a qualified charity means you never recognize the gain — you skip capital gains tax entirely and get a charitable deduction for the full fair market value. A $100K stock position with a $20K basis donated to charity avoids $12K–$20K in capital gains tax while generating a $100K deduction at your ordinary income rate. This strategy dominates selling and donating cash.
CharitySkip CGT entirely§170
Quick-Reference: Which Strategy Fits Which Situation?
SituationBest StrategyTax ImpactKey Requirement
Stock sale, < 12 months heldWait for long-term treatmentRate cut from 37% to 15–20%Hold 12+ months
Stock sale + portfolio lossesTax-loss harvestingDollar-for-dollar gain offsetSell losers before Dec 31
Home sale with large gain§121 exclusionUp to $500K excludedLive in home 2 of last 5 yrs
Rental property sale in CA / NY1031 exchangeDefer all gain + recapture indefinitelyLike-kind investment property
Large one-time business saleInstallment sale or QSBS exclusionSpread gain or exclude up to 100%QSBS: held 5+ years, §1202 qualifying
Appreciated stock, generous personDonate directly to charityZero CGT + full FMV deduction501(c)(3) qualified org
New capital gain just triggeredOpportunity Zone fund investmentDefer federal tax; exclude future gainInvest within 180 days
High-income family, lower-income kidsGift appreciated assetsSell at 0% LT rateRecipient 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.

What is capital gains tax and when do I owe it?
Capital gains tax is owed whenever you sell a capital asset — stocks, real estate, collectibles, or business interests — for more than your adjusted basis (what you paid plus improvements, minus depreciation). The tax is owed in the year of the sale. If you had a gain but did not sell, you owe nothing — unrealized gains are not taxed.
What is the capital gains tax rate for 2026?
For long-term gains (assets held 12+ months), the 2026 federal rates are: 0% for taxable income up to $48,350 (single) or $96,700 (MFJ); 15% for most middle-income taxpayers; and 20% for single filers above $533,400 or MFJ above $600,050. Short-term gains are taxed as ordinary income at 10%–37%. An additional 3.8% NIIT applies to high earners above $200K (single) or $250K (MFJ).
Does the home sale exclusion apply to investment properties?
No. The §121 home sale exclusion ($250K single / $500K MFJ) only applies to your primary residence. You must have lived in the home as your primary residence for at least 2 of the 5 years before the sale. Rental properties, vacation homes, and investment properties do not qualify — though rental property owners may have access to 1031 exchange deferral instead.
What is depreciation recapture and how does it affect my taxes?
When you sell rental property, the IRS requires you to pay tax on the depreciation deductions you claimed during ownership — this is called unrecaptured §1250 recapture, taxed at a maximum rate of 25%. For example, if you claimed $80,000 in depreciation, up to $80,000 of your gain is taxed at 25% (the recapture portion), and the remainder is taxed at your long-term capital gains rate. The calculator handles this automatically when you select “Rental Property” and enter your depreciation taken.
What is the Net Investment Income Tax (NIIT)?
The NIIT is an additional 3.8% tax on investment income — including capital gains — for taxpayers above certain income thresholds: $200,000 for single filers and $250,000 for married filing jointly. It applies to the lesser of (a) your net investment income or (b) the amount by which your modified adjusted gross income exceeds the threshold. This calculator estimates NIIT automatically based on your entered income and gain.
How does a 1031 exchange save on capital gains tax?
A §1031 like-kind exchange allows you to defer all federal capital gains tax and depreciation recapture when you sell one investment property and reinvest the proceeds into another “like-kind” investment property within specific time windows (45 days to identify, 180 days to close). The gain is not eliminated — it is deferred until you eventually sell without doing another 1031. Many real estate investors chain 1031 exchanges throughout their lifetime and pass the property to heirs who receive a stepped-up basis, potentially eliminating the deferred gain permanently.
Can I use capital losses to offset capital gains?
Yes — capital losses offset capital gains dollar-for-dollar with no limit. If your losses exceed your gains, up to $3,000 of the excess can be deducted against ordinary income per year, and any remaining losses carry forward to future years indefinitely. For example: $50,000 in gains + $30,000 in losses = $20,000 net taxable gain. Enter your loss offsets in the calculator’s “Capital Loss Offsets” field.
What is the wash sale rule and how does it affect loss harvesting?
The wash sale rule (IRC §1091) disallows a capital loss if you buy “substantially identical” securities within 30 days before or after the sale. This means you cannot sell a stock at a loss and immediately repurchase the same stock to capture a tax loss. You can immediately buy a similar (but not identical) security — for example, selling an S&P 500 ETF and buying a total market ETF. The 61-day window runs from 30 days before the sale through 30 days after.
Are collectibles like art, gold, and coins taxed differently?
Yes. Collectibles — which include art, antiques, coins, stamps, wine, and physical gold and silver — are subject to a special 28% maximum federal tax rate on long-term gains, regardless of your ordinary income tax bracket. This is higher than the 20% maximum for most other long-term capital assets. Short-term collectible gains are still taxed at your ordinary income rate. The calculator automatically applies the 28% rate when you select “Collectible” as the asset type.
What is QSBS (Qualified Small Business Stock) and how does it work?
Under IRC §1202, gains from selling Qualified Small Business Stock (QSBS) can be partially or fully excluded from federal capital gains tax: 50% exclusion if the stock was acquired before February 18, 2009; 75% if acquired between February 18, 2009 and September 27, 2010; and 100% if acquired after September 27, 2010 (and held for 5+ years). The company must be a domestic C-corporation with gross assets under $50 million at the time of issuance. California and some other states do not conform to this exclusion, meaning state tax may still apply even if federal tax is zero.
How do I find my adjusted cost basis for stocks?
Your broker is required to report your cost basis on Form 1099-B for securities purchased after 2011. For older shares, you may need to find original purchase confirmations. Common basis methods include: FIFO (first shares bought = first shares sold), LIFO, specific identification (you choose which lot to sell), and average cost (only for mutual funds). Using specific identification gives you the most control over your tax outcome — you can choose to sell high-basis shares first to minimize the gain.
Is this capital gains calculator free?
Yes. The Capital Gains Tax Planning Workbench on USFinanceCalculators.com is completely free to use with no account, subscription, or payment required. It runs entirely in your browser and supports PDF download and WhatsApp sharing at no cost. The results are estimates for planning purposes — consult a licensed CPA or tax advisor before making tax decisions.
How does inherited property work with capital gains tax? (Stepped-Up Basis)
When you inherit an asset — stocks, real estate, collectibles, or business interests — the IRS resets your cost basis to the fair market value (FMV) on the date of the original owner’s death. This is called a stepped-up basis under IRC §1014. It effectively eliminates all capital gains tax on appreciation that occurred during the deceased owner’s lifetime.

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.
What happens to capital gains when you gift appreciated property during your lifetime?
When you gift appreciated property during your lifetime, the recipient inherits your original cost basis — this is called a carryover basis. The recipient will owe capital gains tax on the full gain from your original purchase price when they eventually sell, not just the appreciation after the gift date.

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.
Are cryptocurrency sales subject to capital gains tax in 2026?
Yes. The IRS treats cryptocurrency as property, not currency — meaning every sale, exchange, or disposal of crypto is a taxable capital gains event. This includes selling Bitcoin or Ethereum for USD, swapping one crypto for another, using crypto to buy goods or services, and receiving staking rewards or mining income (taxed as ordinary income when received, then as capital gains when sold).

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.
Can I deduct capital losses from stocks against real estate gains?
Yes — all capital gains and losses from all asset types are netted together on Schedule D. Short-term gains and losses are netted first, long-term gains and losses are netted second, and then the two nets are combined.

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.
What is the difference between realized and unrealized capital gains?
Unrealized gains (also called “paper gains”) exist when an asset you still own has increased in value above your purchase price. You owe zero tax on unrealized gains — they are not a taxable event until you sell.

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.
How do capital gains affect my Medicare premiums (IRMAA)?
Large capital gains can temporarily increase your Medicare Part B and Part D premiums through the Income-Related Monthly Adjustment Amount (IRMAA). Medicare uses your MAGI from 2 years prior — so a large sale in 2026 can increase your 2028 Medicare premiums.

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.
Do I owe estimated quarterly taxes on capital gains?
Yes, if your capital gains are large and not covered by withholding from your paycheck or pension. The IRS requires taxpayers to pay tax as they earn income throughout the year. If you expect to owe $1,000 or more in federal income tax (after withholding), you must make quarterly estimated tax payments using Form 1040-ES — due April 15, June 16, September 15, and January 15.

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.
How are mutual fund and ETF distributions taxed for capital gains?
Mutual funds and ETFs must distribute capital gains to shareholders each year when the fund sells holdings at a profit internally — even if you never sold your own shares. These capital gains distributions are taxable in the year received and reported on your Form 1099-DIV (Box 2a for long-term, Box 2b for unrecaptured §1250 gain, Box 2d for collectibles).

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.
What is tax-gain harvesting and when does it make sense?
Tax-gain harvesting is the opposite of tax-loss harvesting — it means deliberately realizing capital gains in a year when your rate will be unusually low. It is the mirror image strategy and is equally valid.

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.
Run both scenarios in this calculator — enter your current taxable income and compare what happens if you realize the gain this year vs. next year.
What is the difference between Section 1231, 1245, and 1250 gains for business assets?
These three IRC sections govern how gains on business property are taxed — and they stack on top of each other:

§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.