{{ summaryTitle }} {{ summaryValue }} {{ summaryLine }} Taxable gain {{ money(values.taxable_gain) }} {{ percent(values.effective_tax_rate_percent) }} effective NIIT {{ money(values.niit_tax) }} {{ summaryAnnouncement }}
Sale and federal tax inputs
Choose the return year that will include the sale.
Use the filing status expected on the return containing this gain.
Confirm holding period and special-rate treatment from your records or adviser.
Enter a rate only when a qualified source gives you the applicable percentage.
%
Use the gross amount from the broker, exchange, or closing statement.
$
Basis can differ from purchase price; verify inherited, gifted, split, reinvested, and adjusted lots.
$
Enter only costs that properly reduce the gain for this sale.
$
Enter taxable income after deductions but before this gain, not gross wages.
$
Use a nonnegative amount already verified as available against this modeled gain.
$
Choose only an exclusion amount you have confirmed applies to this sale.
$
Use the closest Form 8960 MAGI estimate; it can differ from taxable income.
$
NIIT applies to the lesser of modeled net investment gain or MAGI above the statutory threshold.
{{ include_niit ? 'Enabled' : 'Disabled' }}
{{ workflowFeedback }}
Keep $0 when the visible cost basis already includes every adjustment.
$
Keep $0 unless a qualified source gives you a specific adjustment.
$
Keep 0% for federal-only output.
%
0% is neutral; increase it to compare lower and higher gross proceeds.
%
{{ tableExportStatus }}
LayerAmountRule or meaningCopy
{{ row.label }}{{ row.value }}{{ row.note }}
Rate path

{{ treatmentExplanation }}

Scenario range

{{ scenarioExplanation }}

Before acting

Verify basis, holding period, annual loss netting, special-rate gain amounts, exclusions, NIIT inputs, and state rules. Use the applicable Schedule D or Qualified Dividends and Capital Gain Tax Worksheet for filing.

Source version

{{ values.source_label }}. IRS rules reviewed 2026-08-12.

{{ chartExportStatus }}

Selling an investment, digital asset, collectible, or home does not make the sale price taxable by itself. The starting point is gain: the amount realized from the sale minus adjusted basis and allowable selling costs. Basis may differ sharply from the original purchase price after reinvestments, splits, inherited or gifted property rules, capital improvements, and prior adjustments.

Tax treatment then depends on the asset and holding period. A gain is generally long term when the asset was held for more than one year and short term when held for one year or less. Most net long-term gains use preferential federal rates, while short-term gains are taxed through ordinary income brackets. Collectibles and unrecaptured section 1250 gain have separate maximum-rate treatment.

Capital gains terms and why they affect an estimate
TermPractical meaningWhy it matters
Adjusted basisThe supported tax cost of the asset after applicable adjustmentsA higher valid basis reduces realized gain
Taxable income before gainIncome after deductions, excluding the modeled gainLong-term gain stacks above it across the 0%, 15%, and 20% ranges
Modified adjusted gross incomeThe income measure used for the Net Investment Income TaxIt is not the same input as taxable income and has separate thresholds

Capital losses, a qualified main-home exclusion, and other verified adjustments can reduce the modeled taxable gain, but each requires its own eligibility and documentation. A dollar entered as an offset is not proof that the tax return permits it.

Federal capital-gain tax is also only part of the possible liability. The 3.8% Net Investment Income Tax (NIIT), state or local tax, depreciation recapture, installment-sale rules, wash sales, multiple tax lots, and other return items can change the result. An estimate is useful for sale planning and comparison, not for deciding asset classification or filing a return.

How to Use This Tool:

Use figures from the return year and records for the exact asset or lot being modeled.

  1. Choose the Tax year, expected Filing status, and verified Gain treatment. The treatment choice must come from the asset facts, not from the lowest displayed estimate.
  2. Enter gross Sale proceeds, adjusted basis before any separate additions, and selling costs that properly reduce this sale's gain.
  3. Enter taxable income before the gain. Add only capital loss offsets and a main-home exclusion amount already confirmed as available for this transaction.
  4. For an NIIT estimate, enter modified adjusted gross income before this gain and leave the 3.8% option enabled. Add verified basis adjustments, other gain adjustments, or a state rate only when supported.
  5. Review Taxable gain, the federal and NIIT lines, and After-tax proceeds. Recheck basis, holding period, gain character, and exclusions before relying on the total.

