2026 principal-residence tax planning

2026 Home Sale Capital Gain Calculator

Work out the tax gain—not the cash at closing—in six short steps. The calculator first checks whether a simplified main-home path fits, then separates selling expenses, adjusted basis, the supported Section 121 exclusion, and potentially taxable gain.

Use this only for your return’s documented share of an ordinary 2026 U.S. main-home sale. Rental use, depreciation, nonqualified use, inherited or gifted basis, installment treatment, and other special facts need the current IRS worksheets instead of a shortcut.

1Choose the sale situation

This prevents a simple personal-residence formula from being used when the property history changes basis, exclusion, or reporting.

What this calculator answers

This calculator answers a deliberately narrow question: after documenting an ordinary 2026 sale of a personal main home, what are the amount realized, adjusted basis, gain or loss, supported home-sale exclusion used, and remaining potentially taxable gain? It does not estimate the tax bill until those earlier amounts are known. That sequence prevents a common error—putting sale proceeds or cash from closing directly into a capital-gains tax rate calculator.

The supported route is for the ownership share reported on one return. If two unrelated co-owners file separate returns, each generally needs a separate calculation based on that person’s allocated sale price, expenses, basis, and exclusion. State property law, title, contracts, divorce instruments, and tax rules can affect the allocation. An unresolved share belongs in the special-facts stop path.

Cash proceeds and tax gain are different

A seller can receive little cash and still have a tax gain, or receive substantial cash while having a smaller gain. Cash at closing usually starts with sale proceeds, then subtracts transaction charges, mortgage and lien payoffs, credits, and other settlement debits. Tax gain instead compares amount realized with adjusted basis. A mortgage payoff affects the seller’s cash because a lender must be repaid, but paying debt does not by itself reduce the property’s gain.

Use the Home Sale Proceeds Calculator for expected cash after payoff and other seller costs. Use this page for the federal gain sequence. Keeping both calculations side by side is much more useful than forcing unrelated cash and tax items into one opaque number.

The IRS home-sale gain formula

IRS Publication 523 begins with the selling price. Subtract selling expenses to calculate the amount realized. Then subtract adjusted basis from amount realized. A positive answer is gain; a negative answer is loss. In compact form: sale price − selling expenses = amount realized; amount realized − adjusted basis = gain or loss.

“Selling expenses” does not mean everything a homeowner happened to pay near moving day. Publication 523 identifies commissions, advertising fees, legal fees, and seller-paid loan charges as examples of direct sale costs. Moving expenses, a mortgage principal payoff, and the ordinary cost of living elsewhere do not become selling expenses merely because they occur around closing. Some preparation work may affect cash, some work may qualify as a basis improvement, and some is neither. Classify each item from records instead of using one broad “closing costs” total.

Example: gain fully covered by a $250,000 exclusion

Assume the documented sale price for the return’s share is $700,000 and supported selling expenses are $42,000. Amount realized is $658,000. If documented starting basis is $350,000, supported improvements are $50,000, and required non-depreciation reductions are zero, adjusted basis is $400,000. Gain is $258,000. If the completed eligibility review supports a $250,000 maximum exclusion, $8,000 remains potentially taxable before the rest of the return is considered.

Example: mortgage payoff changes cash, not gain

Suppose the same seller owes $300,000 on the mortgage. That payoff can reduce cash delivered at closing by roughly $300,000, subject to interest and fees, but it does not reduce the $258,000 gain. The loan financed the property; the seller’s debt balance is not a second purchase price. The cash calculator uses the payoff quote. The gain calculator does not.

When the $250,000 exclusion may apply

Under the continuing Section 121 framework described by IRS Topic 701 and Publication 523, an individual may be able to exclude up to $250,000 of gain from a qualifying main-home sale. Generally, during the five-year period ending on the sale date, the taxpayer must have owned the home for at least 24 months and used it as a main home for at least 24 months. The ownership and residence periods do not have to be the same two years, but the detailed exceptions and counting rules still matter.

The home also must be the taxpayer’s main home. A person with multiple residences ordinarily has only one main home at a time, determined from facts such as where the person spends most time and other evidence described by the IRS. Vacation or investment property does not become eligible simply because the owner prefers to label it a residence after the sale.

The lookback rule generally prevents the full exclusion if the taxpayer excluded gain from another home during the two-year period ending on the current sale date. Publication 523 also lists automatic disqualifiers, including certain like-kind exchanges during the previous five years and expatriate-tax status. Qualified extended duty, disability, separated-spouse use, and other rules can modify the standard analysis. This calculator makes the user complete that analysis outside the arithmetic rather than guessing from two dates.

The joint $500,000 maximum requires more than filing jointly

