Capital Gains Tax When Selling a Home in Massachusetts

October 16, 2026•3 min read

Quick answer: Most Massachusetts homeowners who sell their primary residence owe little or no tax on the sale, because the federal rules let you exclude up to $250,000 of gain ($500,000 for married couples filing jointly). Gain above that is taxed, and Massachusetts taxes long-term gains at 5%. The details depend on how long you owned and lived in the house, so run your numbers before you list.

The federal home sale exclusion

If you owned the home and lived in it as your main home for at least 2 of the 5 years before the sale, you can exclude up to $250,000 of gain as a single filer, or up to $500,000 if you are married and file jointly. The two years do not have to be consecutive. You generally cannot claim the exclusion if you used it on another home in the past 2 years. The IRS explains the rules in Publication 523.

What Massachusetts taxes

For tax year 2026, Massachusetts taxes long-term capital gains at 5% and short-term gains at 8.5%. An extra 4% surtax applies to taxable income above $1,107,750. Long-term means you held the property for more than a year. Gain that the federal exclusion removes is generally not taxed, so for most sellers the exclusion does the heavy lifting.

How to figure your gain

Gain is roughly what you sell for, minus selling costs, minus your basis. Basis is what you paid plus the cost of major improvements such as a new roof, an addition or a kitchen remodel. Routine repairs and paint do not count.

Example A: no tax due

  • Bought for $300,000. Added $40,000 of improvements. Basis: $340,000.

  • Sells for $600,000. Selling costs (deed excise tax, attorney, agent fee and other items): $20,000.

  • Gain: $600,000 − $20,000 − $340,000 = $240,000.

  • Single filer, primary residence for 2+ years: the $250,000 exclusion covers all of it. Taxable gain: $0.

Example B: some gain is taxable

  • Same basis of $340,000. Sells for $850,000. Selling costs: $30,000.

  • Gain: $850,000 − $30,000 − $340,000 = $480,000.

  • Single filer: $480,000 − $250,000 exclusion = $230,000 taxable. At the Massachusetts long-term rate of 5%, that is $11,500 of state tax, before any federal tax on the same gain.

  • Married filing jointly: the $500,000 exclusion covers the full $480,000. Taxable gain: $0.

These are illustrations, not tax returns. Federal tax on the taxable portion is separate, and your own numbers will differ.

Situations that change the answer

  • Investment or rental property. The exclusion does not apply, and depreciation may be recaptured.

  • Moved out more than 3 years ago. You may no longer meet the 2-of-5-year test.

  • Inherited house. Basis is generally reset at the date of death, which often shrinks the gain. See our guide to selling an inherited house in Massachusetts.

  • High-income year. The extra 4% surtax applies to taxable income above $1,107,750, so a large gain in a single year can trigger it. Ask your accountant.

Do not confuse this with the deed excise tax

The deed excise tax is a separate closing cost, $4.56 per $1,000 of price in most of the state, and the seller usually pays it. It is not a tax on your profit. Our Massachusetts cost-to-sell guide shows a full example, and our capital gains guide for CT and FL covers the other states we serve.

What to do this week

  • Pull your closing statement from when you bought, plus receipts for major improvements.

  • Count the months you lived in the house over the last 5 years.

  • Ask for a home value estimate to see where you land against the exclusion.

  • Run the numbers with a CPA before signing a purchase and sale agreement.

Thinking about selling? Full-service representation at a 1% listing fee. Talk to Zack or Nick directly.

Commissions and fees are negotiable and not set by law. Our 1% listing fee applies to the listing side only, and any buyer-agent compensation is separately negotiable. This is general information, not tax or legal advice. Tax rates and thresholds change, so confirm current figures with a tax professional. Figures reflect October 2026.

Sources: IRS Publication 523, Selling Your Home; HomeLight: Taxes on Selling a House in Massachusetts.

blog author avatar

Zack DeCaro

Real Estate Professional

Back to Blog

Thinking about selling?

Full-service representation at a 1% listing fee. Talk to Zack or Nick directly.

See how 1% works

Property Works New England

Nick & Zack DeCaro operate under Property Works New England · 2264 Silas Deane Hwy, Rocky Hill, CT 06067

Licensed in CT, MA, RI, NY & FL

Licensing

Brokerage License REB.0758662

Zack DeCaro — CT Broker REB.0795525 · MA 9586658-RE-B · RI RES.0044912 · NY 10401329752 · FL SL3584718

Nick DeCaro — CT RES.0797822 · MA 1001103-RE-RS

FL Brokerage: Dalton Wade Real Estate Group, 260 1st Ave S, St. Petersburg, FL 33701 · (888) 668-8283

We are committed to fair housing practices and equal opportunity in accordance with the Fair Housing Act. We do not discriminate on the basis of race, color, religion, sex, handicap, familial status, or national origin. Equal Housing Opportunity.

All real estate commissions and fees are negotiable and not set by law. The 1% listing program refers to the listing-side fee only; buyer-broker compensation is separate and negotiable. Property information is deemed reliable but not guaranteed and should be independently verified.