A sale's closing statement includes charges that serve different purposes in the tax calculation. Identifying selling expenses separately from basis adjustments helps a seller give the tax preparer the right records.

Where selling expenses enter the calculation

IRS Publication 523 calls selling expenses "the costs directly associated with selling your home" and subtracts them from the sale price to get what it calls the amount realized. Its worksheet lists sales commissions, advertising fees, legal fees, mortgage points or other loan charges you paid that would normally have been the buyer's responsibility, and any other fees or costs to sell your home.

Where selling expenses sit in the arithmetic

The publication's order is three steps. Start with the sale price. Subtract selling expenses to get the amount realized. Subtract your adjusted basis from the amount realized to get the gain or loss. So a selling expense does the same work as a basis item: both make the gain smaller.

They are just counted at different ends of the ownership.

The five lines on the worksheet

  • Sales commissions. The publication's example is a real estate agent's sales commission.
  • Advertising fees.
  • Legal fees.
  • Loan charges you took on for the buyer. 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. This is the open line, and the publication does not list what belongs on it beyond that phrase.

What goes into the sale price before any of that

The worksheet defines the sale price as everything you received for selling the home: money, the fair market value of other property or services, any debt the buyer took over, any real estate taxes the buyer paid on your behalf, and an option payment if the option was exercised. Two things stay out. A payment for personal property is not part of the sale price.

And for anyone moving for work, the publication says a payment or reimbursement from your employer because of a job transfer is not included in the selling price; the employer reports it as wages on your Form W-2.

If you receive a Form 1099-S, the publication says the gross proceeds should appear in box 2. That is the sale price, not the net. The selling expenses are yours to subtract, which is one more reason the closing statement matters. The note on whether you have to tell the IRS you sold covers the form itself.

What the publication does not list

Paying off your own mortgage is not on the worksheet. Neither is the work done to get the house ready to show: the current publication does not use the phrase fixing-up expenses at all, and it does not name pre-sale repairs, staging or cleaning among selling expenses. Whether a particular pre-sale cost belongs on the "any other fees or costs" line is a question for your CPA, and it is worth asking before the money is spent rather than after.

Publication 523 does address repairs on the basis side. It says the costs of repairs or maintenance needed to keep the home in good condition do not go into basis, unless the repair-type work was part of an extensive remodeling or restoration job. The note on which improvements raise your basis covers that line.

Closing costs when you bought are a different list

The same publication treats the costs you paid when you bought the house separately. Some settlement fees and closing costs from the purchase, including transfer or stamp taxes and legal fees for the title search, the sales contract and the deed, go into your basis. Charges for getting the mortgage, such as points and loan origination fees, do not.

And if the seller paid points for you when you bought, the worksheet has you account for them on the basis side, on line 5h. So the purchase statement and the sale statement each feed a different line, and you want both of them.

Selling expenses can affect the gain calculation, particularly when the available exclusion does not cover the full amount. Keep the closing statement and the supporting records for the tax preparer.

Which of your costs belong on which line, whether a specific pre-sale expense counts, and what any of it does to your return belong to your CPA. I will make sure you leave the closing with the statement, and I will not tell you how to file it.

The notes on capital gains tax when you sell your house and which records to keep cover the neighboring questions, and the sellers page sets out how a sale is handled here.

Source: IRS, Publication 523 (2025), Selling Your Home: the gain or loss order (selling price, minus selling expenses, equals amount realized, minus adjusted basis), Worksheet 2 line 1 (sale price, personal property, job transfer payments, Form 1099-S box 2), line 2 (selling expenses, "the costs directly associated with selling your home"), line 5h (points the seller paid for you), the settlement fees and closing costs that can and cannot be included in basis, and the repairs and maintenance rule. Read at source October 23, 2026. Internal Revenue Code section 1001 and its regulations were not read at source for this note, and no IRS guidance on specific pre-sale costs was read.

This note is general. It is not tax or legal advice, and what your gain comes to depends on facts only your CPA can assess.