Interpreting Results:

Total tax is the sum of the modeled federal gain tax, optional NIIT, and the user-supplied flat state or local amount. Effective tax rate divides that total by taxable gain, so it is not a marginal bracket and should not be applied to the full sale price.

  • Realized gain is before modeled losses and exclusions. Taxable gain is what remains after those reductions.
  • The 0%, 15%, and 20% rows show how a standard long-term gain is stacked above other taxable income. Crossing a threshold moves only the dollars above that boundary into the next rate range.
  • After-tax proceeds subtracts selling costs and modeled tax from gross proceeds. It does not subtract basis because basis is the capital recovered through the sale, not a cash payment made at closing.
  • A low or zero estimate is not proof that no tax is due. Compare it with Schedule D, Form 8949, Form 8960, property records, and jurisdiction-specific rules or have a qualified professional review it.

Technical Details:

The model covers individual U.S. federal estimates for tax years 2025 and 2026. It first computes one sale's realized gain, applies nonnegative offsets in a fixed order, and then taxes the remainder according to the selected treatment.

Formula Core

Realized gain subtracts adjusted basis, additional basis, and selling costs from gross sale proceeds.

Grealized=PBAC

P is sale proceeds, B is adjusted cost basis before separately entered additions, A is additional basis, and C is selling costs. Loss offsets are applied first, then an eligible home exclusion when main-home treatment is selected, then any other verified gain adjustment. Each deduction is capped at the gain still remaining, so taxable gain cannot fall below 0.

Gtaxable=max(0,GrealizedLHX)

Rule Core

Federal gain treatment rules used by the estimate
TreatmentFederal rule
Standard long term or qualified home-sale remainderAllocate gain across the 0%, 15%, and 20% ranges, then use the lower of that amount and the incremental ordinary-income tax.
Short termOrdinary tax on taxable income plus gain minus ordinary tax on taxable income before gain.
Collectibles or taxable section 1202 gainIncremental ordinary tax with each bracket rate capped at 28%.
Unrecaptured section 1250 gainIncremental ordinary tax with each bracket rate capped at 25%.
Custom federal rateTaxable gain multiplied by the entered flat percentage.

For standard long-term gain, other taxable income fills each capital-gain range first. The following values are the maximum taxable-income amounts for the 0% and 15% rates. Income above the second amount enters the 20% range.

2025 and 2026 long-term capital gain rate boundaries by filing status
YearFiling status0% maximum15% maximum
2025Single$48,350$533,400
2025Married filing jointly$96,700$600,050
2025Married filing separately$48,350$300,000
2025Head of household$64,750$566,700
2026Single$49,450$545,500
2026Married filing jointly$98,900$613,700
2026Married filing separately$49,450$306,850
2026Head of household$66,200$579,600

NIIT is modeled at 3.8% on the lesser of taxable gain and modified adjusted gross income above the filing-status threshold.

NIIT=0.038×min(Gtaxable,max(0,M+GtaxableT))

The threshold T is $200,000 for single or head of household, $250,000 for married filing jointly, and $125,000 for married filing separately. M is MAGI before the modeled gain. A state or local amount, when entered, is simply taxable gain multiplied by the supplied flat rate. Monetary outputs are rounded to cents.

Limitations:

This is an educational sale estimate, not tax, legal, or financial advice. It does not determine eligibility or reproduce a complete federal or state return.

  • Loss offsets are entered as an already verified amount; Schedule D netting and the annual deduction rules are not calculated.
  • Main-home options model only an exclusion amount. Ownership, use, timing, prior-sale, partial-exclusion, depreciation, and reporting tests remain outside the estimate.
  • Lot selection, wash sales, inherited and gifted basis, installment sales, business property, partnership interests, and depreciation recapture beyond the selected maximum-rate treatment may require different calculations.
  • The state or local line uses one flat rate and does not model brackets, sourcing, deductions, exclusions, credits, or residency rules.

Worked Example:

A 2026 single filer with a long-term sale

A $100,000 sale with $50,000 basis and $2,000 selling costs creates a $48,000 taxable gain when no offset applies. With $40,000 of other taxable income, the first $9,450 fills the remaining 0% range and $38,550 enters the 15% range. Federal gain tax is $5,782.50. With no NIIT or state amount, after-tax proceeds are $92,217.50. The result changes if basis, gain character, losses, MAGI, or jurisdictional rules differ.

References: