Skip to content

Massachusetts Capital Gains

Massachusetts Capital Gains Tax on Real Estate

Massachusetts taxes long-term gains on real estate at a flat 5%, and adds a 4% surtax on taxable income above $1,107,750 for 2026. On a large apartment sale the surtax often matters more than the base rate. This guide covers the rates, how they combine with federal tax, the new withholding rule for nonresident sellers, recapture and a worked example.

  • Clear feedback on your deal, typically within 48 hours
  • 5 to 100+ units, stabilized or distressed, listed or off-market
  • Owners, agents, and brokers welcome; every conversation is confidential

We buy:Tired landlordsEstate & trust sales1031 exchangesDeferred maintenanceHigh vacancyPartnership splits

In This Guide: The 5% rate and the 4% surtax · Short-term gains at 8.5% · How state and federal tax combine · Withholding on sales of $1 million or more · $2M apartment building example · What a 1031 exchange defers

By Skyline Capital Investments · · 7 min read

Does Massachusetts have a capital gains tax?

Yes. Massachusetts capital gains tax on real estate held more than a year is 5% of the gain, the same flat rate the state applies to wages, interest and most other income. Gains on property held a year or less are taxed at 8.5%, according to the Department of Revenue’s published rate table.

The part sellers tend to miss is the surtax. Voters approved it in 2022, and it adds 4% on taxable income above a threshold that is adjusted for inflation each year. For tax year 2026 the threshold is $1,107,750, up from $1,083,150 for 2025. A building sale that produces a seven-figure gain can push a seller’s income well past that line in a single year, so part of the gain is taxed at 9% instead of 5%.

Massachusetts capital gains tax rates for 2026

Massachusetts has no graduated brackets. Its rates depend on the type of gain, and the surtax sits on top of all of them once taxable income passes the threshold.

  • Residents pay the surtax on all taxable income above the threshold. Nonresidents pay it on the Massachusetts-source portion, which includes gain on Massachusetts real estate.
  • The threshold was $1,083,150 for 2025 and rises with inflation each year, so check the figure for the year you close.
Type of income2026 rateNotes
Long-term capital gain (held more than one year)5%Covers most apartment building sales
Short-term capital gain (held one year or less)8.5%Same rate applied in 2025
Long-term gain on collectibles12%With a 50% deduction
4% surtax4% extraOn taxable income above $1,107,750 (2026)

How Massachusetts and federal tax add up

You pay both, figured separately. Federal long-term gain is taxed at 0%, 15% or 20%, and Revenue Procedure 2025-32 sets the 2026 start of the 20% rate at $545,500 of taxable income for a single filer and $613,700 for a joint return. The share of your gain that equals depreciation you claimed is unrecaptured Section 1250 gain, taxed federally at up to 25%.

The 3.8% net investment income tax applies on top once modified adjusted gross income passes $200,000 for a single filer or $250,000 for a joint return. Add Massachusetts at 5% plus the surtax, and a high-income seller can face a combined top rate on part of the gain of about 37.8%: 25% federal on the depreciation portion, 3.8% NIIT and 9% to the state.

The state tax is deductible federally only as an itemized state and local tax deduction, which is capped, so on a sale this size nearly all of the Massachusetts tax is a true added cost.

Withholding when a nonresident sells Massachusetts real estate

Since November 1, 2025, a nonresident who sells Massachusetts real estate for $1,000,000 or more has tax withheld at closing under regulation 830 CMR 62B.2.4. The withholding agent is usually the closing attorney, title company or escrow agent, and if no one handles the closing the buyer takes on the job.

The default amount is 4% of the gross sales price, plus another 4% on the amount above the surtax threshold. A seller can elect a second method instead: 5% of the estimated net gain, plus the 4% surtax on any amount above the threshold. Corporate sellers use 4% of the price or 8% of the estimated gain. The agent files Form NRW electronically through MassTaxConnect within 10 days of closing, even when nothing is withheld, and the seller claims the amount as a credit on the Massachusetts return.

  • The $1,000,000 test applies to the whole sale, so two co-owners selling a $1.2 million building are both covered.
  • Exempt sellers include full-year residents, pass-through entities and publicly traded partnerships, resident estates and trusts, and corporations with a continuing Massachusetts business presence. Each must sign a Transferor’s Certification.
  • Without a Transferor’s Certification, the agent withholds on the gross price.
  • DOR waived penalties for closings from November 1 to December 31, 2025, while agents adjusted.

Selling through an LLC or partnership

A building owned by an LLC taxed as a partnership is exempt from the nonresident withholding, because pass-through entities are on the exempt list. The gain still flows to the members, and each member reports a share on a Massachusetts return.

