You cannot deduct realtor fees from capital gains as a line item on your tax return, but the commission still reduces the tax you owe. The IRS treats it as a selling expense that comes off the sale price before your gain is calculated, so a $27,000 commission on a $500,000 sale shrinks the number the tax is measured against by that full amount.1Internal Revenue Service. Publication 523 (2025), Selling Your Home
Where Realtor Fees Actually Sit in the Math
There are two different ways a cost can lower your tax bill on a property sale. One is an itemized deduction on Schedule A, alongside things like mortgage interest. The other is a selling expense that feeds into the capital gains calculation. Realtor commissions belong to the second group. They never appear on Schedule A. Instead, they get subtracted from the gross sale price to produce a smaller figure the IRS calls the “amount realized.”1Internal Revenue Service. Publication 523 (2025), Selling Your Home
The practical effect is the same as a deduction: less tax. The form is different, and the form matters when you’re filling out the return, because you won’t find a “realtor commission” box to check anywhere. The commission simply reduces the sale number you report.
The Full Calculation, With Numbers
Three figures drive the outcome:
- Gross sale price: what the buyer paid.
- Amount realized: gross sale price minus commissions, closing costs, transfer taxes, and other selling expenses.
- Adjusted basis: what you originally paid, plus qualifying purchase settlement costs, plus capital improvements made during ownership.
Your taxable capital gain is the amount realized minus the adjusted basis.2Internal Revenue Service. Topic No. 409, Capital Gains and Losses The gain gets reported on Form 8949 and flows through to Schedule D.3Internal Revenue Service. About Form 8949, Sales and Other Dispositions of Capital Assets
A worked example: you bought for $300,000 and paid $5,000 in qualifying settlement costs at purchase. During ownership you spent $40,000 on a new roof and kitchen renovation. Your adjusted basis is $345,000. You sell for $550,000, paying $30,000 in realtor commissions and $5,000 in other closing costs. Your amount realized is $515,000. Your gain before any exclusion is $515,000 minus $345,000, or $170,000. Without the $30,000 commission in the math, the gain would have been $200,000.
Other Selling Expenses That Work the Same Way
The commission is usually the biggest number, but Publication 523 lists other costs that reduce the amount realized in the same fashion:1Internal Revenue Service. Publication 523 (2025), Selling Your Home
- Legal fees tied to the closing.
- Advertising to market the property.
- Transfer taxes paid by the seller.
- Owner’s title insurance provided to the buyer.
- Loan charges you paid that were normally the buyer’s responsibility, such as mortgage points.
Home staging sits in a gray area. Publication 523 doesn’t name it, though it includes a catch-all for “any other fees or costs to sell your home.” The argument for treating staging as a selling expense is reasonable, but the IRS hasn’t issued explicit guidance. If you spent meaningfully on staging, keep the invoices and get a tax professional’s read before you file.
Improvements Work at the Other End of the Equation
Selling expenses reduce the top of the equation. Capital improvements reduce the bottom by raising your adjusted basis. Both shrink the gain; they just enter the math at different points.
Improvements are expenditures that add value, extend the property’s useful life, or adapt it to a new use. Publication 551 gives examples:4Internal Revenue Service. Publication 551, Basis of Assets
- Additions like a new bedroom, bathroom, deck, garage, or porch.
- Systems like central air conditioning, a new furnace, or rewiring.
- Exterior work like a complete roof replacement or new siding.
Purchase settlement costs count too. Title search fees, survey fees, legal fees, recording fees, transfer taxes, and owner’s title insurance from your original closing all add to basis.1Internal Revenue Service. Publication 523 (2025), Selling Your Home Many owners lose track of these by the time they sell, which is why the original closing paperwork is worth keeping.
Routine maintenance doesn’t qualify. Repainting, patching drywall, fixing a leaky faucet, or replacing hardware is upkeep, not improvement.4Internal Revenue Service. Publication 551, Basis of Assets The line can be blurry: patching a few shingles is a repair, replacing the whole roof is an improvement. Document everything and let the tax preparer sort it out at sale time.
Why the Commission Still Matters if You Qualify for the Home Sale Exclusion
The Section 121 exclusion wipes out up to $250,000 of gain for single filers and up to $500,000 for married couples filing jointly, provided you owned and lived in the home as your primary residence for at least two of the five years before sale, and did not claim the exclusion on another sale within the prior two years.5Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence6Internal Revenue Service. Topic No. 701, Sale of Your Home
Even so, the commission still does work. The exclusion applies after the gain is calculated, not before. Your commission and other selling expenses reduce the gain first; the exclusion is then tested against whatever remains. If the gain is comfortably under the cap, the commission’s effect is invisible in the tax outcome but the math still runs through it. If the gain runs over the cap, every dollar of selling expense pulls a dollar off the taxable overage. In high-appreciation markets, that’s often where realtor fees do their most valuable work.
Partial exclusions are available if you sell early because of a job change, health condition, or certain unforeseen circumstances, prorated by how much of the two-year period you completed.7Internal Revenue Service. Property (Basis, Sale of Home, Etc.) 4
Rental and Investment Property
The Section 121 exclusion doesn’t cover investment or rental property, so every dollar of gain is on the table and the commission’s role becomes more consequential. It still reduces the amount realized the same way. Two extra tax layers sit on top.
First, depreciation recapture. If you claimed depreciation on a rental (or were required to and didn’t), the depreciation portion of the gain is taxed at a maximum rate of 25% as unrecaptured Section 1250 gain. The rest of the gain is taxed at the regular long-term capital gains rate.8Office of the Law Revision Counsel. 26 USC 1 – Tax Imposed On a property held long enough to build up substantial depreciation, this can be a large and unpleasant number.
Second, higher earners may owe an additional 3.8% Net Investment Income Tax on gain that isn’t excluded under Section 121, once modified adjusted gross income exceeds $200,000 for a single filer or $250,000 for a married couple filing jointly.9Office of the Law Revision Counsel. 26 USC 1411 – Imposition of Tax
A 1031 like-kind exchange is a separate path: reinvest into a similar investment property and defer the gain entirely. Realtor commissions paid from the exchange proceeds count as exchange expenses that reduce the amount realized rather than as taxable “boot.” Attorney fees, title insurance, escrow, and intermediary fees work the same way.
Inherited Property
Inheritance changes the basis math. When you inherit real estate, your basis is generally the property’s fair market value on the date of the previous owner’s death, not what they originally paid.10Internal Revenue Service. Gifts and Inheritances The realtor commission still reduces the amount realized the same way. A property inherited at a $400,000 stepped-up basis, sold for $420,000 with $22,000 in commissions and closing costs, produces an amount realized of $398,000, which is actually a small loss against basis. The primary residence exclusion generally doesn’t apply to inherited property unless you moved in and personally met the ownership and use tests.
What to Keep
Every selling expense and basis adjustment needs a paper trail. The IRS baseline is to keep property records until the statute of limitations expires for the tax year of sale, generally three years after the return’s due date.11Internal Revenue Service. How Long Should I Keep Records Most tax professionals suggest seven years, because the IRS has six years to challenge a return that underreports income by more than 25%.
The Closing Disclosure from the sale is the single most important document. Page two breaks out the commission, transfer taxes, title insurance, and other settlement charges in the exact amounts the IRS expects to see.12Consumer Financial Protection Bureau. Closing Disclosure Keep it with your original purchase Closing Disclosure, receipts and contractor invoices for every capital improvement, and, if a prior 1031 exchange brought basis into the current property, the records from that earlier transaction as well.11Internal Revenue Service. How Long Should I Keep Records
Underreporting a gain can trigger a 20% accuracy-related penalty on the underpayment, rising to 40% for gross valuation misstatements such as an adjusted basis claimed at more than double the correct figure.13Office of the Law Revision Counsel. 26 USC 6662 – Imposition of Accuracy-Related Penalty on Underpayments The paperwork is the defense.