Selling here
Do you pay taxes when you sell your house in Massachusetts?
Not on the first $250,000 of profit on your main home, or $500,000 on a joint return, if you owned and lived in it for at least two of the five years before the sale and haven't used this break on another home sale in the past two years; Massachusetts follows the federal rule. Above that, or on a house that wasn't your main home, you'd owe income tax.
First, work out your real profit
Your profit, or gain, isn't simply the sale price minus what you paid. Start with the sale price and subtract your selling costs. Then subtract your basis: what you paid for the house, plus some of the closing costs from your purchase, plus what you've spent on improvements.
- Selling costs include the agents' commissions and your legal fees. The seller pays the deed stamps at closing, profit or not; they can't be deducted as a tax, but you can count them as a selling cost.
- Purchase costs that add to basis include legal fees, recording fees, survey fees, transfer taxes you paid as the buyer, and owner's title insurance.
- Improvements that add to basis include an addition, a new roof, new siding, a new heating system, central air, a new septic system and a modernized kitchen. Repairs that only keep the house in good shape, like painting or fixing a leak, don't count.
On a house you've owned for years, the receipts for big projects can shrink the taxable profit a lot, so find them before you sell.
A worked example, all the way to the tax
Say you bought a house for $450,000, later replaced the roof and the heating system for $60,000 in all, and now sell it for $900,000.
For the selling costs, I've used my own 2026 planning numbers: about 5 percent in total for the agents' fees, which is the listing agent and the buyer's agent together, and $1,200 for the attorney, the figure on my seller cost sheet. Commissions are negotiable and not set by law, so yours may differ.
| Sale price | $900,000 |
| Agents' fees at 5 percent | minus $45,000 |
| Deed stamps ($4.56 per $1,000 in Norfolk County) | minus $4,104 |
| Attorney | minus $1,200 |
| Amount you realize | $849,696 |
| Basis: $450,000 purchase plus $60,000 of improvements | minus $510,000 |
| Profit | $339,696 |
On a joint return, the whole profit falls inside the $500,000 exclusion, so there's no federal or Massachusetts income tax on it.
Filing single, $89,696 of it is taxable. Massachusetts taxes a gain on a home owned more than a year at 5 percent: $4,485. The federal rate on that kind of gain is 0, 15 or 20 percent depending on your income; at 15 percent it's $13,454. Together, that's about $17,939. The closing costs from your purchase would lower the profit a little more.
When you would owe tax
- The profit is bigger than the exclusion, as in the single-filer example above.
- You haven't lived there two years. You may still get part of the exclusion if the main reason for the sale is a change in where you work, a health issue or an unforeseeable event. The rules for each are specific, so check with your CPA before you count on it.
- It wasn't your main home. For a rental or a second home, the whole gain is generally taxable. Held more than a year, it's taxed at the long-term rates above. Held a year or less, it's taxed federally as ordinary income and at 8.5 percent in Massachusetts.
- You rented it out or claimed a home office. If the office was inside your living space, you don't have to split the profit between home and business. But you can't exclude the part of the profit equal to depreciation you took, or could have taken, and the IRS taxes that part at up to 25 percent.
- The gain is very large. A large taxable gain can bring in a Massachusetts surtax and, at higher incomes, a federal tax on investment income. Both are in the fine print below.
Do you have to report the sale?
Only if part of the gain is taxable, if you choose to report it, or if you receive an IRS form reporting the sale. If you get that form, you report the sale on your federal return even when no tax is due. A loss on your own home isn't deductible.
An inherited house follows different rules for basis: see Selling an inherited house in Massachusetts.
Get your numbers on paper first
Before you list, I'll work through a net sheet with you: the price, every selling cost and what you'd walk away with. Take it to your CPA. The commissions, the deed stamps and the attorney's fee on it are the selling costs that lower your gain.
Call or text Dianne at 781.365.5739, or email [email protected]. For everything else that comes out of your proceeds, see How much does it cost to sell a house in Massachusetts?
The Needle Group, Real Broker MA, LLC. 62 South Main Street, Sharon, MA 02067. 781.365.5739.
The fine print
- Job moves. For a partial exclusion after a job move, the new job generally has to be at least 50 miles farther from the home than the old one.
- Depreciation. The part you can't exclude is depreciation taken, or allowable, after May 6, 1997.
- Very large gains. Massachusetts adds a 4 percent surtax on taxable income above $1,107,750 for 2026, and a taxable gain counts toward that income in the year you sell. Federally, higher incomes can also owe the 3.8 percent net investment income tax, though not on the part of the gain you exclude.
Sources
- IRS Publication 523, Selling Your Home (2025): the Section 121 exclusion and its ownership, use and two-year tests; partial exclusion; amount realized and adjusted basis; selling expenses (commissions, legal fees, transfer and stamp taxes); purchase costs and improvements; business use within the home; depreciation after May 6, 1997; reporting (Form 1099-S; Form 8949)
- Commonwealth of Massachusetts FY2026 Tax Expenditure Budget, item 1.021, exclusion of capital gain on sale of a principal residence
- Mass. Department of Revenue, Massachusetts tax rates (5.0% long-term, 8.5% short-term, deed excise $2.28 per $500) and 4% surtax on taxable income
- IRS Topic No. 409, Capital gains and losses (0%, 15% and 20% long-term rates; 25% maximum on unrecaptured Section 1250 gain; losses on personal-use property)
- IRS Topic No. 559, Net investment income tax
- M.G.L. c.64D, ยง1 (deed excise) and the Norfolk County Registry of Deeds fee schedule
- National Association of REALTORS, What the NAR Settlement Means for Home Buyers and Sellers (commissions fully negotiable and not set by law)
General information, not legal, tax or financial advice. Your CPA or tax attorney controls how these rules apply to your sale. Facts checked October 8, 2026.
Thinking of selling?

What would your house sell for, and what would you keep?
Dianne Needle, a Realtor in Sharon since 2012
Dianne will add up what your house would likely sell for and what you'd keep after Massachusetts closing costs, line by line, before you decide anything.
Or call or text Dianne: 781.365.5739.
Was this page helpful?