That exemption can catch out-of-state members off guard. Nothing is held back at closing, yet a member living in New Hampshire or Florida still owes Massachusetts 5% on the share of gain, plus surtax if that member’s Massachusetts-source income passes the threshold. Get each member’s expected share to your CPA before closing so estimated payments are made on time.

Depreciation recapture in Massachusetts

Massachusetts taxes the depreciation part of a long-term real estate gain at the same 5% as the rest. The DOR’s Schedule D instructions treat amounts from Part II of federal Form 4797, including recapture under Sections 1245 and 1250 and gains on Section 1231 property, as Massachusetts capital gains.

So the federal split between 25% recapture and 15% or 20% capital gain changes your IRS bill but not your Massachusetts bill. The surtax still applies to the whole gain once your income is over the threshold.

Basis can differ in some cases. For personal income tax, Massachusetts follows the Internal Revenue Code as in effect on January 1, 2024, with listed exceptions, and the fiscal 2026 supplemental budget (St. 2026, c. 101, signed June 12, 2026) delays conformity to the new federal Section 168(n) bonus depreciation for production property until 2027. That provision rarely touches apartment buildings, but ask your CPA whether any federal change since 2024 gives your property a different Massachusetts basis.

Worked example: selling a $2M apartment building in Massachusetts

A single filer sells a 12-unit building in Worcester for $2,000,000 and pays $110,000 in selling costs, so the amount realized is $1,890,000. She bought it for $1,050,000 and has taken $380,000 of depreciation, for an adjusted basis of $670,000. Her gain is $1,220,000: $380,000 of unrecaptured Section 1250 gain and $840,000 of long-term capital gain. She has $300,000 of other taxable income, her MAGI is already over $200,000, and the building has a $950,000 mortgage.

Federal tax: the $380,000 of Section 1250 gain at the 25% maximum is $95,000. Her income plus that gain already passes $545,500, so the full $840,000 is taxed at 20%, or $168,000. The 3.8% NIIT on $1,220,000 is $46,360. Federal total: $309,360.

Massachusetts tax: 5% of $1,220,000 is $61,000. Her taxable income with the sale is $1,520,000, which is $412,250 over the $1,107,750 threshold, so the surtax is $16,490. The state total is $77,490, and the combined bill is $386,850, about 32% of the gain. After repaying the loan she nets $940,000 before tax and about $553,150 after.

ItemAmount
Sale price$2,000,000
Adjusted basis$670,000
Total gain$1,220,000
Federal Section 1250 tax (25%)$95,000
Federal capital gains tax (20%)$168,000
Net investment income tax (3.8%)$46,360
Massachusetts tax (5%)$61,000
Massachusetts surtax (4% over $1,107,750)$16,490
Total tax$386,850

The same sale by a nonresident

If the same owner lived in Connecticut, the closing attorney would withhold under the default method $80,000 (4% of $2,000,000) plus $35,690 (4% of the $892,250 by which the price exceeds $1,107,750), or $115,690.

If she elected the net gain method, withholding would be $61,000 (5% of the $1,220,000 estimated gain) plus $4,490 (4% of the $112,250 of gain above the threshold), or $65,490. Either way, the amount is a prepayment. She files a Massachusetts nonresident return and the final tax depends on her Massachusetts-source income, so the elected method mostly changes how much cash she gets at the table.

How a 1031 exchange changes the Massachusetts tax

A valid 1031 exchange defers Massachusetts tax as well as federal tax, because the state follows Section 1031. In the example, buying a replacement worth at least $1,890,000 and reinvesting all $940,000 of net cash would defer the whole $386,850.

Deferral also helps with the surtax. Spreading gain recognition over different years, or deferring it entirely, can keep income under the threshold in any one year, which an outright sale cannot.

Massachusetts keeps a claim on deferred gain from nonresidents. Under 830 CMR 62B.2.4, a nonresident seller in an exchange signs a Transferor’s Certification that acknowledges the deferred gain and consents to Massachusetts jurisdiction to collect the tax when the gain is realized. Massachusetts is one of the states with a clawback of this kind, along with California, Montana and Oregon. Our page on the 1031 exchange in Massachusetts walks through withholding on boot and the certification.

Ways Massachusetts sellers lower the tax

Timing and deferral do most of the work, since the 5% rate itself has no exceptions for real estate.

  • A 1031 exchange into another investment property, which defers both the 5% tax and the surtax.
  • An installment sale, which spreads gain over several years and can keep each year’s income under the surtax threshold.
  • Holding the building past one year, so gain is taxed at 5% instead of 8.5%.
  • Documenting every capital improvement, which raises basis and cuts the gain taxed at both the state and federal level.

