1. Home
  2. Blog
  3. Taxes on Selling a House

Taxes on Selling a House in Massachusetts

Pavel Khaykin, founder of Pavel Buys HousesBy Pavel Khaykin, Founder of Pavel Buys Houses · Updated December 2026 · 9 min read

SOLD TAX SEASON $

When you sell a house in Massachusetts, you'll pay the state deed excise tax at closing, settle your share of property taxes, and may owe capital gains tax on your profit. Most homeowners selling their main home owe no capital gains tax thanks to the federal $250,000 or $500,000 exclusion. This guide explains each tax, current Massachusetts rates and how to estimate what you'll owe.

Key Takeaways

  • The deed excise tax is $4.56 per $1,000 of the sale price, or $6.48 in Barnstable County.
  • Most sellers of a main home owe no capital gains tax because of the $250,000 or $500,000 federal exclusion.
  • Massachusetts taxes long-term gains at 5% and short-term gains at 8.5%.
  • A 4% surtax applies only to taxable income above $1,107,750 in 2026.
  • Property taxes are prorated between buyer and seller at closing.

What Taxes Do You Pay When You Sell a House in Massachusetts?

TaxRate or ruleWhen you pay
Deed excise tax$4.56 per $1,000, or $6.48 in Barnstable CountyAt closing
Property taxProrated to the closing dateAt closing
Federal capital gains tax0%, 15% or 20% on long-term gains above any exclusionWith your federal return
Massachusetts capital gains tax5% long-term, 8.5% short-termWith your state return
Massachusetts 4% surtaxOn taxable income above $1,107,750 (2026)With your state return

Massachusetts Deed Excise Tax: Rate and Who Pays

Massachusetts charges a deed excise tax, sometimes called transfer tax or tax stamps, when the deed is recorded. Sellers customarily pay it. The rate is $2.28 per $500 of the sale price, or $4.56 per $1,000, rounded up to the next $500. In Barnstable County, which covers all of Cape Cod, a county excise brings the total to $6.48 per $1,000.

Sale priceStandard rateBarnstable County
$400,000$1,824$2,592
$600,000$2,736$3,888
$900,000$4,104$5,832

Want to skip some of the selling costs?

We cover standard seller closing costs, including the deed excise tax, in our cash offers.

Get My Cash Offer

The $250,000 and $500,000 Home Sale Tax Exclusion

If you sell your main home, you can usually exclude up to $250,000 of gain from federal tax, or $500,000 if married filing jointly. You generally need to have owned the home and lived in it as your main residence for at least two of the five years before the sale, and you can't have used the exclusion on another home in the previous two years.

Massachusetts follows the federal exclusion, so gain that is excluded federally is generally not taxed by the state either. Partial exclusions may be available if you sell early because of a job change, health or other qualifying reasons.

Partial Home Sale Exclusion If You Sell Before Two Years

If you sell before meeting the two-year ownership and use tests, you may still qualify for a partial exclusion if the main reason for the sale is a change in place of employment, health, or certain unforeseen circumstances. A job change generally qualifies if your new workplace is at least 50 miles farther from the home than your old one was.

The partial exclusion is prorated. If you're single and lived in the home for 12 months before a qualifying job move, you can generally exclude up to 12 ÷ 24 × $250,000, or $125,000 of gain. Married couples filing jointly use the same fraction of $500,000.

Massachusetts Capital Gains Tax Rates on a Home Sale

Your gain is roughly your sale price minus selling costs and your adjusted basis, which is what you paid plus the cost of improvements. Gain above any exclusion is taxed at the federal long-term rates if you owned the home more than a year.

Massachusetts taxes most long-term capital gains at 5% and short-term gains on assets held a year or less at 8.5%. On top of that, Massachusetts adds a 4% surtax on taxable income above an inflation-adjusted threshold, which is $1,107,750 for tax year 2026. A large home sale can cause some sellers to exceed that threshold for one year.

Keep your receipts: Records of improvements such as a new roof, kitchen or addition raise your basis and lower your taxable gain. Routine repairs don't count.

