Selling a Massachusetts Rental Through a 1031 Exchange

    October 29, 2026•By Kevin Hoang
    Selling a Massachusetts Rental Through a 1031 Exchange

    Owners of Greater Boston rental property who bought years ago often have large gains, and selling means paying tax on them. A 1031 exchange, named for section 1031 of the Internal Revenue Code, lets an investor sell real estate held for investment or business use and buy other such real estate while deferring the federal capital gains tax. Massachusetts generally follows the federal treatment for its own income tax.

    The rules are rigid. The replacement property must be identified within 45 days of the sale and acquired within 180 days, the sale proceeds must be held by a qualified intermediary rather than the seller, and to defer all of the tax the seller must reinvest all of the proceeds in property of equal or greater value. Miss a step and the exchange fails, and the tax is due in full.

    What qualifies, and what does not

    Both the property sold and the property bought must be real property held for investment or for productive use in a trade or business. Since 2018 the rule covers real property only.

    • Qualifies: rental houses, two- and three-families, apartment buildings, commercial property, land held for investment.
    • "Like-kind" is broad: a rented two-family can be exchanged for a commercial building or for land. The test is the purpose of holding, not the type of building.
    • Does not qualify: your primary residence, which has its own exclusion instead; property held mainly for resale, such as a house bought to renovate and sell; and in general a second home used mostly by you. A vacation property can qualify only within an IRS safe harbour that limits personal use and requires genuine rental.

    If you are thinking of renting out your current home and exchanging it later, keeping the house and renting it explains how the two sets of rules interact.

    The two deadlines that cannot move

    • 45 days to identify. From the day the property you are selling closes, you have 45 calendar days to identify the replacement in writing to your intermediary. The usual rule allows up to three properties, or more within value limits.
    • 180 days to acquire. You must close on the replacement within 180 days of the sale, or by the due date of your tax return for that year if earlier, unless you extend the return.

    These are calendar days, weekends and holidays included, and they are not extended for a slow seller or a lender's delay. Extensions are available only in specific circumstances such as federally declared disasters. In a market with little inventory, 45 days passes quickly, so start looking before you sell and identify backups.

    Why the money must go through a qualified intermediary

    If the seller receives the sale proceeds, or has the right to them, the exchange fails. So before the sale closes, the seller engages a qualified intermediary, who takes an assignment of the sale contract, receives the proceeds at closing, holds them, and uses them to buy the replacement.

    Choose the intermediary carefully. They hold a large sum of your money for months. Ask about bonding, insurance, how funds are held and segregated, and how long they have been doing it. Your closing attorney will coordinate with them, and your purchase and sale agreements should include a clause in which the other party agrees to cooperate with the exchange.

    Deferring all of it: value and debt

    To defer the whole gain, the replacement must be worth at least as much as what you sold, all the net proceeds must be reinvested, and any mortgage paid off must be replaced with new debt on the replacement or with added cash. Anything left over, whether cash taken out or a reduction in debt, is called boot and is taxable.

    An illustration, with hypothetical figures: an investor sells a two-family for $1,200,000, paying off a $300,000 mortgage and netting about $850,000 after costs. To defer fully, they buy a replacement of at least the sale price, put the whole $850,000 into it, and finance at least as much debt as they retired. If they instead keep $100,000 of the proceeds, that $100,000 is taxable now.

    Deferral is not forgiveness

    The gain is postponed, not erased. The replacement property takes on the old property's tax basis, adjusted, so the deferred gain sits inside it and is taxed when it is eventually sold outside an exchange. Depreciation recapture is deferred the same way.

    Investors who exchange repeatedly and hold until death may never pay it: under current law, property inherited generally receives a basis equal to its value at death. That is an estate planning point as much as a tax one, and passing on a Massachusetts home covers it.

    Massachusetts and the state tax

    Massachusetts generally follows the federal treatment of like-kind exchanges for its personal income tax, so a valid federal exchange usually defers the state tax too. Where the replacement property is outside Massachusetts, or the gain is large enough to reach the state's surtax on high incomes, ask your tax adviser how the state will treat it. The deferral is valuable precisely because the combined federal and state tax on a long-held rental can be large.

    When an exchange is not worth it

    • The gain is small, and the cost of the intermediary and the constraints outweigh the tax.
    • You want the cash, to retire, to pay down other debt, or to stop being a landlord.
    • You cannot find a replacement you would actually want inside the deadlines. Buying the wrong property to save tax is a poor trade.
    • You plan to move into the replacement. Converting exchanged property into a residence is possible, but the primary-residence exclusion is then restricted for property acquired in an exchange within the previous five years.

    A reverse exchange, buying the replacement before selling, is possible through an accommodation arrangement, but it is more complex and more expensive.

    Buying a rental property and buying a two- or three-family cover the replacement side. The IRS sets out the basics in its guidance on like-kind exchanges.

    General information as of 2026, not tax or legal advice. Exchange rules are technical and unforgiving; plan any exchange with a tax adviser and a Massachusetts real estate attorney before the sale is agreed.

    Share this article