
Guides
Selling a primary residence is governed by a different set of rules than selling investment property, centered on the Section 121 exclusion rather than Section 1031 deferral. Under Section 121, a taxpayer who has owned and used a home as a primary residence for at least two of the five years preceding the sale can exclude up to two hundred fifty thousand dollars of gain from federal income tax if filing single, or up to five hundred thousand dollars if filing a joint return, provided both spouses meet the use test. This exclusion is generally available once every two years and does not require reinvesting the proceeds into another home, unlike a 1031 exchange, which requires acquiring replacement property to achieve deferral.
Because a primary residence is not held for investment or business use, it generally does not qualify for a 1031 exchange on its own. Section 1031 is limited to property held for productive use in a trade or business or for investment, and a home used exclusively as the owner's residence does not meet that standard, regardless of how much the property has appreciated. This is a common point of confusion for Boston, MA homeowners who have heard of 1031 exchanges through investment property circles and assume the same deferral applies to a primary home sale.
Many properties do not fall neatly into either category. A homeowner who lived in a property for several years and then converted it to a rental before selling, or who rented out a portion of the home while living in the rest, may have gain attributable to both personal and investment use. The Internal Revenue Service addressed this overlap in Revenue Procedure 2005-14, which allows a taxpayer to combine the Section 121 exclusion with a Section 1031 exchange on the same property, applying the exclusion first to gain up to the applicable limit and then using an exchange to defer any remaining gain attributable to the investment-use portion of the property. This combined treatment requires careful allocation between the personal-use and investment-use periods, and the amount of gain eligible for the Section 121 exclusion is generally reduced for periods of nonqualified use, meaning periods after 2008 when the property was not used as a primary residence.
For a Boston, MA homeowner who converted a triple-decker or condominium from a primary residence into a rental property, understanding this allocation matters before assuming either the full exclusion or a full exchange deferral will apply cleanly. The nonqualified use calculation and the exchange mechanics both require documentation of exactly when the personal-use period ended and the investment-use period began, since that timeline drives how much of the eventual gain falls into each category.
Massachusetts generally follows the federal Section 121 exclusion for state income tax purposes, meaning gain excluded federally is also generally excluded from Massachusetts taxable income. Gain above the federal exclusion amount, or gain attributable to a period of investment use that does not qualify for the exclusion, is generally taxed at the Commonwealth's applicable capital gains rate, with the same Fair Share surtax considerations that apply to any other large gain reported in a given tax year.
Homeowners considering converting a Boston, MA residence to a rental before an eventual sale, or who already have mixed personal and rental history on a property, should generally work through the Section 121 and Revenue Procedure 2005-14 allocation with a tax advisor before listing the property, since the combined exclusion and exchange strategy depends heavily on accurate historical use records. This site's Tax Impact Briefing service can help model gain scenarios once the underlying use history is documented, working alongside a CPA who handles the specific Section 121 allocation calculation.
Common replacement classes
Under Section 121, an eligible taxpayer can exclude up to two hundred fifty thousand dollars of gain filing single, or up to five hundred thousand dollars filing jointly, provided the ownership and use tests are met for at least two of the five years before the sale. This exclusion is generally available once every two years.
Generally no, on its own. A primary residence is not held for investment or business use, which is a requirement for Section 1031. A home that had mixed personal and rental use may be able to combine the Section 121 exclusion with a 1031 exchange under Revenue Procedure 2005-14 for the investment-use portion.
Gain may need to be allocated between the personal-use period, eligible for the Section 121 exclusion, and the investment-use period, potentially eligible for 1031 deferral under Revenue Procedure 2005-14. The exclusion amount can also be reduced for periods of nonqualified use after 2008 when the property was not the owner's primary residence.
Massachusetts generally follows the federal Section 121 exclusion, so gain excluded federally is also generally excluded from Massachusetts taxable income. Gain above the exclusion, or attributable to investment use, is generally taxed at the state's applicable rate, with Fair Share surtax considerations for large gains.
The exclusion is generally available once every two years, tied to meeting the ownership and use test for that period. A homeowner who used the exclusion on a prior sale within the last two years generally cannot use it again on a subsequent sale until the two-year window has passed.

Ready to Begin?
Share your timelines and acquisition targets and we will deliver a prioritized property roadmap for your identification window.
Start Your Briefing