How Much Tax Will You Pay on a Home Sale? (Example)

Here is an example for a long-time owner. Numbers are rounded, and your rates depend on your total income.

Married filing jointlySingle
Purchase price (2010)$350,000$350,000
Improvements (roof, kitchen, addition)+$60,000+$60,000
Adjusted basis$410,000$410,000
Sale price$950,000$950,000
Selling costs (commission, excise tax, attorney)−$55,000−$55,000
Gain$485,000$485,000
Home sale exclusion−$485,000 (limit $500,000)−$250,000
Taxable gain$0$235,000
Federal tax at 15%$0About $35,250
Massachusetts tax at 5%$0About $11,750

Higher earners may pay the 20% federal rate and the 3.8% net investment income tax on gain above the exclusion. Without the $60,000 of documented improvements, the single seller's taxable gain would be $295,000 instead.

Taxes on Second Homes, Rentals and Inherited Houses

SituationHow it's taxed
Inherited houseBasis steps up to the value at death, so gains are often small.
Rental or investment propertyNo home sale exclusion, and depreciation can be recaptured.
DivorceTransfers between spouses are generally tax-free, and an agreement can preserve the exclusion.
Second homeNo exclusion unless you meet the two-of-five-years test.

How to Reduce Capital Gains Tax on a Home Sale

The biggest lever most sellers have is their basis. Improvements that add value, extend the home's life or adapt it to new uses raise your basis. Routine repairs and maintenance don't.

Usually raises your basisUsually doesn't
New roof, windows or sidingPatching a leak or replacing a few shingles
Kitchen or bathroom remodelRepainting
New heating system or central airServicing the boiler
Additions, finished basements, decksFixing a broken step
Septic replacement, new drivewayRoutine landscaping

Other legitimate ways to reduce tax include timing the sale so you meet the two-year tests, spreading other gains across tax years if a sale would push you over the 4% surtax threshold, and counting every selling cost. Keep your settlement statement from when you bought the home, since closing costs you paid then can also add to your basis.

Massachusetts Home Sale Taxes for Out-of-State and Foreign Sellers

Massachusetts taxes gain from real estate located in the state, even if you've moved away. Nonresidents report that gain on a Massachusetts nonresident return, and the home sale exclusion applies the same way it does federally.

If you're a foreign person for U.S. tax purposes, a federal law called FIRPTA generally requires the buyer to withhold 15% of the sale price and send it to the IRS. There are exceptions, including some sales of $300,000 or less to buyers who will live in the home, and you can apply to reduce the withholding. Tell your attorney early so the closing isn't delayed.

How Property Taxes Are Prorated at a Massachusetts Closing

Massachusetts cities and towns run on a fiscal year from July 1 to June 30, and most bill quarterly or twice a year. At closing, your attorney prorates the year's taxes so you pay only for the days you owned the home, using the municipal lien certificate to confirm what's been paid. If you've prepaid, the buyer credits you back.

Water and sewer charges are handled the same way, based on a final meter reading. Any unpaid betterments, such as sewer or road assessments, also show up on the municipal lien certificate and are usually paid off from your proceeds.

Sell Your Massachusetts House for Cash to Pavel Buys Houses

Taxes are easier to plan when you know your number. Our written offer shows what we'll pay, and we cover standard seller closing costs, so you and your tax advisor can see the proceeds before you commit.

Pavel Buys Houses is a Boston-based cash home buyer. We buy houses as-is, cover standard seller closing costs and can close in as little as 10 to 14 days or on a later date you choose. And if listing with an agent would result in higher net proceeds, we'll tell you.

  1. Tell us about the houseShare a few details online or by phone. It takes a few minutes.
  2. Get a written offerWe walk through the house and send a written cash offer, with no obligation to accept.
  3. Choose your closing dateClose in as little as 10 to 14 days, or later if you need more time.

“Pavel got back to me right away and was extremely informative with help on how to sell my home even though it wasn't a good fit for him to purchase.”

Brian P., Google review
Get My Cash Offeror call (617) 857-2857

