When you sell your house for a profit, the sale price first goes to pay off your mortgage and any other liens, then covers real estate commissions and closing costs, and only what remains is yours. Most of that remainder is tax-free: federal law lets a single filer exclude up to $250,000 of the gain, and a married couple filing jointly up to $500,000, if the ownership and use tests are met.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Anything above the exclusion is taxed as a long-term capital gain. Once the settlement agent finishes the math, your net proceeds are wired to your bank account, usually one to two business days after closing.
What Comes Out of the Sale Price First
Before you see a dollar of profit, every debt secured by the property has to be paid off. The settlement agent requests a payoff statement from your mortgage lender showing the exact amount needed to retire the loan, including interest accrued through the expected closing date. If your mortgage carries a prepayment penalty, that is added in. The full payoff comes straight out of the sale price at closing.
Other recorded claims against the property must also be cleared so the buyer receives clean title. Property tax liens generally take priority over other claims, including federal tax liens, under most state laws.2Office of the Law Revision Counsel. 26 USC 6323 – Validity and Priority Against Certain Persons Unpaid property taxes, judgment liens, and contractor liens are all settled from the gross sale proceeds before anything reaches you.
Real estate commissions are typically the largest transaction cost. Historically, total commissions have hovered around 5 to 6 percent of the sale price, split between the listing agent and the buyer’s agent.3Board of Governors of the Federal Reserve System. Commissions and Omissions – Trends in Real Estate Broker Compensation Other costs deducted at closing include:
- Title insurance for the buyer, protecting against future ownership disputes.
- Transfer taxes charged by state or local governments when the deed changes hands. Rates vary widely.
- Escrow and settlement fees paid to the neutral third party handling closing.
- Recording fees for the local recorder’s office to file the new deed.
- Any seller concessions you agreed to contribute toward the buyer’s closing costs. For conventional loans, seller contributions are capped between 3 percent and 9 percent of the sale price, depending on the buyer’s loan-to-value ratio.4Fannie Mae. Interested Party Contributions (IPCs)
All of these appear line-by-line on your closing disclosure and settlement statement.
How Your Taxable Profit Is Calculated
Your gain is not simply the sale price minus what you originally paid. The IRS lets you increase your cost basis by adding capital improvements you made while you owned the home, and a higher basis means a smaller taxable gain.
Capital improvements are projects that add value, extend the home’s useful life, or adapt it for a new purpose. Common examples include adding a bathroom, replacing a roof, installing central air conditioning, finishing a basement, building a deck, or upgrading electrical systems.5Internal Revenue Service. Publication 523, Selling Your Home Small repair-type work done as part of a larger remodel, like patching drywall during a full kitchen renovation, counts along with the rest of the project.
Routine maintenance and repairs do not increase your basis. Painting walls, fixing a leaky faucet, filling cracks, and replacing broken hardware are upkeep, not improvements.5Internal Revenue Service. Publication 523, Selling Your Home Improvements you installed and later removed, such as carpet you replaced, don’t count either. Keep receipts, contracts, and invoices for major work, because you will need them to document your basis if the IRS asks.
A simple example: you bought for $300,000, spent $40,000 on a new roof and kitchen renovation, and sold for $600,000. Your adjusted basis is $340,000, so your gain is $260,000. A single filer could exclude $250,000, leaving $10,000 subject to capital gains tax.
The $250,000 and $500,000 Tax Exclusion
The single biggest tax benefit for home sellers is the exclusion under Section 121 of the Internal Revenue Code. A single filer can exclude up to $250,000 of the gain from federal income tax. A married couple filing jointly can exclude up to $500,000, as long as at least one spouse owned the home and both spouses used it as a principal residence for the required period.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence
To qualify, you must have owned and lived in the home as your primary residence for at least two of the five years before the sale. Those 24 months don’t have to be consecutive. You also can’t have used the exclusion on another home sale within the two years before this one.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence
If you fall short of the two-year requirement because of a job relocation, a health condition, or certain unforeseen circumstances, a partial exclusion may still apply. The reduced amount is proportional to how much of the two-year period you actually met. Someone who lived in the home for one year before a qualifying job move could exclude up to $125,000 as a single filer or $250,000 as a married couple filing jointly.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence
Federal Tax on the Portion Above the Exclusion
Any profit above the Section 121 exclusion is taxed as a long-term capital gain, assuming you owned the home for more than a year. For the 2026 tax year, long-term capital gains are taxed at 0 percent, 15 percent, or 20 percent depending on your total taxable income:6Internal Revenue Service. Revenue Procedure 2025-32
- 0 percent if taxable income is $49,450 or less for single filers, $98,900 or less for married filing jointly, or $66,200 or less for heads of household.
- 15 percent above the 0 percent threshold and up to $545,500 (single), $613,700 (married filing jointly), or $579,600 (head of household).
- 20 percent on income above those 15 percent ceilings.
Many sellers overlook the 0 percent bracket. If the home sale is your main income event for the year, some or all of the taxable gain can land in the 0 percent bracket and owe no federal capital gains tax.
Net Investment Income Tax
If your modified adjusted gross income exceeds certain thresholds, the taxable portion of your gain may also be hit with an additional 3.8 percent Net Investment Income Tax. The thresholds are $200,000 for single filers, $250,000 for married filing jointly, and $125,000 for married filing separately.7Internal Revenue Service. Topic No. 559, Net Investment Income Tax The excluded portion of the gain is not counted, so the NIIT applies only to the amount above your Section 121 exclusion.
Depreciation Recapture
If you claimed depreciation on part of the home because you used a room as a home office or rented out a portion of the property, the Section 121 exclusion does not cover the gain tied to that depreciation. Any depreciation you took, or were entitled to take, after May 6, 1997, must be recaptured and reported separately.5Internal Revenue Service. Publication 523, Selling Your Home The recaptured portion is taxed at a maximum rate of 25 percent, higher than the standard long-term capital gains rate.8Internal Revenue Service. Topic No. 409, Capital Gains and Losses
State Capital Gains Taxes
Federal tax isn’t the whole picture. Most states also tax capital gains from home sales, generally at the same rate as ordinary income. Rates range from 0 percent in states with no income tax to over 13 percent in states like California. Roughly nine states, including Florida, Texas, Nevada, and Wyoming, impose no state income tax and therefore no state capital gains tax. A few states without a general income tax, like Washington, still impose a separate capital gains tax. Check your state’s rules before estimating your total bill, because the combined federal and state hit can be considerably larger than the federal number alone.
Do You Have to Report the Sale?
Whether the sale shows up on your tax return depends on two things: whether your gain is fully excluded, and whether you received a Form 1099-S from the settlement agent. If the whole gain is excluded under Section 121 and no Form 1099-S was issued, you generally don’t need to report the sale at all.5Internal Revenue Service. Publication 523, Selling Your Home
If you did receive a Form 1099-S, report the sale on Form 8949 even if no tax is owed, because the IRS already has a copy and will expect to see it on your return.9Internal Revenue Service. About Form 8949, Sales and Other Dispositions of Capital Assets The totals from Form 8949 carry over to Schedule D of your Form 1040.
Settlement agents are usually required to file Form 1099-S. They can skip it when the sale price is $250,000 or less ($500,000 or less for married sellers) and you give them a written certification that the home was your principal residence and the entire gain is excludable.10Internal Revenue Service. Instructions for Form 1099-S Without that certification, the form is filed regardless of price.
When You Actually Get the Money
After every deduction, the settlement agent distributes your net proceeds. Funds are typically wired directly to your bank account once the local recorder’s office confirms the deed transfer, which usually takes one to two business days after closing. The final settlement statement shows the sale price minus each specific deduction.
Wire fraud is a real risk at this stage. Criminals sometimes impersonate settlement agents and send fake wiring instructions to redirect your proceeds. Verify wire details by calling your settlement agent at a number you obtained independently, not one pulled from an email. Never send funds based on emailed instructions alone.
What If the Sale Turns Into a Loss Instead?
If the sale price ends up below what you paid, you cannot deduct the loss on your federal tax return. The IRS treats a home you live in as personal-use property, and losses on personal-use property are not deductible.11Internal Revenue Service. Capital Gains, Losses, and Sale of Home The rule applies no matter the size of the loss. The one exception involves property used in a trade or business or held for investment: if you rented out the home or used part of it as a business, the portion allocated to that use may generate a deductible loss.