What Home Selling Expenses Are Tax Deductible?

When you sell your home, most of the costs you pay aren’t tax deductions in the usual sense. You don’t list them on Schedule A. Instead, the home selling expenses that are tax deductible work indirectly: some reduce the sale price the IRS uses to figure your profit, and others get added to what you originally paid for the house, raising your cost basis. Both moves shrink your taxable gain. Combined with the Section 121 exclusion of up to $250,000 for single filers or $500,000 for married couples filing jointly, careful accounting for these costs often eliminates the tax on a home sale entirely.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence

How the Gain Calculation Actually Works

The IRS formula is straightforward. Take the gross sale price, subtract your selling expenses to get the “amount realized,” then subtract your adjusted basis. What’s left is your gain. Your adjusted basis is what you paid for the home, plus qualifying improvements, minus any depreciation you claimed during periods of rental use.

If you owned the home and used it as your primary residence for at least two of the five years before the sale, you can exclude up to $250,000 of gain if you file single, or $500,000 if you file jointly.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence The two years don’t have to be consecutive. Any gain above the limit is taxed at long-term capital gains rates.2Internal Revenue Service. Topic No. 409, Capital Gains and Losses

This is why tracking every eligible selling expense and improvement matters. Every dollar you can properly attribute to one side of the equation or the other reduces the gain that has to fit under the exclusion cap.

Selling Expenses That Reduce Your Sale Price

IRS Publication 523 identifies five categories of selling expenses: sales commissions, advertising fees, legal fees, mortgage points or loan charges the seller paid for the buyer, and any other costs directly tied to completing the sale.3Internal Revenue Service. Publication 523 (2025), Selling Your Home These come off the gross sale price to give you the amount realized. Only amounts the seller actually pays count.

For most sellers, the real estate agent’s commission is by far the biggest item, typically running around 5% to 6% of the sale price. Beyond that, expenses commonly include:

  • Attorney fees for preparing closing documents or representing you at settlement.
  • Transfer taxes, stamp taxes, and similar deed-transfer charges. The IRS treats these as selling expenses, not as separate tax deductions.3Internal Revenue Service. Publication 523 (2025), Selling Your Home
  • Title insurance and escrow fees, to the extent you pay them.
  • Recording and notary fees related to the conveyance.
  • Seller-paid discount points on the buyer’s mortgage. These reduce your amount realized rather than being deductible as interest.4Internal Revenue Service. Topic No. 504, Home Mortgage Points
  • Other buyer concessions you agreed to cover. Publication 523’s catch-all for “any other fees or costs to sell your home” picks up negotiated concessions that would normally have been the buyer’s responsibility.3Internal Revenue Service. Publication 523 (2025), Selling Your Home

None of these show up on Schedule A. They appear on Form 8949 and Schedule D as part of the gain calculation.5Internal Revenue Service. About Form 8949, Sales and Other Dispositions of Capital Assets Your Closing Disclosure is the record that shows exactly which charges were allocated to you, so keep it.

Capital Improvements That Increase Your Basis

Improvements you made over the years you owned the home get added to what you paid for it, raising your basis and lowering your gain. To qualify, an improvement has to add value, extend the home’s useful life, or adapt it to a new purpose, and it needs to be a permanent addition expected to last more than a year.

Typical examples: a new roof, a new HVAC system, a room addition, a deck, an electrical panel upgrade, whole-house window replacement, or a kitchen or bathroom remodel.

The line between an improvement and a repair matters, and people miss it constantly. Replacing one broken window pane is a repair. Replacing every window with new energy-efficient units is an improvement. Repairs restore something to working order. Improvements make the property bigger, better, or longer-lasting. Patching drywall, fixing a faucet, repainting a room: those are maintenance, and they don’t add to your basis. Treating them as improvements is one of the faster ways to draw audit scrutiny.

Energy Credits Adjust Your Basis Downward

If you claimed a residential energy credit on Form 5695 for something like solar panels, a heat pump, or insulation, your basis in that improvement is reduced by the credit amount.6Internal Revenue Service. Instructions for Form 5695 – Residential Energy Credits Spent $10,000 on panels and claimed a $3,000 credit? Only $7,000 gets added to basis. Skipping this adjustment understates your gain and can surface when the IRS cross-references energy credit filings against the sale.

Restoration After a Casualty