Pavel Buys Houses has been featured in Yahoo Finance, Realtor.com, Redfin and ABC News. See how our cash offer works.

Taxes on Selling a House in Massachusetts FAQs

How much is the transfer tax when selling a house in Massachusetts?

The Massachusetts transfer tax, called the deed excise tax, is $4.56 per $1,000 of the sale price, or $6.48 per $1,000 in Barnstable County. On a $600,000 sale, that's about $2,736. By custom the seller pays it at closing, and it comes out of the proceeds.

Do I pay capital gains tax when I sell my house in Massachusetts?

You pay capital gains tax when you sell your house in Massachusetts only on gain above the home sale exclusion. If you owned and lived in the home for two of the last five years, you can exclude up to $250,000 of gain, or $500,000 if married filing jointly.

What is the Massachusetts capital gains tax rate?

The Massachusetts capital gains tax rate is 5% on most long-term gains and 8.5% on short-term gains from assets held a year or less. A 4% surtax also applies to taxable income above $1,107,750 in 2026, which a large home sale can trigger.

Does Massachusetts follow the federal home sale exclusion?

Yes, Massachusetts follows the federal home sale exclusion. Gain you exclude under the federal rule, up to $250,000 or $500,000 for married couples, is generally excluded for Massachusetts income tax too. Only gain above the exclusion is taxed at the state's 5% rate.

Who pays property taxes in the year I sell?

Property taxes are prorated at a Massachusetts closing, so you pay only for the days you owned the home and the buyer pays the rest. Your attorney uses the municipal lien certificate to confirm what's been paid. If you prepaid, the buyer credits you back on the settlement statement.

Do I pay tax if I sell at a loss?

No, you don't pay tax if you sell your house at a loss. However, a loss on your personal home isn't deductible. A loss on a rental or an inherited house you didn't use personally can generally be deducted as a capital loss.

Do I have to report the sale if all my gain is excluded?

If you receive Form 1099-S from the closing attorney, report the sale on your return even if the gain is fully excluded. If you don't receive one and all the gain is excluded, you generally don't have to report it.

Do I owe Massachusetts tax if I moved out of state before selling?

Yes, you owe Massachusetts tax on gain from a Massachusetts house even if you moved out of state before selling. You file a Massachusetts nonresident return, and the home sale exclusion still applies if you meet the two-of-five-years ownership and use tests.

What counts as a home improvement for taxes?

A home improvement for taxes is work that adds value, extends the home's life or adapts it to a new use, such as a new roof, a kitchen remodel or an addition. Improvements raise your basis and lower your taxable gain. Routine repairs and maintenance don't count.

Does the buyer pay any transfer tax in Massachusetts?

No, the buyer doesn't pay transfer tax in Massachusetts by custom. The seller pays the deed excise tax, and Massachusetts doesn't have a separate statewide buyer transfer tax. Buyers do pay their own recording fees and lender costs.

This guide is general information, not legal, tax or financial advice. Talk to a Massachusetts attorney or tax professional about your situation.

Get your cash offer today

Get a Written Cash Offer for Your Massachusetts House

Selling and want fewer costs at closing? Pavel Buys Houses buys houses across Massachusetts in any condition, with a written offer, no commissions and standard closing costs covered. Fill out the short form to request your free offer, or call (617) 857-2857 to discuss your options. There's no pressure and no obligation.

Get Your Free Cash Offer

Request an offer with no obligation to accept.

"*" indicates required fields

This field is for validation purposes and should be left unchanged.
Property Address*
By clicking Get My Cash Offer, you agree to receive calls and texts, including by autodialer, prerecorded messages, and artificial voice, and email from Pavel Buys Houses or one of its partners but not as a condition of any purchase, and you agree to the Terms & Conditions and Privacy Policy. Message frequency varies, also message and data rates may apply. Reply 'STOP' to opt out and 'HELP' for help.
Learn more

Helpful Resources for Massachusetts Homeowners

Some homeowners contact us because their house needs repairs. Others are settling an estate, managing a rental, or facing a deadline. Whatever brought you here, these guides can help you weigh your options.