Selling a commercial property after years of ownership can trigger a tax bill that surprises even experienced investors. Between federal capital gains rates, Massachusetts’ 4% Millionaire’s Surtax, and depreciation recapture, the combined hit can easily consume 35, 40% of your gain. The good news: there are legal, well-tested strategies that let you defer or reduce that exposure , but they require planning before you go to market, not after.
Step 1: Determine Eligibility for Tax‑Deferral Strategies
Before choosing any strategy, you need a clear picture of what you actually owe. Capital gains tax is not applied to your sale price. It’s applied to thegain, the difference between your sale price and your adjusted basis in the property.
Your adjusted basis starts with what you paid, adds qualifying capital improvements, then subtracts all depreciation you claimed during ownership. That last part catches most owners off guard. Every year you deducted depreciation, you were also reducing your basis , which means your taxable gain is larger than you expect.
For Massachusetts owners, the full picture looks like this. Long-term capital gains (property held more than one year) are taxed at 5% at the state level. Short-term gains hit 8.5%. If your total taxable income for the year exceeds $1,107,750 , the 2026 surtax threshold , Massachusetts adds another 4% on every dollar above that line. A single commercial property sale can push most owners well past it. You can see how these rates stack in our detailed breakdown of capital gains tax on commercial real estate in MA and NH.
At the federal level, long-term gains are taxed at 0%, 15%, or 20% depending on your income. High earners also face the 3.8% Net Investment Income Tax (NIIT). And when you sell, the IRS requires you to “recapture” all the depreciation you claimed, taxing it at up to 25% , separate from your capital gains rate.
Once you know your adjusted basis, your estimated sale price, and your likely income for the year, you can model your total tax exposure across each strategy. That number is your starting point. Without it, you’re making decisions in the dark.
Step 2: Use a 1031 Like‑Kind Exchange
The 1031 like-kind exchange is the most widely used tool for deferring capital gains on investment real estate. Under 26 U.S.C. § 1031, when you sell a property held for investment or business use and reinvest the proceeds into a like-kind replacement property, you defer the capital gains tax entirely , including depreciation recapture and the Massachusetts state tax , until you eventually sell the replacement.
The mechanics are strict. You have 45 days from the closing of your sold property to formally identify potential replacement properties in writing. You then have 180 days to close on one of them. You cannot touch the sale proceeds at any point , they must be held by a credentialed, bonded Qualified Intermediary (QI), an independent third party who manages the funds and prepares the required IRS documentation.
Any cash or debt relief that is not reinvested , called “boot” , is taxed immediately. To defer 100% of the gain, the replacement property must be of equal or greater value than the relinquished property, and all cash proceeds must be reinvested. Our guide on how to use a 1031 exchange to roll over property sale taxes walks through the full mechanics in detail.
One of the most common mistakes is assuming your CPA or attorney can act as the QI. They cannot , the IRS prohibits it. You need a separate, credentialed intermediary with errors-and-omissions insurance and a fidelity bond. Get referrals from your broker or attorney, and engage the QI before you close, not after.
The 1031 exchange works for office, industrial, retail, raw land, and most other commercial asset types. It does not apply to personal residences or property held primarily for resale. Foreign property is also excluded , the replacement must be U.S.-based real estate.
When it works, the 1031 is the most powerful tool available. A 40-year owner of a North Reading industrial building we worked with faced a capital gains tax bill of nearly $400,000 on the sale. By completing a 1031 exchange, he deferred that liability entirely and reinvested into a property leased by a NYSE-traded company, generating $100,000 per year in net cash flow through 2032. That is the transformation a well-executed exchange can produce.
Step 3: Use a Delaware Statutory Trust (DST)
The 45-day identification window in a standard 1031 exchange is where deals fall apart. If you can’t find a suitable replacement property in time, the exchange fails and the full tax bill comes due. A Delaware Statutory Trust, or DST, solves that problem.
A DST is a legal entity formed under Delaware law that holds title to real estate. Investors purchase fractional beneficial interests in the trust, and the IRS , under Revenue Ruling 2004-86 , treats those interests as direct real property ownership for 1031 exchange purposes. That means a DST qualifies as a like-kind replacement property, giving you access to institutional-grade assets without the burden of direct ownership or management.
Here’s why this matters in practice. A DST sponsor acquires a property , say, a Class A logistics center or a net-lease retail portfolio , and then sells fractional interests to investors completing 1031 exchanges. You can close on your DST interest quickly, solving the last-mile identification problem that trips up so many exchangors.
The passive structure is a genuine benefit for owners who are tired of active management. The trustee handles operations, collects rent, and distributes net cash flow to beneficiaries. Creditors of individual investors have no claim on trust property. Each investor reports income and deductions on their own tax return based on their percentage interest, not a K-1.
The limitations are real. DST interests are illiquid , you can’t sell your fractional share on a secondary market the way you’d sell stock. Sponsor fees reduce net returns. And the “Seven Deadly Sins” rules that govern DST structure (established in Revenue Ruling 2004-86) prevent the trust from taking on new debt, making capital calls, or renegotiating leases after the offering closes. You’re a passive investor, full stop.
After holding a DST interest, some investors take the next step and contribute their interest to a REIT operating partnership under Section 721 , sometimes called an UPREIT contribution. This defers the gain further while converting the illiquid DST interest into liquid REIT operating partnership units. It’s a more complex path with its own holding-period rules, but it’s worth understanding if diversification and liquidity are priorities.
Step 4: Structure an Installment Sale (Section 453)
Most national guides on how to avoid capital gains tax on real estate skip this one. That’s a mistake, especially for Massachusetts owners. A Section 453 installment sale is one of the most effective tools for keeping annual taxable income below the $1,107,750 Millionaire’s Surtax threshold.
Here’s how it works. Instead of receiving the full sale price at closing, you accept a buyer-financed note , a structured payment over multiple years. The IRS allows you to recognize the gain proportionally as you receive each payment, rather than all at once in the year of sale. The result: your taxable income in any single year stays lower, which may keep you below the surtax threshold entirely.
There’s a critical catch that every seller must understand before structuring this. Depreciation recapture is not spread across the payment years. Under IRS ordering rules, the recaptured Section 1250 gain is recognized first , in the year of sale , regardless of how payments are structured. That portion of your tax bill comes due immediately.
The interest on the note also matters. Each payment must include market-rate interest, and that interest is taxed as ordinary income , not at the lower capital gains rate. If the sale agreement doesn’t specify adequate stated interest, the IRS will impute it.
Sellers can elect out of the installment method and report the full gain in the year of sale , which can make sense if capital gains rates are expected to rise, or if you have a large loss carryforward to absorb the gain. Run the numbers both ways before you decide. When it comes to due diligence on the deal structure itself, a thorough review process , similar to what investors use in a final walk-through checklist for investment properties , can surface issues before they become expensive surprises at closing.
The installment sale works best when the buyer is creditworthy, the note is properly secured, and your CPA has modeled the annual income impact across multiple scenarios. It’s not a fit for every deal, but for Massachusetts sellers with gains above the surtax threshold, it deserves serious analysis.
Step 5: Invest in Qualified Opportunity Zones (QOZ)
The Qualified Opportunity Zone program took a major turn in July 2025. The One Big Beautiful Bill Act permanently extended the QOZ program, eliminating the December 31, 2026 sunset that had been driving last-minute investment decisions. The program is now a stable, long-term strategy rather than a closing window.
Here’s how the program works. When you sell a commercial property and realize a capital gain, you have 180 days to invest that gain into a Qualified Opportunity Fund (QOF) , an investment vehicle that deploys at least 90% of its assets into properties or businesses in designated Opportunity Zones. By doing so, you defer the original gain. The deferred gain is recognized on the fifth anniversary of your QOF investment date (for investments made after December 31, 2026, under the new rolling structure).
The program stacks three benefits. First, deferral of the original gain. Second, a 10% step-up in basis if you hold the QOF investment for five years , meaning 10% of your original gain is permanently excluded from tax. Rural QOF investments now receive a 30% step-up under the new rules, a meaningful enhancement. Third, and most powerful: if you hold the QOF investment for at least 10 years, all appreciation on the QOF investment after your original investment date is permanently excluded from federal tax.
The math is compelling. An investor with a $1 million capital gain who rolls into a QOF and holds for 10 years at a 7% annual return ends up with roughly $300,000 to $450,000 more in after-tax wealth compared to paying the tax and reinvesting the remainder , assuming the same return on both paths.
But the program has real complexity. QOZ rules are technical, and a QOF that fails compliance requirements can disqualify the investment retroactively. For existing buildings, the QOF must double the property’s basis through capital improvements within 30 months. Fund fees tend to run higher than comparable private real estate investments. And state conformity varies , Massachusetts does not automatically conform to all federal QOZ tax benefits, so your state tax treatment requires separate analysis.
The QOZ map is also changing. Beginning January 1, 2027, states will redesignate qualifying tracts under a tighter income threshold (median family income no more than 70% of state median, down from 80%). Investors evaluating QOF deals that close after that date should verify the underlying properties still qualify under the new designations.
For investors with large gains from commercial property sales in Greater Boston, Essex County, or southern New Hampshire, QOZ investing is worth a serious look , particularly given New Hampshire’s existing tax advantages and the concentration of designated zones in the I-495 corridor and Rockingham County.
Step 6: Combine Strategies with MANSARD’s Tax‑Sensitive Advisory
Each strategy above works on its own. But the owners who protect the most capital are the ones who combine them intentionally , and who start planning before the property goes to market.
Consider a retiring business owner who has held a commercial building for 35 years. The depreciation recapture alone might exceed $300,000. A 1031 exchange defers both the recapture and the capital gain. If the replacement property is contributed to a UPREIT after the exchange, the gain defers further while the owner gains liquidity and diversification. If the owner also has a significant stock sale in the same year, timing the real estate closing into a different tax year can keep the combined income below the Massachusetts surtax threshold.
This kind of multi-layered planning requires coordination between your commercial broker, your CPA, a Qualified Intermediary, and sometimes an estate attorney. It also requires an accurate valuation of your current property before any of these decisions are made , because the strategy that makes sense at a $4 million sale price may be different from the one that makes sense at $6 million.
At MANSARD Commercial Properties, tax-sensitive advice is built into our pre-sale process, not bolted on at the end. We analyze your tax exposure , capital gains, depreciation recapture, and surtax risk , before we price your property or bring it to market. That analysis shapes everything: how we structure the deal, which buyer types we target, and how we time the closing.
85.8% of commercial properties in Massachusetts and New Hampshire are purchased by local investors. Many of them are completing 1031 exchanges themselves and are willing to pay a premium to close quickly and cleanly. Knowing that , and marketing specifically to that buyer pool , is how we generated 8 cash offers in 18 days on a North Reading industrial property and outsold comparable listings by $250,000. That 23% premium over peers wasn’t luck. It was the result of matching the right buyer type to the right deal structure from day one.
Our 42-point Proprietary Sales Method includes a full tax sensitivity review at the pre-sale stage. We model your likely exposure across multiple scenarios, identify which deferral strategies fit your situation, and help you engage the right QI, CPA, and legal counsel before you list. Over 18 years and more than 1,000 transactions, we’ve seen what happens when owners go to market without this work done. The tax surprise at closing is the most avoidable expensive mistake in commercial real estate.
For a deeper look at how depreciation recapture interacts with each of these strategies, our guide on depreciation recapture on commercial real estate in MA and NH walks through the rate buckets and the ordering rules that determine what you owe and when.
The common th is timing. The 1031 clock starts at closing. The installment sale structure must be in the purchase agreement. The QOF investment must happen within 180 days of the gain. None of these tools are available after the fact. Schedule a Pre-Sale Strategy Call with MANSARD before you list , we give you a clear picture of your options while you still have them.
FAQ
Can I avoid capital gains tax entirely when selling commercial real estate?
Full elimination is rare for commercial properties. The primary residence exclusion (up to $500,000 for married filers under IRS guidelines) does not apply to pure commercial assets. What you can do is defer the tax indefinitely through a 1031 exchange, reduce annual exposure through an installment sale, or exclude post-investment appreciation through a 10-year QOZ hold. Depreciation recapture is recognized in the year of sale under most strategies.
What is the 45-day rule in a 1031 exchange?
The 45-day rule requires you to formally identify potential replacement properties in writing within 45 calendar days of closing the sale of your relinquished property. Miss that deadline and the exchange fails , the full tax bill becomes due. A Delaware Statutory Trust can help solve this problem, since DST interests are pre-packaged and can be identified and closed on quickly, even within a compressed timeline.
Does Massachusetts conform to federal 1031 exchange rules?
Yes. Massachusetts follows the federal 1031 exchange framework, meaning a properly structured exchange defers both federal and state capital gains tax on the sale. It also removes the gain from the Massachusetts Millionaire’s Surtax calculation for that tax year, since the deferred gain never enters your taxable income. Work with a Massachusetts-based CPA to confirm the state filing treatment for your specific transaction.
How does a Section 453 installment sale help with the Massachusetts Millionaire’s Surtax?
The 2026 surtax threshold is $1,107,750. A lump-sum sale often pushes a commercial property owner well past it, triggering the extra 4% on the excess. An installment sale spreads gain recognition across multiple years, which may keep each year’s taxable income below the threshold. The catch: depreciation recapture is still recognized in full in the year of sale, regardless of the payment schedule.
What changed about the Qualified Opportunity Zone program in 2025?
The One Big Beautiful Bill Act, signed July 4, 2025, permanently extended the QOZ program, eliminating the December 31, 2026 sunset. For investments made after December 31, 2026, the deferred gain is recognized on the fifth anniversary of the individual QOF investment date , a rolling structure , rather than on a fixed date. Rural QOF investments now receive a 30% basis step-up after five years, up from 10%.
Do I need a Qualified Intermediary for a 1031 exchange?
Yes, and it must be an independent third party , your broker, CPA, and attorney are all disqualified by IRS rules. The QI holds your sale proceeds, prepares the required exchange documentation, and transfers funds to the replacement property at closing. Choose a QI with verifiable credentials, errors-and-omissions insurance, and a fidelity bond. Get referrals from your commercial broker or attorney, and engage the QI before you close on the sale. Our discussion of common 1031 exchange pitfalls covers QI selection in more detail.
Conclusion
The strategies that protect your capital , a 1031 exchange, a DST, a structured installment sale, a QOZ investment , all have one thing in common: they require decisions made before closing, not after. If you own a commercial property in Massachusetts or New Hampshire and are thinking about selling in the next 12 to 24 months, the best first step is a pre-sale tax exposure analysis. Schedule a Pre-Sale Strategy Call with MANSARD Commercial Properties at masscommercialproperties.com , we’ll model your gain, identify the right deferral strategies, and help you go to market with a plan that protects what you’ve built.

