Taxes on Selling a House: Capital Gains Exclusion and Estimating Seller Net Proceeds

Taxes on Selling a House: Capital Gains Exclusion and Estimating Seller Net Proceeds

When you sell a primary residence, federal capital gains tax applies only to profit above the IRS Section 121 exclusion of $250,000 for single filers or $500,000 for married couples filing jointly, provided you owned and lived in the home for at least 2 of the last 5 years. Taxable gain equals the sale price minus eligible selling costs and adjusted cost basis, not the mortgage payoff. For 2026, federal long-term capital gains rates on gain above the exclusion are 0%, 15%, or 20% depending on taxable income.

A sunlit suburban kitchen with light wood cabinets, a granite island, and sliding glass doors opening onto a shaded backyard patio and mature trees.
Interactive Calculator

Capital Gains Tax on Selling a House Calculator

Estimate federal and state capital gains tax on a home sale after cost basis, capital improvements, selling costs, and IRS Section 121 exclusion.

Sale & Basis
$
$
$
Major remodels, roof, additions (not routine repairs).
Tax Assumptions
%
%
Set 0% for no-income-tax states; adjust to your state rate.
Estimated Capital Gains Tax$0Combined federal + state estimate after IRS Section 121 exclusion.
Net Capital Gain$236,000
Taxable Gain After Exclusion$0
Tax Saved by Exclusion$47,200
Gain & Tax Breakdown
After-Tax Profit Kept$236,000100%
Federal Capital Gains Tax$00%
State Capital Gains Tax$00%
With Primary Residence Exclusion vs. Without
ScenarioEstimated TaxAfter-Tax Profit
Your selected filing status$0$236,000
If no Section 121 exclusion ($0)$47,200$236,000
Assumptions: Illustrative estimate for long-term holdings (>1 year). Does not model depreciation recapture on rentals, state-specific surtaxes, or 1031 exchanges. Consult a CPA for tax filing.
Walk sellers through live net proceeds at the listing table
Stairtop pairs live MLS comps and Time-to-Offer predictions with interactive seller net proceeds so sellers see what they actually walk away with at every price.
Preview a Seller Presentation

Key takeaways

  • Separate tax advice from net-proceeds math: Explain the baseline IRS exclusion rules and hand tax calculations to a CPA, while keeping the listing appointment focused on cash net proceeds and pricing.

  • Clarify that mortgage payoff does not cut taxes: Remind sellers that paying off a mortgage lowers cash proceeds at closing but has no effect on taxable capital gain.

  • Document basis and selling costs early: Have sellers gather their original closing statement and capital improvement receipts before listing, since commissions, closing costs, and improvements directly reduce taxable gain.

  • Show list-price trade-offs side by side: Compare realistic list prices against both estimated cash net proceeds and predicted days to pending so sellers see why overpricing costs more than a modest adjustment.

"How much will I owe in taxes if I sell?" comes up at nearly every listing appointment with long-term homeowners, usually right when the conversation turns to list price. When a seller worries that taxes and selling costs will wipe out their equity, they cling to an inflated asking price or hesitate to approve a necessary price improvement later. Real estate agents should never give tax advice or calculate a client's tax bill. That call belongs to a CPA, but knowing the baseline IRS exclusion rules lets you keep the pricing conversation grounded and move cleanly into estimating actual seller net proceeds.

How does the $250,000 and $500,000 capital gains exclusion work?

Under federal law, most homeowners who sell their primary residence exclude up to $250,000 of capital gain if filing single, or up to $500,000 if married filing jointly, according to IRS Topic No. 701. You do not have to roll the proceeds into another home to claim this exclusion.

To qualify for the full exclusion under Internal Revenue Code Section 121, a seller must satisfy three rules during the five-year period ending on the sale date:

  • Ownership test: You owned the home for at least 24 months (2 years) out of the last 5 years. For married couples filing jointly, either spouse can meet this test.

  • Use test: You lived in the home as your main residence for at least 24 months (2 years) out of the last 5 years. The 24 months do not need to be consecutive, and ownership and use can happen in different 2-year windows. For joint filers, both spouses must meet the use test individually.

  • Lookback rule: You generally have not excluded gain from selling another main home during the 2 years prior to this sale.

