Capital Gains Tax When Selling Your Massachusetts Home
Capital Gains Tax When Selling Your Massachusetts Home
How Much Capital Gains Tax Do You Owe When Selling Your Home in Massachusetts?
Massachusetts taxes long-term capital gains at 5% — the same rate as most other income in the state. When you sell your primary residence, you can likely exclude up to $250,000 of gain (single filers) or $500,000 (married filing jointly) under the federal primary residence exclusion, which Massachusetts also honors. If your gain exceeds those limits — or if you're selling an investment property or second home — the excess is taxable at Massachusetts's 5% rate on your state income tax return. High earners with total annual income over $1 million in the year of sale may also owe an additional 4% Massachusetts millionaire's surtax on the gain.
By Tyler Smith | Beacon & Bond Group | July 10, 2026
If you bought a home in Greater Boston ten years ago, you've likely seen significant appreciation. A house purchased in Needham for $800,000 in 2015 might be worth $1.5 million today — a $700,000 gain. That's a great problem to have. But before you list, it's worth understanding what the IRS and the Commonwealth of Massachusetts consider their share of that number.
The good news: most primary residence sellers come away owing nothing, or far less than they expected. The catch is that once your gain exceeds the exclusion limits — and in Greater Boston's market, that happens more often than people think — Massachusetts is waiting with a 5% tax on every dollar above the line.
Here's how it works, and what you can do about it before you sign a listing agreement.
Does the Federal Exclusion Apply in Massachusetts?
Yes — Massachusetts follows the federal primary residence exclusion under IRC §121. If you qualify, you can exclude a significant portion of your gain from both federal and state taxes.
The exclusion thresholds:
- Single filers: Exclude up to $250,000 of capital gain
- Married filing jointly: Exclude up to $500,000 of capital gain
The eligibility test: You must have owned the home and used it as your primary residence for at least two of the five years immediately before the sale. Those two years don't need to be consecutive — any 24 months within the five-year window qualifies.
So if you bought a condo in Boston's South End in 2020, lived in it as your primary residence through 2024, and rented it out for a year before selling in 2026 — you'd still qualify. You met the two-of-five-year test.
What this looks like in practice:
You're married and selling a home in Newton that you bought in 2016 for $950,000. You're selling for $1.4 million. Your gain is $450,000. With the $500,000 married exclusion, your entire gain is excluded — you owe nothing in capital gains taxes federally or in Massachusetts.
Now say the gain is $650,000 instead. You're still married with the $500,000 exclusion — but $150,000 of gain is taxable. Massachusetts taxes that at 5%: that's $7,500 to the Commonwealth, plus whatever applies federally.
If you're a single filer, the $250,000 exclusion means more of your gain becomes taxable faster. A $600,000 gain leaves $350,000 exposed. At 5%, that's $17,500 in Massachusetts state tax — before any federal capital gains tax.
This is exactly why I walk my clients through a rough gain calculation before we start talking about list price. Knowing your tax picture upfront avoids surprises at the closing table.
When You Will Owe Massachusetts Capital Gains Tax
There are four common scenarios where Massachusetts capital gains tax comes into play for sellers.
1. Your gain exceeds the exclusion limit. If you've owned a home for a long time in a high-appreciation market — Boston, Brookline, or Newton — your gain may push past $250,000 (single) or $500,000 (married). Every dollar above the exclusion is taxed at Massachusetts's 5% income tax rate.
2. You're selling an investment property or second home. Rental properties and second homes don't qualify for the primary residence exclusion. If you're selling a rental condo in Dorchester or an investment triple-decker in Jamaica Plain, your entire gain is taxable. Long-term gains — property held more than one year — are taxed at 5%. Short-term gains on property held less than a year are taxed at 8.5%, Massachusetts's higher short-term rate.
3. You didn't meet the two-of-five-year residency test. If you lived in the home for less than two years before selling, you may not qualify for the full exclusion. However, a partial exclusion may still apply if you sold due to a qualifying reason: a job change or relocation, a health issue, or an unforeseen circumstance such as divorce. The partial exclusion is prorated based on how long you satisfied the residency requirement relative to the full two years required.
4. Your total income exceeds $1 million in the year of sale. Massachusetts has a 4% surtax on all income — including capital gains — above $1 million in a single tax year. If your gain is large enough to push your total income over that threshold, the effective rate on the portion above $1 million becomes 9%. For sellers netting a substantial gain on a high-value Boston or Brookline home, this is a real number worth planning around — ideally with a CPA before you list.
Federal rates on long-term capital gains for most sellers run 15–20% depending on income bracket. When you layer Massachusetts's 5% on top of federal, the combined rate on taxable gains can reach 20–25%+ for higher-income sellers. That's why it's critical to understand your exposure before you sign the listing agreement — not when you're reviewing your closing statement.
How to Legally Reduce Your Capital Gains Liability
If you owe some tax, there are legitimate strategies to reduce what you owe. The best ones require planning before you sell — not after.
Document every capital improvement. Any money you've spent permanently improving the property increases your cost basis and directly reduces your taxable gain. A kitchen remodel, a new HVAC system, a finished basement, an addition, new windows, a new roof — all of it counts. If you bought your Boston condo for $700,000 and put $120,000 into renovations over the years, your basis isn't $700,000 — it's $820,000. That $120,000 is never taxed.
Keep all receipts, permits, and contractor invoices. This documentation is difficult to reconstruct years later, and it can save you tens of thousands of dollars.
Include your selling expenses. The costs of selling also reduce your recognized gain. Agent commissions, attorney fees, staging costs, and repairs done specifically to prepare the home for sale all count. On a $1.5 million sale in Brookline with a combined agent commission and $5,000 in other selling costs, you're reducing your recognized gain by a meaningful amount before the exclusion even applies.
Consider timing around the millionaire's surtax. If you're in a year where other income — a large bonus, a business sale, or a retirement distribution — might push your total income near $1 million, talk to your tax advisor about whether the year of sale matters. Sometimes a difference of a few months changes your effective rate significantly.
Offset with investment losses. If you have unrealized losses in other investments — equities, funds, other assets — you may be able to harvest those losses in the same tax year to offset your gain from the home sale, reducing your net taxable income for the year.
For investment property: explore a 1031 exchange. If you're selling a rental property and plan to reinvest in another investment property, a 1031 like-kind exchange lets you defer capital gains taxes — federal and Massachusetts — by rolling the proceeds into the next property. The rules are strict: you have 45 days to identify a replacement property and 180 days to close. Work with a qualified intermediary and your tax advisor before you proceed.
One situation where you may owe far less than expected: inherited property. When you inherit a home and sell it, the cost basis is typically stepped up to the fair market value at the time of the original owner's death. If your parent purchased a Boston home decades ago for $150,000 and it was worth $1.1 million when you inherited it, your basis is $1.1 million — not $150,000. If you sell it for $1.2 million, your taxable gain is only $100,000.
For a complete look at your seller net proceeds — including agent commissions, the Massachusetts deed excise tax ($4.56 per $1,000 of sale price), and attorney fees — see How Much Will You Net Selling Your Home in Boston?
And if you're weighing whether to sell now or hold — which directly affects both your residency test and your exposure to the millionaire's surtax — Sell Before Buying or Buy Before Selling in Boston? Here's How to Decide walks through the timing considerations.
Frequently Asked Questions
Do I owe capital gains tax if I've lived in my home for more than two years in Massachusetts?
If you've used the home as your primary residence for at least two of the five years before the sale, you likely qualify for the federal $250,000 (single) or $500,000 (married) exclusion — and Massachusetts honors the same exclusion. If your gain falls within those limits, you owe nothing in state or federal capital gains tax. If your gain exceeds the exclusion, only the amount above it is taxable at Massachusetts's 5% income tax rate.
What is the capital gains tax rate in Massachusetts for home sales?
Massachusetts taxes long-term capital gains — property held more than one year — at the state's flat income tax rate of 5%. Short-term gains on property held less than a year are taxed at 8.5%. Sellers whose total income exceeds $1 million in the year of sale also owe an additional 4% millionaire's surtax, bringing the effective rate to up to 9% on income above that threshold.
Can I deduct home improvements to reduce my capital gains in Massachusetts?
Yes. Money spent on permanent capital improvements — additions, new HVAC systems, kitchen and bathroom remodels, new windows, roof replacement — increases your cost basis and reduces your taxable gain dollar for dollar. Keep all receipts, permits, and contractor records. These are among the most effective ways to reduce capital gains exposure, especially for sellers who have owned their homes for many years.
Does Massachusetts follow the federal primary residence exclusion?
Yes. Massachusetts conforms to IRC §121, which allows qualifying sellers to exclude up to $250,000 (single filers) or $500,000 (married filing jointly) of capital gain from the sale of a primary residence. To qualify, you must have owned and used the home as your primary residence for at least two of the five years before the sale. The two years don't have to be consecutive.
What if I'm selling a rental property or investment property in Massachusetts?
Rental properties and investment properties don't qualify for the primary residence exclusion. Your full gain is taxable — at 5% in Massachusetts for long-term gains, plus applicable federal rates. One option for deferring taxes is a 1031 like-kind exchange, which allows you to roll proceeds from one investment property into another without triggering immediate tax liability. Strict rules apply, so work with a qualified intermediary and your tax advisor before proceeding.
Understanding your capital gains exposure before you list is one of the most important — and most overlooked — parts of preparing to sell in Greater Boston. The exclusion covers most sellers. But in a market where a home bought for $700,000 a decade ago is now worth $1.5 million, it's always worth running the numbers before you put a sign in the yard.
A brief conversation with your CPA and your real estate agent before you list gives you a complete picture. If you want to work through your situation — including your timing, your net proceeds, and what to expect at closing — reach out at tyler@beaconandbondgroup.com.
About Tyler Smith | Beacon & Bond Group
Tyler Smith is the founder of Beacon & Bond Group and a licensed REALTOR® with Real Broker MA, LLC, specializing in Boston, Brookline, Newton, Needham, Dedham, and Milton. Since 2020, he has represented more than 80 clients across $80 million in transactions — with hands-on experience as both a listing agent and a real estate investor. Connect with Tyler at tyler@beaconandbondgroup.com.
Categories
Recent Posts








GET MORE INFORMATION

