Short answer: closing costs are mostly not deductible, but they still save you tax. Sellers subtract commissions, transfer taxes, title, escrow and legal fees from the sale price as selling expenses, which lowers the taxable gain (IRS Publication 523). Buyers can deduct qualifying mortgage points (Pub. 936) and their share of property taxes, and add most other costs to the home’s basis (Pub. 530).
A note on dates: as of November 2026, the latest IRS publications are the 2025 editions, used for 2025 returns. A sale that closes in 2026 is reported on the return you file in 2027, so check the 2026 editions when they come out. Talk to a tax professional before you file.
Can You Deduct Closing Costs? The Quick Answer by Role
| Item | Seller | Buyer |
|---|---|---|
| Real estate commissions | Selling expense (reduces gain) | N/A, unless the buyer pays the seller’s commission, which adds to basis |
| Transfer tax | Selling expense, not deductible (Pub. 523) | Added to basis (Pub. 530) |
| Owner’s title insurance | Selling expense if the seller pays | Added to basis (Pub. 530) |
| Escrow, legal and recording fees | Selling expenses | Mostly added to basis (Pub. 530) |
| Mortgage points | Points the seller pays for the buyer: selling expense (Pub. 936) | Deductible if the Pub. 936 tests are met; otherwise spread over the loan |
| Property tax proration | Deductible for days owned, if itemizing | Deductible from the sale date, if itemizing |
| Mortgage interest through payoff | Deductible as mortgage interest, if itemizing | N/A |
| HOA dues and transfer fees | Not deductible | Not deductible |
| Appraisal, credit report, loan fees | N/A | Neither deductible nor added to basis (Pub. 530) |
Are Closing Costs Tax Deductible When Selling a House?
Not as an itemized deduction. Publication 523 says it directly: “There is no tax deduction for transfer taxes, stamp taxes, or other taxes, fees, and charges you paid when you sold your home.” But it continues: if you paid them as the seller, “you can treat these taxes and fees as selling expenses.”
How selling expenses lower your tax
Publication 523’s formula is:
Selling price − selling expenses = amount realized Amount realized − adjusted basis = gain or loss
Worksheet 2 in the publication lists selling expenses as:
- Sales commissions, such as the real estate agent’s commission.
- Advertising fees.
- Legal fees.
- Mortgage points or other loan charges you paid that would normally have been the buyer’s responsibility.
- Any other fees or costs to sell your home.
Every dollar of selling expenses reduces your gain by a dollar. That only saves tax if you have a taxable gain, which brings in the home-sale exclusion.
The $250,000 / $500,000 exclusion
If you owned and lived in the home as your main home for at least two of the five years before the sale, and didn’t use the exclusion on another home in the past two years, you can exclude up to $250,000 of gain, or $500,000 for a married couple filing jointly (Pub. 523). Selling expenses matter most when your gain is above that amount, or when you don’t qualify for the full exclusion.
Worked example
A single seller sells for $750,000. Closing costs, including commissions, total $41,960, using the itemized example in our California seller closing costs guide. Adjusted basis (purchase price plus improvements) is $400,000.
| Without counting selling expenses | With selling expenses | |
|---|---|---|
| Selling price | $750,000 | $750,000 |
| Selling expenses | $0 | −$41,960 |
| Amount realized | $750,000 | $708,040 |
| Adjusted basis | −$400,000 | −$400,000 |
| Gain | $350,000 | $308,040 |
| Exclusion (single) | −$250,000 | −$250,000 |
| Taxable gain | $100,000 | $58,040 |
The closing costs weren’t “deducted,” but they cut the taxable gain by almost $42,000.
What a seller can still deduct
Some items on the closing statement are deductible in the year of sale if you itemize:
- Property taxes up to the sale date. For federal purposes, the seller is treated as paying property tax up to, but not including, the date of sale, and the buyer from the date of sale on, regardless of local lien dates (Pub. 530). If you got a Form 1099-S, Pub. 523 says to start with the real estate tax you actually paid and subtract the buyer’s share shown in box 6.
- Mortgage interest through your payoff date.
- A mortgage prepayment penalty, which Pub. 936 lets you deduct as home mortgage interest as long as it isn’t for a specific service.
- Leftover points from your own loan. If you were spreading points over the life of your mortgage, you can deduct the remaining balance in the year the mortgage ends, as when you sell and pay it off (Pub. 936). The exception is a refinance with the same lender.
What a seller can’t deduct
- A loss on your main home. Pub. 523: “You can’t deduct this loss, but you don’t need to pay any tax on the money you received.”
- HOA dues and transfer fees, which Pub. 530 lists among nondeductible payments.
- Transfer tax as a tax deduction. It’s a selling expense instead.
If part of a loan is forgiven, as in a short sale, separate rules apply. See short sales in California.
Can You Deduct Closing Costs When You Buy a House?
Points (Publication 936)
Points, also called loan origination fees, discount points or maximum loan charges, are charges paid to get a home mortgage. You can fully deduct points in the year paid only if you meet all of the Pub. 936 tests, including:
- The loan is secured by your main home and used to buy or build it.
- Paying points is an established business practice in your area, and you didn’t pay more than is generally charged there.
- The points were figured as a percentage of the loan and clearly shown on the settlement statement.
- They weren’t paid in place of amounts usually listed separately, such as appraisal, inspection, title or attorney fees, or property taxes.
- The funds you provided at or before closing, plus any seller-paid points, were at least as much as the points charged, and you didn’t borrow those funds from the lender or broker.
- You use the cash method of accounting, as most individuals do.
If you miss any test, you deduct the points over the life of the loan.
Seller-paid points: the seller can’t deduct them as interest, but they’re a selling expense for the seller. The buyer treats them as if the buyer paid them and reduces the home’s basis by the same amount (Pub. 936; Pub. 530).
Property taxes paid at closing
Your share of property taxes, from the date of sale on, is deductible if you itemize, even if the seller paid the whole bill (Pub. 530).
Costs added to basis
Pub. 530 says you can add to your basis fees you’d have paid even in a cash purchase, including:
- Abstract and title search fees.
- Charges for installing utility services.
- Legal fees, including preparation of the contract and deed.
- Recording fees.
- Surveys.
- Transfer or stamp taxes.
- Owner’s title insurance.
- Amounts the seller owes that you agree to pay, such as back taxes or the seller’s commission, as long as the seller doesn’t reimburse you.
A higher basis means a smaller gain when you sell later.
Costs that are neither deductible nor added to basis
Pub. 530 lists fire insurance premiums, rent or utilities for occupying the home before closing, and loan-related charges such as loan assumption fees, credit report costs, lender-required appraisal fees and mortgage insurance premiums.
Property Tax Prorations and the SALT Limit
The property tax proration is the one recurring closing-cost item most owners can deduct. On your federal return, it falls under the state and local tax (SALT) limit. For 2025 returns, the limit is $40,000 ($20,000 married filing separately), reduced for modified AGI over $500,000 ($250,000 married filing separately), but not below $10,000 ($5,000) (Pub. 530, What’s New).
You only benefit if you itemize. If you take the standard deduction, the proration doesn’t change your federal tax.
California Conformity: What the FTB Does Differently
California generally conforms to the Internal Revenue Code as of January 1, 2025, with exceptions, and it generally does not conform to the One Big Beautiful Bill Act (2025 Schedule CA (540) instructions). For home sales and closing costs:
| Rule | Federal | California |
|---|---|---|
| Home-sale gain exclusion | $250,000 / $500,000 (Pub. 523) | Conforms (FTB) |
| Selling expenses reduce gain | Yes (Pub. 523) | Same calculation; FTB points to Pub. 523 |
| Mortgage interest debt limit | $750,000 for loans after Dec. 15, 2017 | $1,000,000 (FTB) |
| Property tax deduction cap | SALT limit ($40,000 for 2025) | No cap; California doesn’t conform to the federal limit |
| State income tax deduction | Inside the SALT limit | Not allowed |
| Mortgage insurance premiums | Pub. 936 (2025) says the deduction expired for 2025; OBBBA treats them as mortgage interest for tax years after 2025 | California does not conform to the federal mortgage insurance premium deduction (FTB summary) |
| Forgiven mortgage debt (short sale) | Federal exclusion ended for discharges after 2025 | Doesn’t conform for discharges after December 31, 2017 |
In practice: a California seller figures gain the same way on both returns, but may get a larger property tax and mortgage interest deduction on the state return than on the federal one.
Inherited and Rental Homes
The selling-expense rule still applies when you sell an inherited home or a rental: commissions, title, escrow and transfer taxes reduce the amount realized. The basis rules are different, though. Inherited property usually gets a basis based on the value at the date of death, and rental property may have depreciation to recapture. See taxes on selling inherited property in California.
Keep the Paperwork
To claim any of this, keep:
- The final seller’s or buyer’s closing statement from escrow.
- Form 1099-S, if escrow issued one.
- Your purchase closing statement and receipts for improvements, which support your basis.
- Form 1098 from your lender for interest and points.
Selling Without the Usual Costs
If you’re comparing ways to sell, fewer selling expenses also means a smaller number to track at tax time. SHH Buys Homes is a direct cash home buyer based in Upland, CA, serving Los Angeles, San Bernardino, Riverside and Orange counties. We buy as-is: no commissions, no repairs, no showings. Cash offer within 24 hours. Close in as little as 7 days. For the transfer tax side of the closing statement, see who pays transfer tax in California.
Frequently Asked Questions
Are closing costs tax deductible when selling a house? Not as a deduction on Schedule A. Under IRS Publication 523, costs you pay to sell, such as commissions, transfer taxes, title, escrow and legal fees, are selling expenses that reduce your amount realized and therefore your gain. Your share of property taxes up to the sale date and mortgage interest through payoff can be deductible if you itemize.
Can you deduct closing costs when you buy a house? Only a few. Points on a loan to buy your main home can be deductible in the year paid if you meet the IRS tests in Publication 936, and your share of property taxes paid at closing is deductible if you itemize. Most other purchase costs, such as owner’s title insurance, recording fees and transfer taxes, are added to your home’s basis instead of deducted.
Is the transfer tax deductible when I sell my house? No. IRS Publication 523 says there is no tax deduction for transfer taxes, stamp taxes or other fees you pay when you sell your home. If you paid them as the seller, you treat them as selling expenses, which lowers your gain. If a buyer pays them, they go into the buyer’s cost basis.
Does California follow the federal rules on closing costs? Mostly. California conforms to the federal home-sale exclusion of $250,000, or $500,000 for married couples, and uses the same gain calculation. It differs on itemized deductions: California allows mortgage interest on up to $1,000,000 of acquisition debt, has no cap on the property tax deduction, and does not allow a deduction for state income tax.
Can I deduct a loss on the sale of my home? No. If your selling price minus selling expenses is less than your adjusted basis, Publication 523 says you sold at a loss, you cannot deduct it, and you owe no tax on the money you received. Different rules apply to rental and investment property.
Thinking about selling and want to see your numbers? Call (626) 414-4859 or request a cash offer. This article is general information, not tax advice. Talk to a CPA or enrolled agent about your situation.
Related Services
Sources & Further Reading
This article cites primary sources from California Code, state and federal agencies, and county offices. All links open official sites.
- Publication 523 (2025), Selling Your Home — Internal Revenue Service
- Publication 936 (2025), Home Mortgage Interest Deduction — Internal Revenue Service
- Publication 530 (2025), Tax Information for Homeowners — Internal Revenue Service
- 2025 Instructions for Schedule CA (540) — California Franchise Tax Board