Sellers who move before hitting 2 years because of a job relocation, health reasons, or unforeseen circumstances (such as divorce or death) may still qualify for a partial exclusion, which a CPA can calculate using IRS Publication 523. If a seller receives Form 1099-S at closing or cannot exclude all of their gain, they must report the sale on Form 8949 and Schedule D.

Once a seller sees whether they are likely inside or above the exclusion cap, the listing appointment still hinges on a practical question: what will they actually walk away with at different list prices? Instead of scribbling rough estimates on a notepad or handing over a static PDF, many listing agents use Stairtop to put live seller net proceeds and predicted time to offer on screen in about a minute.

How do selling costs, improvements, and mortgage payoff affect taxable gain?

Taxable capital gain on a home sale is not the sale price minus the original purchase price, and it is never reduced by paying off a mortgage. IRS Publication 523 defines the calculation in two steps:

  1. Sale price minus eligible selling expenses = Amount realized.

  2. Amount realized minus adjusted basis = Capital gain or loss.

Two line items routinely surprise sellers because they directly lower taxable gain:

  • Selling expenses: Real estate agent sales commissions, advertising fees, legal fees, transfer or stamp taxes paid by the seller, and mortgage points or loan charges the seller pays on the buyer's behalf all reduce the amount realized. For a full breakdown of transaction fees, see our guides on how much seller closing costs are and who pays real estate agent fees.

  • Adjusted cost basis: Basis starts with the original purchase price plus certain buyer closing costs paid at purchase (such as owner's title insurance, recording fees, abstract fees, survey fees, and transfer taxes). Documented capital improvements that add value, prolong the home's useful life, or adapt it to new uses (and are still part of the home at sale) also raise basis. Examples in IRS Publication 523 include room additions, a new roof, siding, central air conditioning, a furnace, kitchen modernization, built-in appliances, new flooring, a water heater, or a driveway.

Routine maintenance and repairs, such as interior or exterior painting, fixing leaks, filling cracks, or replacing broken hardware, do not increase basis unless they are part of an extensive remodeling or restoration project. Sellers who claimed energy tax credits or subsidies on improvements like solar panels must subtract those credits from basis.

Just as important at the listing table is clearing up the mortgage myth. According to the IRS property basis FAQ, paying off a mortgage does not change the amount of capital gains tax due. A mortgage payoff reduces the seller's cash net proceeds at closing dollar for dollar, while taxable gain depends solely on amount realized minus adjusted basis. Losses on the sale of a personal residence are not tax-deductible, per IRS Topic No. 409.

If a seller's gain exceeds the Section 121 exclusion, the excess is taxed based on holding period and total taxable income:

  • Short-term gain (held 1 year or less): Taxed at ordinary federal income tax rates.

  • Long-term gain (held more than 1 year): For tax year 2026 under IRS Revenue Procedure 2025-32, federal long-term capital gains rates are 0% up to $49,450 of taxable income for single filers ($98,900 married filing jointly), 15% up to $545,500 single ($613,700 married filing jointly), and 20% above those thresholds.

  • Net Investment Income Tax (NIIT): High-income sellers may also owe an extra 3.8% tax under IRS Topic No. 559 on the lesser of net investment income or modified adjusted gross income above $200,000 (single) or $250,000 (married filing jointly). Gain excluded under Section 121 is not subject to NIIT.

  • Depreciation recapture: If the home was ever rented out or used for a depreciated home office, prior depreciation is not sheltered by the exclusion and can be taxed up to 25% as unrecaptured Section 1250 gain under IRS Topic No. 409.

How do list price choices change seller net proceeds and taxable gain?

Every $25,000 change in list price changes both cash net proceeds and potentially taxable gain by less than $25,000, because percentage-based selling costs move with the sale price.

The numbers below are a hypothetical illustration for a primary residence owned and lived in for more than 2 years, not tax advice. Every seller should verify their cost basis, exclusion eligibility, and tax brackets with a CPA.

Hypothetical scenario:

  • Original purchase price: $500,000

  • Documented capital improvements: $40,000 (such as a new roof and kitchen modernization)

  • Adjusted basis: $540,000

  • Remaining mortgage payoff: $300,000

  • Illustrative selling costs (commissions and closing costs): Six percent of the sale price

At a $900,000 sale price, illustrative selling costs equal $54,000, leaving an amount realized of $846,000. Subtracting the $540,000 adjusted basis leaves a $306,000 realized gain. A married couple filing jointly who meets the 2-of-5-year test excludes up to $500,000, leaving $0 potentially taxable. A single filer excludes $250,000, leaving $56,000 potentially taxable. Meanwhile, estimated cash net proceeds before any tax are $546,000 ($900,000 minus $54,000 selling costs minus $300,000 mortgage payoff).

Here is how three realistic list prices compare under the same assumptions:

Line item (hypothetical illustration)

$875,000 Sale

$900,000 Sale

$925,000 Sale

Illustrative selling costs (commissions and closing costs)

$52,500

$54,000

$55,500

Amount realized

$822,500

$846,000

$869,500

Adjusted basis

$540,000

$540,000

$540,000

Realized capital gain

$282,500

$306,000

$329,500

Potentially taxable gain (Single, $250k exclusion)

$32,500

$56,000

$79,500

Potentially taxable gain (Married filing jointly, $500k exclusion)

$0

$0

$0

Estimated cash net proceeds before tax (after $300k payoff)

$522,500

$546,000

$569,500

Notice two things that immediately calm an anxious seller at the table. First, moving from $900,000 to $875,000 lowers pre-tax cash net proceeds by $23,500 (not $25,000) and also trims a single filer's potentially taxable gain by $23,500. Second, stretching to $925,000 to chase an extra $23,500 before tax (and less after tax if above the exclusion) is a poor trade if comps show $925,000 will sit stale and force a steeper reduction later. You can explore how commission and closing-cost assumptions shift cash proceeds in our seller net sheet guide and real estate commission calculator.

Traditional net-sheet spreadsheets and static CMA printouts show one frozen price at a time, so testing $875,000 versus $900,000 means recalculating by hand while the seller loses focus. In Stairtop, dragging the list price inside the Seller Presentation updates seller net proceeds and predicted days to pending simultaneously, so the seller sees the real trade-off on screen.

How do state taxes apply when selling a house?

State capital gains rules depend entirely on where the property sits and where the seller files, so sellers should confirm state liability with a CPA before closing. While several states levy no personal income tax, many high-appreciation states tax capital gains above the federal exclusion with no preferential lower rate.

Two concrete examples show how state rules and closing paperwork differ:

  • California: The California Franchise Tax Board (FTB) conforms to the federal $250,000 single and $500,000 married or registered-domestic-partner joint exclusion under the 2-of-5-year rule. However, California has no lower rate for capital gains; any taxable gain above the exclusion is taxed as ordinary state income. California also requires real estate withholding on Form 593 as a prepayment of state income tax unless the seller qualifies for an exemption. Sellers of a qualifying primary residence must submit a signed Form 593 certifying their principal-residence exemption to escrow before closing.

  • Utah: Utah income tax starts from federal adjusted gross income, so gain excluded under federal Section 121 is not taxed by Utah. Utah has no separate capital gains rate; any remaining taxable gain is taxed at Utah's flat individual income tax rate of 4.45% for 2026 under Utah Code Section 59-10-104, reduced from 4.5% in 2025 by S.B. 60.

What 5 questions should a seller bring to their CPA before listing?

Handing a seller a short CPA checklist keeps you inside your license boundary while making you the most prepared agent they interview. Give sellers these five questions before you go live on the MLS:

  1. Do we qualify for the full $250,000 or $500,000 exclusion? Confirm both the 2-of-5-year ownership and use dates, filing status, and whether any partial-exclusion exception applies if they owned the home for less than 2 years.

  2. Which purchase costs and home improvements count toward our adjusted basis? Bring the original closing disclosure, contractor invoices for major upgrades, and records of any energy tax credits that must be subtracted from basis.

  3. Does any prior rental use or home-office depreciation affect our sale? Ask whether depreciation recapture or nonqualified-use allocation applies to any portion of the gain.

  4. What combined federal and state rate would apply to gain above the exclusion? Have the CPA check 2026 long-term brackets, potential Net Investment Income Tax exposure, and state tax treatment at the target list price.

  5. What closing forms or estimated tax payments should we plan for? Confirm Form 1099-S certification at closing, any state withholding exemption forms (such as California Form 593), and whether quarterly estimated payments are needed after closing.

How do you walk a seller through net proceeds in Stairtop?

Once a seller has their CPA questions in hand, your job at the listing appointment is turning the pricing conversation from guesswork into clear market evidence. Before you walk through the front door, you enter the property address in Stairtop and generate a Seller Presentation from live MLS data in about a minute.

In the room, you open the presentation and drag the list price across realistic scenarios, such as $925,000, $900,000, and $875,000, right beside the curated comps. As the price moves, Stairtop updates live seller net proceeds in real time, adjusting listing and buyer commissions, closing costs, and public-record mortgage payoff estimates alongside the live Time-to-Offer curve. Listings launched with Stairtop Seller Presentations sold faster than the market median 93% of the time and 11 days faster to pending on average. Instead of arguing over an inflated asking price, the seller sees what they keep and how long the home is likely to sit, and you leave with a listing priced to sell.

What should you do before your next listing appointment?

Before your next pre-listing meeting with a long-term homeowner, send them the five CPA questions above so tax anxiety does not hijack your pricing discussion. Then build an interactive net-proceeds and pricing walkthrough before you arrive: Try Stairtop with any street address to preview a live Seller Presentation in about a minute.

Frequently asked questions

Do I pay capital gains tax when I sell my primary home?

Most primary-residence sellers owe no federal capital gains tax if their profit stays within the IRS Section 121 exclusion of $250,000 for single filers or $500,000 for married couples filing jointly. To qualify for the full exclusion, you must have owned and lived in the home as your main residence for at least 2 of the 5 years before the sale date. Only capital gain above your exclusion limit is potentially taxable.

How does the $250,000 and $500,000 capital gains exclusion work?

Under IRS Section 121, single filers can exclude up to $250,000 of capital gain and married couples filing jointly can exclude up to $500,000. You must pass both the 2-year ownership test and the 2-year use test during the 5 years ending on the sale date, and you generally cannot have used the exclusion on another home within the prior 2 years. For joint filers, either spouse can meet the ownership test, but both spouses must meet the use test individually.

Which home improvements raise my cost basis?

Under IRS Publication 523, capital improvements that add value, prolong the home's useful life, or adapt it to new uses increase your adjusted basis if they are still part of the home at sale. Qualifying examples include additions, a new roof, central air conditioning, kitchen modernization, new flooring, or a new water heater. Routine maintenance and repairs, such as interior or exterior painting or fixing leaks, do not raise cost basis unless completed as part of an extensive remodeling or restoration project.

Do real estate commissions and closing costs reduce capital gains tax?

Yes, eligible selling expenses directly reduce your amount realized, which lowers your capital gain dollar for dollar. IRS Publication 523 includes real estate sales commissions, advertising fees, legal fees, seller-paid transfer or stamp taxes, and buyer mortgage points paid by the seller as selling expenses. Confirm which line items on your closing disclosure qualify with a CPA.

How do California and Utah state taxes apply to home sales?

Both California and Utah follow the federal primary-residence exclusion, so excluded gain is generally not taxed by either state. Neither state offers a lower rate for capital gains. California taxes taxable gain above the exclusion as ordinary state income and requires Form 593 real estate withholding unless the seller certifies a principal-residence exemption before closing, while Utah taxes remaining taxable gain at its flat 4.45% individual income tax rate for 2026 under Utah Code Section 59-10-104.

Related guides