If your home was damaged in a storm, fire, or other casualty, the cost to restore it to pre-casualty condition can be added to basis, but only after you’ve first reduced basis by any insurance reimbursement and any casualty loss deduction you claimed.7Internal Revenue Service. Publication 547 (2025), Casualties, Disasters, and Thefts Work that goes beyond restoration and genuinely improves the property counts as a capital improvement on top of that.

Costs That Feel Deductible but Aren’t

A lot of expenses tied to selling look like they should count and don’t. The general test: if the cost doesn’t permanently improve the property and isn’t required to close the transaction, it has no effect on your gain.

  • Pre-sale fix-ups like carpet cleaning, house cleaning, touch-up painting, and minor landscaping. These are personal expenses.
  • Staging and professional photography. Even though they help attract buyers, they don’t fit Publication 523’s categories.
  • Home warranties purchased for the buyer as a sales incentive.
  • Homeowner’s insurance premiums and utility bills you pay during the listing period.
  • Your remaining mortgage balance. Paying off the loan at closing settles a debt; it has nothing to do with the gain.
  • Moving costs. The moving expense deduction has been suspended for everyone except active-duty military members relocating under a permanent change-of-station order.8Internal Revenue Service. Moving Expenses to and From the United States

Two Sale-Related Costs That Actually Go on Schedule A

A couple of items tied to a home sale are genuine itemized deductions, separate from the gain calculation. You have to itemize to claim them.

Mortgage Prepayment Penalty

If your lender charges a penalty for paying off the mortgage early, that penalty may be deductible as home mortgage interest on Schedule A, as long as it isn’t a charge for a specific service.9Internal Revenue Service. Publication 936 (2025), Home Mortgage Interest Deduction

Prorated Property Taxes

Property taxes prorated to you at closing are deductible on Schedule A, not as a selling expense. They fall under the state and local tax (SALT) cap along with any state income taxes you pay.

Documentation Is on You

The burden of proving your basis and your selling expenses is entirely yours. Keep invoices, contracts, canceled checks, and before-and-after photos for every improvement project. Keep the Closing Disclosures from both your purchase and your sale. The IRS recommends holding property records for at least three years after the due date of the return for the year of sale.3Internal Revenue Service. Publication 523 (2025), Selling Your Home Keeping them longer is smarter, especially if you rolled gain from a prior home. Even when the entire gain falls under the exclusion and nothing is reportable, documenting the numbers in your personal records protects you if the IRS raises a question later.10Internal Revenue Service. What Kind of Records Should I Keep

When the Standard Rules Don’t Fully Apply

A few situations change the deductibility picture enough to flag them.

Inherited homes. If you inherited the property, your basis is generally its fair market value on the date of the previous owner’s death, not what they paid.11Internal Revenue Service. Gifts and Inheritances This stepped-up basis often wipes out most or all of the pre-inheritance appreciation, so tracking improvements from earlier years matters less than establishing the date-of-death value with a professional appraisal.

Gifted homes. Your basis is generally the donor’s adjusted basis at the time of the gift, plus any gift tax the donor paid.12Office of the Law Revision Counsel. 26 USC 1015 – Basis of Property Acquired by Gifts and Transfers in Trust A dual-basis rule kicks in if the home was worth less than the donor’s basis at the time of the gift.13Internal Revenue Service. Publication 551 (12/2025), Basis of Assets

Former rentals. If you rented the home before living in it, or vice versa, two things happen. Depreciation you claimed (or were allowed to claim) during the rental period is never sheltered by the Section 121 exclusion; it’s recaptured and taxed at up to 25% as unrecaptured Section 1250 gain, reported on Form 4797.3Internal Revenue Service. Publication 523 (2025), Selling Your Home And any period of rental use after January 1, 2009, counts as “nonqualified use,” carving a proportional slice of your gain out of the exclusion.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Sellers of converted rentals are often blindsided by this bill because they assumed the exclusion would cover everything.

The pattern to hold onto is this: on a typical primary-residence sale, the phrase “tax deductible” is misleading. Your commissions, transfer taxes, closing legal fees, and buyer concessions reduce the sale price. Your qualifying improvements raise your basis. Almost everything else, from staging to moving to the mortgage payoff, does nothing for your tax bill. Two items, the mortgage prepayment penalty and prorated property taxes, are the real Schedule A deductions in the mix. Get the categorization right, keep the paperwork, and the exclusion usually handles the rest.