Selling a Massachusetts apartment building

Skyline buys apartment buildings with five or more units in Massachusetts, from Boston and Worcester to Lowell, Springfield and the Merrimack Valley. We buy directly, close on your timeline, and can work inside 1031 deadlines. If you plan an exchange, we can set closing for the date that fits your replacement search and work with your intermediary on the assignment.

For the carrying costs a buyer looks at, see our page on the property tax rate in Massachusetts, and for the tenant rules that come with an occupied building, Massachusetts landlord-tenant law for apartment owners. The capital gains tax calculator runs the federal side for your own figures.

Selling? Spread the tax with seller-carry terms

If a large tax bill is what is keeping you from selling, an installment sale may help. When you carry part of the price as a note, the gain is generally reported as you receive payments instead of all in the year of sale. Some parts of the gain, such as certain depreciation recapture, can still be due up front, so run the numbers with your CPA first.

Skyline Capital Investments buys apartment buildings with five or more units and can offer seller-carry terms, or a delayed closing that fits your 1031 timeline. Send the address and unit count and we typically respond within 48 hours. How seller financing works · How an installment sale is taxed · Seller financing calculator.

Get A Seller-Carry Offer

Common Questions

Does Massachusetts have capital gains tax?

Yes. Massachusetts taxes long-term capital gains at 5% and short-term gains at 8.5%, and collectibles at 12%. On top of that, a 4% surtax applies to taxable income above $1,107,750 for 2026. A real estate sale with a large gain can push part of the gain into the surtax, for an effective state rate of 9% on that part.

What is the Massachusetts capital gains tax rate on real estate?

For property held more than one year, the rate is 5%, the same as on wages. Property held one year or less is taxed at 8.5%. If your total taxable income passes $1,107,750 in 2026, the 4% surtax applies to the amount above that line. Depreciation recapture is taxed at the same 5% in Massachusetts.

What is the Massachusetts millionaire tax threshold for 2026?

The 4% surtax threshold for tax year 2026 is $1,107,750 of taxable income, according to the Massachusetts Department of Revenue. It was $1,083,150 for 2025 and is adjusted for inflation each year. Residents pay the surtax on taxable income above the threshold, and nonresidents pay it on the Massachusetts-source portion of their income.

Do nonresidents pay Massachusetts tax when they sell property there?

Yes. Gain on Massachusetts real estate is Massachusetts-source income, so a nonresident files a Massachusetts return and pays 5% plus any surtax. For closings on or after November 1, 2025, sales of $1,000,000 or more also require withholding at closing, by default 4% of the price plus 4% of the amount above the surtax threshold.

Is depreciation recapture taxed in Massachusetts?

Yes, at 5% when the property was held more than a year. The Department of Revenue treats recapture amounts reported in Part II of federal Form 4797 as Massachusetts capital gains, so there is no separate 25% rate as there is federally. The 4% surtax can still apply to the recapture portion if your income passes the threshold.

Can a 1031 exchange avoid the Massachusetts surtax?

It can defer it. A full 1031 exchange defers recognition of the gain, so the gain does not count toward the surtax threshold in the year of sale. Cash you keep is taxed at 5% and can count toward the surtax. Nonresident sellers must consent to Massachusetts jurisdiction over the deferred gain, which is taxed when it is realized.

How is the 4% surtax calculated on a building sale?

Add the gain to your other Massachusetts taxable income for the year, subtract $1,107,750 for 2026 and multiply the excess by 4%. In our example, a seller with $300,000 of other income and a $1,220,000 gain has $412,250 above the threshold, so the surtax is $16,490 on top of the 5% tax.

Two Ways To Work With Us

Bring Us A Deal, Or Invest In One

For Agents, Brokers & Owners

Have A Multifamily Property?

We buy apartment buildings and income-producing residential assets nationwide — listed or off-market, stabilized or value-add.

  1. 1
    Send the basicsAddress, units and asking price.
  2. 2
    We review itAgainst our buy box, confidentially.
  3. 3
    Clear answer in 48 hoursA yes, a no, or the questions we need answered.
See our buy box
Takes 60 seconds
For Investors

Looking To Invest In Multifamily?

Join our investor network to learn how we structure partnerships and to be notified when new opportunities are available to qualified investors.

  • Disciplined, conservative underwriting
  • Professionally managed, passive ownership
  • Clear reporting and direct access to the team
  • Education first — no pressure, no hype
Call Text Submit Deal Invest