When you sell your primary residence in Massachusetts, most homeowners qualify for a federal and state exclusion of up to $250,000 in profit (or $500,000 if married filing jointly), provided you lived in the home as your primary residence for at least 2 of the last 5 years. If your gain falls within that exclusion, you owe no capital gains tax at all. Any taxable gain above the exclusion is taxed at 5% in Massachusetts for long-term holdings. High-equity sellers should also be aware of Massachusetts’ 4% millionaire surtax, which applies if your total income including the taxable portion of your home sale gain exceeds $1,053,750 in 2026 — verify the current threshold with your tax advisor, as it adjusts annually for inflation.
How Does Capital Gains Tax Work When You Sell a Home in Massachusetts?
If you’ve owned your home in Jamaica Plain, Roslindale, Hyde Park, Dorchester, or Roxbury for more than a decade, there’s a good chance you’ve built up significant equity. Most homeowners are pleasantly surprised: many owe nothing. But a meaningful number of long-term Boston homeowners are facing a capital gains situation they didn’t expect, particularly given current home values. A home purchased in Jamaica Plain for $350,000 in 2005 is now worth $750,000 or more. That’s a $400,000 gain. Understanding the rules around what gets taxed and what doesn’t is worth doing before you decide to sell. For a full breakdown of all the costs that come off your proceeds at closing, see how much you’ll net selling your home in Boston. If you own a multi-family, selling a two- or three-family in Boston covers depreciation recapture, which operates separately from the home sale exclusion.
The Home Sale Exclusion: Your First Line of Defense
Federal tax law, which Massachusetts follows, allows you to exclude a significant portion of your home sale profit from taxable income, provided you meet two tests. The ownership test: you owned the home for at least 2 of the last 5 years. The use test: you used the home as your primary residence for at least 2 of the last 5 years. The two years don’t need to be consecutive. If you pass both tests, single filers can exclude up to $250,000 of profit from taxation, and married couples filing jointly can exclude up to $500,000. This exclusion can be used multiple times over your lifetime, once every two years per home. So if you bought a condo in Jamaica Plain for $380,000 in 2011 and you’re selling it today for $720,000, your profit is roughly $340,000. As a married couple, you’d exclude all $340,000 and owe nothing. As a single filer, you’d exclude $250,000, leaving $90,000 potentially taxable.
What Counts as Your Profit?
Your taxable gain isn’t simply the difference between your sale price and your purchase price. Your adjusted cost basis includes your original purchase price, closing costs you paid when you bought the home, and major capital improvements made over the years — a new roof, an addition, a full kitchen renovation, updated HVAC, or a new deck. Every eligible improvement you can document increases your basis and reduces your taxable gain. If you bought a three-family in Hyde Park for $450,000 in 2008, added a two-story addition in 2015 for $80,000, and paid $15,000 in closing costs at purchase, your adjusted basis is $545,000, not $450,000. Keep your renovation permits and contractor invoices. A CPA or real estate attorney can help you identify everything that qualifies when you’re preparing for a sale.
Massachusetts Tax Rates on the Portion You Do Owe
If part of your gain is taxable after the exclusion, long-term gains (home held more than 12 months) are taxed at 5% in Massachusetts. Short-term gains (held 12 months or less) are taxed at 8.5%. The overwhelming majority of Boston homeowners selling a primary residence they’ve held for years will be looking at the 5% long-term rate if they owe anything at all. Federal rates are separate, varying by your overall income bracket: 0%, 15%, or 20% for long-term gains. Most middle-income households pay 15% in federal tax on any taxable long-term gain.
The Massachusetts Millionaire Surtax: What Most Sellers Don’t Know
Massachusetts voters approved a 4% surtax on annual income above $1,000,000. In 2026, the threshold is inflation-adjusted to $1,053,750 — verify the current figure with your tax advisor, as it adjusts annually. The part that surprises people is that your home sale gain after the exclusion is included in that calculation. If your taxable gain, combined with your other income for the year, pushes your total above the threshold, the amount above it is taxed at an additional 4%, bringing your Massachusetts effective rate on that portion to 9%. This is real money, and it’s a calculation most sellers aren’t doing until they’re already committed to a listing date.
When Capital Gains Tax Doesn’t Apply
A few situations where you may owe little or nothing even with a significant gain: you qualify for the full exclusion (married couples with gains under $500,000 often owe nothing); your adjusted basis is higher than you think after factoring in documented improvements; you have capital loss carryforwards from prior investment losses; or you inherited the property and received a stepped-up basis at fair market value at the time of inheritance, which can dramatically reduce or eliminate capital gains on a subsequent sale.
Capital Gains Tax vs. MA Tax Stamps: Not the Same Thing
MA tax stamps (deed excise tax) are a closing cost — approximately $4.56 per $1,000 of sale price — paid at closing and deducted from your proceeds on the spot. On a $900,000 sale in Roslindale, that’s roughly $4,100. Capital gains tax is an income tax reported on your annual return, based on your profit above your adjusted basis and applicable exclusion. It has nothing to do with what you pay at closing; it’s a separate line on your tax return filed the following spring.
Frequently Asked Questions
Do I owe capital gains tax when I sell my primary home in Massachusetts?
Most homeowners don’t. If you lived in your home as your primary residence for at least 2 of the last 5 years, you can exclude up to $250,000 of profit (or $500,000 if married filing jointly) from taxation. Massachusetts conforms to this federal exclusion. If your gain falls within those limits, you owe no capital gains tax to the IRS or to Massachusetts.
What is the capital gains tax rate on a home sale in Massachusetts?
Long-term capital gains on a home held for more than 12 months are taxed at 5% in Massachusetts. Short-term gains on a home held for 12 months or less are taxed at 8.5%. Federal rates are separate and range from 0% to 20% depending on your income bracket.
What is the Massachusetts millionaire surtax, and does it apply to home sales?
Massachusetts has a 4% surtax on annual income over the applicable threshold (approximately $1,053,750 in 2026, adjusted annually for inflation — confirm the current figure with your tax advisor). The taxable portion of your home sale gain counts toward that threshold. If your total income including the taxable gain exceeds the limit, the amount above the threshold is taxed at 9% in Massachusetts instead of 5%.
Can home improvements reduce my capital gains tax?
Yes. Major capital improvements such as additions, a new roof, HVAC replacement, and kitchen or bathroom remodels can be added to your original purchase price to increase your adjusted cost basis. A higher basis means a lower taxable gain. Keep documentation: permits, contracts, and receipts all support your basis calculation when it’s time to file.
How is capital gains tax different from the MA tax stamps sellers pay at closing?
They are entirely different. MA tax stamps (the deed excise tax) are a closing cost paid at closing and deducted from your proceeds on the spot. Capital gains tax is an income tax you report on your annual tax return, based on your profit above your adjusted basis and applicable exclusion. The two are independent calculations.
Have questions? Let’s connect.
About Juan Murray
Juan Murray is a Boston broker associate with more than 30 years of experience helping buyers, sellers, and investors across Greater Boston, personally leading every transaction from the first conversation through closing.
RE/MAX Real Estate Center · (617) 721-0961
Equal Housing Opportunity. Juan Murray is licensed as a Broker in Massachusetts, regulated by the Massachusetts Board of Registration of Real Estate Brokers and Salespersons. This article is general information only and does not constitute legal, tax, or financial advice. Confirm your specific costs and obligations with your closing agent, tax advisor, or lender.