A married couple filing jointly may qualify for an exclusion of up to $500,000, but joint filing alone is not enough. Generally, either spouse must meet the ownership test, both spouses must individually meet the residence test, and neither spouse can have an exclusion problem under the two-year lookback rule. The rules can also address a deceased spouse and certain prior homes, but those facts should be checked in the current publication.

If the completed review supports only $250,000 on the joint return, select that supported maximum. Do not select $500,000 merely because two names appear on the deed or return. Conversely, one spouse does not necessarily need to have held title for both spouses to satisfy the joint ownership component, because the general test requires either spouse to meet ownership while both satisfy residence.

A partial exclusion is a worksheet result, not a guess

A seller who does not meet the standard ownership, residence, or lookback conditions may still qualify for a reduced exclusion when the primary reason for sale is a qualifying work-related move, health-related move, or unforeseeable event. Publication 523 provides safe harbors, facts-and-circumstances guidance, and Worksheet 1 for the maximum partial exclusion.

The reduced maximum is generally built from the shortest qualifying ownership, residence, or no-prior-exclusion period, but special rules determine the numerator and permitted reason. A job change, medical circumstance, divorce, death, unemployment change, multiple birth from one pregnancy, condemnation, casualty, or other event is not automatically enough without the applicable conditions. This tool therefore asks for the amount from the completed worksheet instead of asking users to choose a number of months and silently deciding the legal question.

Starting basis is not always purchase price

For a straightforward purchase, basis generally begins with the amount paid for the home. Certain settlement and closing costs connected with buying the property may be added, such as specified abstract, recording, legal, survey, title, transfer-tax, and owner-paid seller costs. Loan-related charges such as points, mortgage insurance premiums, credit-report fees, and appraisal fees required by the lender generally do not become basis merely because they appeared at closing.

A home received by gift, inheritance, bargain sale, trade, divorce transfer, surviving-spouse or community-property rule, foreclosure, or another nonstandard transaction can have a basis that is not the recipient’s cash paid. Those paths can require fair-market-value information, the prior owner’s basis, gift-tax adjustments, date-of-death values, or other rules. They stop this simplified calculator because a wrong starting basis contaminates every later number.

Improvements can increase basis; routine repairs usually do not

An improvement generally adds value, prolongs useful life, or adapts the home to a new use. Examples can include additions, a new roof, substantial systems, permanent landscaping, accessibility work, and other capital improvements. The cost is added only when the item remains part of the home at sale and the tax rules support the treatment. Documentation should identify what was done, when, the amount, and the property it affected.

Routine maintenance and repairs that keep the home in ordinary condition generally do not increase basis. Painting a room, fixing leaks, or replacing small broken parts ordinarily does not become a capital improvement on its own. A repair performed as part of a larger restoration may be treated differently. Do not convert years of household spending into basis by adding every receipt.

The amount to enter is supported cost, not the improvement’s current market value and not the amount an online estimator says it added to sale price. Homeowner labor does not create basis for the value of personal time. Insurance reimbursements, credits, subsidies, and other recovery can also affect what remains in basis.

Basis reductions matter as much as additions

Publication 523 lists events that can reduce basis. Examples can include certain energy credits or subsidies, insurance payments for casualty losses, deductible casualty losses, easement payments, adoption credits for improvements, and other recovered or deferred amounts. The relevant amount depends on the specific provision and year. A basis worksheet should preserve each adjustment rather than netting everything into an unexplained total.

Depreciation allowed or allowable for rental or business use is also a basis reduction, but it has additional consequences: gain attributable to post-May 6, 1997 depreciation generally cannot be excluded, and reporting can involve unrecaptured Section 1250 gain or Form 4797. Because that is more than a subtraction, the calculator sends every depreciation situation to the specialist path instead of accepting depreciation in the ordinary reduction field.

Rental use and nonqualified use require the full worksheet

A home can satisfy the ownership and residence tests even after a rental period, but that does not mean all gain is excludable. Depreciation allowed or allowable after May 6, 1997 generally remains outside the exclusion. A physically separate business or rental portion can require allocation. Publication 523’s exact result depends on whether the business space was within the living area, the period of use, and other facts.

For periods after 2008, gain allocable to certain “nonqualified use” can also be nonexcludable. The definition has important exceptions, including some periods after the last qualified use within the five-year window and qualified official extended duty. The calculation uses days owned and qualifying or nonqualifying periods; it is not safely represented by a single “months rented” field. Use Worksheet 3 and qualified guidance for this path.

A loss on a personal main home is generally not deductible

If amount realized is less than adjusted basis, the result is a loss. IRS guidance states that a loss on the sale of a personal main home is not deductible. The calculator reports the economic loss and zero potentially taxable gain, but it does not turn the loss into a capital-loss deduction. Business or rental portions can follow different rules and are outside the simplified path.

