In short
No federal source gives a standard total for selling a house, so this guide gives none. Your cost is the sum of items that each have their own rule: an agent commission that is negotiable, the payoff of your mortgage, transfer taxes set by your state or locality, and the other fees in your contract. The IRS (Publication 523, 2025) says selling expenses such as commissions, advertising fees and legal fees are subtracted from the sale price when you figure your gain.
What are the main costs a seller can face?
Think of the bill in four groups. Some are set by law, some by your contract, and some depend on your loan.
| Cost | What decides it | Where to look |
|---|---|---|
| Agent commission | Negotiated. No law sets a rate | Real estate commission |
| Mortgage payoff | Your loan balance on the payoff date | Payoff statement from your servicer (below) |
| Transfer or deed tax | State and local law | Transfer tax calculator, transfer tax by state |
| Other closing items (title, escrow, recording, prorated property tax) | Local custom and your purchase contract | Closing costs explained |
| Repairs and concessions | Negotiation after the inspection and appraisal | Your sales contract |
The agent commission is the item people ask about most. Because no official source gives a percentage, Payotte does not either. What changed in 2024 and what you should ask each agent to put in writing is covered in the commission guide.
How does paying off a mortgage work at closing?
The balance you owe is paid from your sale proceeds, and you receive what is left. You do not have to guess the figure. Under 12 CFR 1026.36(c)(3), for a loan secured by a dwelling, the servicer must give you an accurate statement of the balance needed to pay the loan in full on a specified date. The statement must be sent within a reasonable time, and in no case more than seven business days after a written request from you or someone acting for you. The rule allows a longer reasonable time when a loan is in bankruptcy or foreclosure, is a reverse mortgage or shared appreciation mortgage, or after a natural disaster or similar circumstances.
The payoff is a good reason to ask early: it fixes the largest single deduction from your proceeds. The step-by-step version is in selling a house with a mortgage.
Can a prepayment penalty add to the bill?
Sometimes, on loans that include one. Under 12 CFR 1026.43(g), a covered mortgage may carry a prepayment penalty only if the rate cannot increase after closing, the loan is a qualified mortgage and it is not a higher-priced mortgage loan. The penalty cannot apply after the three-year period following closing. It cannot exceed 2 percent of the balance prepaid in the first two years, or 1 percent in the third year. Check your note or ask your servicer whether your loan has one.
How do selling costs affect the tax you owe?
Publication 523 treats selling expenses as the costs directly associated with selling your home. Its worksheet lists sales commissions, advertising fees, legal fees and loan charges the seller paid that normally fall to the buyer. You subtract them from the selling price, so they lower your gain.
For your main home, the IRS excludes up to $250,000 of gain, or $500,000 for a married couple filing jointly, if you owned and lived in the home for at least 24 months of the five years before the sale. Only gain above that limit is taxed. The IRS also says you cannot deduct a loss on the sale of your main home. A closing agent may report the sale on Form 1099-S. Details and the two-year look-back are in capital gains on a home sale.
A worked example
This example is hypothetical and uses round numbers only to show the arithmetic. Assume you sell your main home for $400,000, your agreed selling expenses (commission, advertising, legal fees) are $24,000, and your mortgage payoff is $180,000.
| Line | Amount |
|---|---|
| Sale price | $400,000 |
| Less selling expenses | -$24,000 |
| Amount realized (for tax) | $376,000 |
| Less mortgage payoff (not an expense) | -$180,000 |
| Cash before other closing items | $196,000 |
The payoff does not change your gain: it is a debt you repay, not a cost of selling. If your adjusted basis in the home were $250,000, your gain would be $126,000, which is below the $250,000 exclusion for a qualifying seller, so no federal tax would be due on it. Your own basis includes purchase price and improvements, so use Worksheet 1 in Publication 523.
Where states differ
Federal rules set how loans are paid off and how the gain is taxed. States and localities decide the transfer taxes, recording fees, who customarily pays for title insurance, whether an attorney handles the closing and what you must disclose. Use the state tables and each state’s page, for example the seller disclosure rules by state. To see what buyers pay in your state, try the closing costs calculator.
Frequently asked questions
How much does it cost to sell a house?
No official source gives one number. The total depends on the commission you negotiate, your mortgage payoff, local transfer taxes and the terms of your contract. Add those items from your own paperwork.
Is the commission set by law?
No. Agent compensation is negotiable. See the commission guide for how offers of compensation changed in August 2024.
Can I deduct selling costs on my taxes?
You subtract them from the sale price when you figure gain, according to IRS Publication 523. They are not deducted on a separate line.
Do I pay tax on the whole sale price?
No. Tax applies to gain, not to the price. A qualifying main-home seller can exclude up to $250,000 of gain, or $500,000 if married filing jointly.
Does the mortgage payoff count as a cost?
It reduces your cash at closing but does not reduce your gain. It is repayment of a debt.
General information drawn from the official sources cited and dated on this page. It is not legal, tax or financial advice: for your own situation, ask a licensed professional.
More selling guides
Sources
- Publication 523 (2025), Selling Your Home (IRS) (consulted October 20, 2026)
- 12 CFR 1026.36, Prohibited acts or practices and certain requirements for credit secured by a dwelling (Cornell LII) (consulted October 20, 2026)
- 12 CFR 1026.43, Minimum standards for transactions secured by a dwelling (Cornell LII) (consulted October 20, 2026)
- Selling Guide B3-6-05, Monthly Debt Obligations, page updated 08/05/2026 (Fannie Mae) (consulted October 20, 2026)