August 2026·5 min read

Capital Gains Tax When Selling a House in Massachusetts (2026)

Most Massachusetts homeowners who've lived in their home for 2+ years owe nothing in capital gains. Here's how the federal exclusion and MA's 5% tax rate interact — by scenario.

Tax Disclaimer: This article is general information — not tax advice. Consult a qualified CPA or tax attorney for your specific situation.

The Federal IRC § 121 Exclusion

The primary tax shelter for Massachusetts home sellers is the federal IRC § 121 exclusion. If you have owned the home and used it as your primary residence for at least 2 of the last 5 years before the sale, you can exclude:

$250,000
Single filer
$500,000
Married filing jointly

The gain is calculated as: Sale Price − Adjusted Cost Basis. Adjusted cost basis includes your original purchase price plus eligible capital improvements (new roof, HVAC, additions, kitchen remodel) — not routine maintenance.

Massachusetts State Capital Gains Tax

Massachusetts does not have a separate capital gains rate. All capital gains — short-term and long-term — are taxed as ordinary income at the flat rate of 5%. This applies to the portion of your gain that exceeds the federal IRC § 121 exclusion (if applicable), or to the full gain on investment properties and short-term sales.

Capital Gains by Sale Scenario

ScenarioFederal TaxMA State TaxExample
Primary residence — owned 2+ yrs, profit under exclusion0% — gain excluded under IRC § 1210% — excluded gain not taxedBought at $200K, sold at $420K (single filer): $220K gain fully excluded
Primary residence — gain exceeds exclusion15% or 20% on gain above $250K/$500K exclusion (long-term)5% on gain above exclusionSingle filer with $320K gain: $250K excluded, $70K taxable. Federal ~$10,500, MA $3,500
Investment property — held 1+ year15% or 20% long-term capital gains rate (no exclusion)5% on full gain (no exclusion)Rental bought at $180K, sold at $300K: $120K gain taxable. Federal ~$18K, MA $6K
Short-term sale (owned < 1 year)Ordinary income tax rates (22%–37% for most sellers)5% ordinary income rateFlip bought at $200K, sold at $260K: $60K gain. Federal ~$13,200–$22,200, MA $3,000
Inherited property soldStepped-up basis to fair market value at date of death — gain calculated from that date5% on gain above stepped-up basisInherited home worth $300K at death, sold at $320K: only $20K taxable
Partial IRC § 121 exclusion (relocation, job, health)Pro-rated exclusion if didn't meet 2-year test; distance or health exception5% on taxable portion after partial exclusionLived in home 1 year, relocated for job — exclusion pro-rated to $125K/$250K
Ready to Sell Your Massachusetts Home?

Cash offer in 24 hours. Close in 7 days. No agent commissions reducing your net proceeds.

Call (401) 396-7427Get Cash Offer →

Frequently Asked Questions

Do you pay capital gains tax when you sell a house in Massachusetts?

Only if your gain exceeds the IRC § 121 exclusion. Most primary residence sellers owe nothing federally. Massachusetts taxes remaining gains as ordinary income at 5%.

What is the capital gains tax rate on selling a house in Massachusetts?

Massachusetts: 5% flat rate (no separate capital gains rate). Federal: 0%, 15%, or 20% for long-term gains (held 1+ year); ordinary income rate for short-term.

How do I avoid capital gains tax when selling my Massachusetts home?

Use the IRC § 121 exclusion — own and live in the home as primary residence for 2 of the last 5 years to exclude up to $250K (single) or $500K (married jointly). Add eligible capital improvements to your cost basis to reduce your gain.