A zero or negative result should still be documented. Form 1099-S, mixed-use facts, debt discharge, related-party transactions, or other reporting circumstances can require attention even when no taxable personal gain appears in this simplified arithmetic.

Potentially taxable gain is not the tax bill

After subtracting the supported exclusion, remaining gain may be taxable. The federal rate then depends on holding period, capital-loss netting, taxable income, filing status, special-rate categories, and the full return. A home meeting the full two-year ownership test will ordinarily have a long holding period, but partial- or no-exclusion paths still require the actual acquisition and sale dates and applicable holding-period rules.

Only after the amount is verified should an eligible net long-term amount be tested with the 2026 Long-Term Capital Gains Tax Calculator. That calculator stacks eligible gain above ordinary taxable income; it does not determine basis or the home-sale exclusion. Short-term gain, depreciation-related gain, collectibles, Section 1202 gain, and other special categories need different treatment.

The separate 3.8% Net Investment Income Tax can apply to some nonexcluded real-estate gain when modified adjusted gross income crosses the statutory threshold. Gain properly excluded under the principal-residence rule is not included as net investment income, but nonexcluded gain may be. After completing the return-specific Form 8960 inputs, use the 2026 Net Investment Income Tax Calculator for that separate test. State and local income-tax rules can differ from federal treatment.

Reporting can apply even when the exclusion covers the gain

IRS Topic 701 says a sale generally must be reported on Form 8949 when taxable gain remains, the taxpayer chooses not to claim the exclusion, or Form 1099-S was received. Schedule D may also be required. When the entire gain is excludable and no Form 1099-S was received, federal reporting may not be required, subject to the current instructions and other facts.

Reconcile Form 1099-S gross proceeds with the settlement statement and return’s ownership share. If the form reports the whole property but only part belongs on one return, or if multiple forms exist, do not force the gross figure into the calculator without resolving allocation and reporting. Business or rental portions may require Form 4797. Installment payments can require Form 6252. Debt cancellation, foreclosure, expatriate status, and like-kind exchange history can add other forms or limitations.

A practical record checklist

  1. Collect the purchase closing statement, deed, and documents establishing the starting ownership share and basis.
  2. Build an improvement ledger from contracts, invoices, proof of payment, permits, and dates; separate repairs and removed items.
  3. Document every basis reduction, reimbursement, subsidy, credit, easement payment, casualty event, and period of business or rental use.
  4. Reconcile the sale contract, Closing Disclosure or settlement statement, Form 1099-S, direct selling expenses, and the share reported on the return.
  5. Complete the Publication 523 Eligibility Test and, when applicable, Worksheet 1 and Worksheet 3 before choosing the exclusion ceiling.
  6. Carry only the supported taxable category into the current Form 8949, Schedule D, Form 4797, Form 6252, tax software, or professional review that actually applies.

Keep the gain worksheet separate from the seller cash worksheet. For the larger housing decision, connect sale cash, tax gain, replacement housing, and time horizon with the Rent vs. Buy Guide and Mortgage Planning Guide.

Official sources and 2026 filing caveat

IRS Publication 523, Selling Your Home (2025) is the current comprehensive publication available when this page was reviewed. It supplies the eligibility test, partial-exclusion worksheet, amount-realized and adjusted-basis worksheets, nonqualified-use calculation, depreciation treatment, and reporting workflow. IRS Topic 701, Sale of Your Home summarizes the $250,000 and $500,000 limits, joint ownership and residence tests, prior-exclusion rule, and reporting triggers.

The Instructions for Form 8949 explain sale reporting and Form 1099-S reconciliation. The Instructions for Form 4797 address business-property reporting, while IRS Topic 559 explains the separate Net Investment Income Tax framework. Check the official Publication 523 revision page for later developments and the filing-year revision used with the 2026 return.

The $250,000 and $500,000 maximums are not estimated 2026 inflation adjustments; they are the continuing principal-residence exclusion limits in current IRS guidance. Final reporting still follows the forms and instructions applicable to the 2026 sale and return filed in 2027.

This calculator provides educational federal tax-planning arithmetic for a narrow, documented 2026 personal main-home sale. It is not tax preparation or tax, legal, accounting, real-estate, investment, or financial advice. It does not determine main-home status, ownership share, basis, expense classification, exclusion eligibility, partial-exclusion reason, holding period, depreciation, nonqualified use, capital-loss netting, tax rate, NIIT, state tax, reporting, withholding, refund, or balance due. Verify every amount with current IRS forms and instructions, transaction and property records, tax software, and qualified guidance before filing or acting. Official sources were accessed July 27, 2026.