Written and reviewed by FinanceCruncher Editorial Team
Last reviewed 2026-07-13. Sources and assumptions are documented below.
How home sale proceeds are calculated
Selling a home is one of the largest financial transactions most households make. The number that matters on closing day is not the sale price on the contract — it is net proceeds: what remains after commissions, seller closing costs, mortgage payoff, and any capital gains tax you may owe. This guide walks through that waterfall, explains the IRC §121 primary residence exclusion, and shows when a profitable sale still creates a tax bill.
Use the home sale proceeds calculator to model your own numbers, then come back here for the rules and edge cases behind each line. Pair it with the capital gains tax calculator when you need a finer tax estimate, including state rates.
What gets deducted from your sale price
Think of net proceeds as a short waterfall. You start with the sale price, then subtract each seller obligation until only cash (or a cash shortfall) remains.
1. Agent commissions
Real estate commissions are negotiated compensation for listing and selling services. The historic 5–6% of sale price is no longer a fixed industry standard after recent NAR settlement changes; seller’s agent fees and buyer-broker compensation can be structured differently by market and listing agreement. Many sellers still use about 5% as a planning default, then replace it with the rate in their contract. A half-point difference on a $500,000 sale is $2,500 — enough to change how much cash you bring to your next purchase.
2. Seller closing costs
Sellers often pay transfer or documentary stamp taxes, portions of title and escrow fees, attorney fees in attorney-closing states, and other settlement charges. A common planning range is roughly 1–2% of sale price, but local custom matters. High-transfer-tax jurisdictions (for example parts of New York, New Jersey, and California) can push seller costs well above that range, while some states have little or no transfer tax. Buyer closing costs are a related but separate topic — see the closing costs guide and closing costs calculator.
3. Other selling costs
Staging, pre-listing repairs, home warranties offered as seller credits, and negotiated buyer credits all reduce what you keep even when they never appear as a percentage of price. Include them as dollar amounts so your estimate matches the cash you will actually spend before and at closing.
4. Mortgage payoff
Your loan servicer provides a payoff quote that covers remaining principal, accrued interest through the payoff date, and any fees. That amount is typically paid directly from sale proceeds at settlement. Extra principal payments over the years lower this line — model that path with the extra mortgage payment calculator. If the mortgage plus selling costs exceed the sale price, you may need to bring cash to closing.
After those deductions you have net proceeds before tax. Federal (and often state) capital gains tax is a separate layer that may reduce what you ultimately keep for the next home, debt payoff, or investing.
The §121 primary residence exclusion
IRC §121 lets qualifying sellers exclude up to $250,000 of capital gain ($500,000 if married filing jointly) on the sale of a main home.[1][2] That exclusion is why most ordinary home sales create little or no federal capital gains tax even after years of price appreciation.
The core tests are ownership and use: you generally must have owned the home and used it as your primary residence for at least two of the five years ending on the sale date. Married couples claiming the $500,000 exclusion typically need both spouses to meet the use test, with at least one meeting the ownership test — Pub 523 spells out the details and exceptions.[1] You generally cannot claim the full exclusion if you already excluded gain on another home sale during the two years before this sale.
Partial exclusions may apply when you move early because of health, a change in employment, or certain unforeseen circumstances. The reduced exclusion is often prorated by how long you met the two-year tests. Vacation homes and pure investment properties that never became your main home do not qualify for §121. A home you converted from rental to primary residence can raise special issues, including depreciation that cannot be excluded — talk with a tax professional before assuming the full $250,000 / $500,000 shield applies.
What counts as adjusted basis
Realized gain is roughly sale price minus adjusted basis and selling expenses. Adjusted basis usually starts with your original purchase price (plus certain purchase costs) and increases with capital improvements — work that adds value, prolongs useful life, or adapts the home to new uses.[1] A kitchen renovation, room addition, new roof, or HVAC system replacement typically counts. Painting, fixing a leaky faucet, or other routine maintenance usually does not.
Accurate records matter. Sellers who understate improvements overstate gain and can overestimate tax — or underpay if they guess wrong the other way. Keep invoices, contracts, and photos for major projects. Depreciation taken while the home was a rental reduces basis and can create taxable recapture even when other gain is excluded. Our calculator models purchase price + improvements + selling costs as a planning proxy for basis-side adjustments; your tax return may require finer IRS worksheet detail from Pub 523.
Capital gains rates on home sales
If you owned the home for more than one year, taxable gain above the exclusion (if any) is generally taxed at long-term capital gains rates of 0%, 15%, or 20% depending on your taxable income and filing status.[3] Short-term gains (held one year or less) are taxed as ordinary income. Higher-income taxpayers may also owe the 3.8% Net Investment Income Tax on taxable investment income, including taxable home-sale gain, which can push the combined federal rate toward 23.8%.[4]
Most middle-income sellers who exceed the exclusion still land in the 15% federal long-term bracket. State treatment varies: many states tax capital gains as ordinary income. California, for example, can add a substantial state layer on top of federal tax. The home sale proceeds calculator estimates federal tax only — add your state rate when you interpret after-tax cash, or refine the tax line with the capital gains tax calculator and the capital gains tax guide.
When you might owe capital gains tax on a home sale
You are more likely to owe federal capital gains tax in these situations:
- Gain exceeds the exclusion. A long-owned home in a high-appreciation market can produce more than $250,000 / $500,000 of gain even after improvements and selling costs. Only the excess is typically taxable if you otherwise qualify for §121.
- Investment or rental property. Second homes and rentals that do not meet the primary residence tests generally get no §121 exclusion. Depreciation recapture can add another tax layer.
- Fewer than two of the last five years as your main home. Short ownership, long absences, or recent conversion from rental use can fail the use test unless a partial exclusion applies.
- You used the exclusion in the prior two years. The lookback rule can block a second full exclusion even if you meet ownership and use for the current home.[1]
Large taxable gains raise modified adjusted gross income, which can affect Medicare IRMAA premiums in later years for retirees near those brackets. That is outside the calculator but worth planning for if you are on Medicare or will be soon.
Planning your next housing move
Net proceeds are often the down payment for the next home — or the reason you choose to rent temporarily after selling. Compare the long-run cost of owning versus renting with the rent vs. buy calculator and rent vs. buy guide. Re-run the home sale model with different offer prices and commission assumptions before you accept a bid; a lower sale price can look fine until commissions, transfer tax, and payoff are stacked.
This guide is educational and is not tax, legal, or financial advice. Confirm payoff figures with your servicer, settlement numbers with your closing agent, and tax treatment with a qualified tax professional or IRS Pub 523 for your facts.
Frequently asked questions
What if I used the home as a rental for part of the ownership period?
You may still qualify for a full or partial §121 exclusion if you meet the ownership and use tests for the periods that count as your main home, but depreciation taken while the property was a rental generally cannot be excluded and may be taxed as unrecaptured Section 1250 gain.[1] Mixed-use histories are fact-specific — get advice from a tax professional before estimating tax from a simplified calculator.
Does a home sale affect my IRMAA for Medicare?
It can. Taxable capital gain increases modified adjusted gross income, and Medicare uses MAGI from an earlier tax year to set Income-Related Monthly Adjustment Amount (IRMAA) brackets for Part B and Part D premiums. A one-time home-sale gain can temporarily push you into a higher IRMAA tier even if your ordinary income is unchanged. Plan timing and estimated tax with your advisor if you are near those thresholds.
When do I report a home sale on my taxes?
Many closings generate Form 1099-S reporting gross proceeds.[6] You may still need to report the sale on Form 8949 and Schedule D when there is taxable gain, certain exceptions do not apply, or you received a 1099-S.[5][2] Even when the entire gain is excludable, keep worksheets and basis records in case the IRS questions the exclusion.
What closing costs can I add to my basis?
Selling expenses such as commissions and many seller closing costs generally reduce the amount realized (or otherwise reduce gain) rather than being added to basis the way capital improvements are.[1] Purchase-side closing costs from when you bought the home can increase original basis in some cases. Do not double-count the same dollars as both an improvement and a selling expense. Pub 523 has worksheets for the distinction.
Use the calculator: Estimate commissions, payoff, exclusion, and after-tax proceeds with the home sale proceeds calculator.
Sources
- [1]Publication 523, Selling Your Home. Internal Revenue Service.↩
- [2]Topic No. 701 Sale of Your Home. Internal Revenue Service.↩
- [3]Topic No. 409 Capital Gains and Losses. Internal Revenue Service.↩
- [4]Questions and Answers on the Net Investment Income Tax. Internal Revenue Service.↩
- [5]Instructions for Schedule D (Form 1040). Internal Revenue Service.↩
- [6]Form 1099-S, Proceeds From Real Estate Transactions. Internal Revenue Service.↩