SELLING

Capital Gains Tax When You Sell a Home in Massachusetts: What Quincy Sellers Should Know (2026)

August 8, 2026 By Krista Recker

Here is the short answer most Quincy sellers are looking for. If the home you are selling has been your primary residence for at least two of the last five years, federal law lets you exclude up to $250,000 of gain if you file single, or up to $500,000 if you are married filing jointly. For many Massachusetts resident individuals, gain that is excluded under that federal rule is generally not taxed by the state either. Many Quincy homeowners who qualify for the exclusion owe no tax on the gain up to the exclusion limit.

The sellers who do get surprised are the ones who fall outside that setup. Long-time owners with very large gains, families selling an inherited home, investors selling a rental or a multi-family, people who moved out years ago and rented the place, and sellers who live out of state on a sale of $1,000,000 or more. Those situations have real tax consequences, and most of them are knowable months before you list. This post walks through how the math actually works in Massachusetts so you can see which category you are in. I am a real estate salesperson, not a CPA, so treat this as a map of the terrain, not personalized tax advice.

Who This Applies To

You likely owe no capital gains tax on the sale if you have lived in the home as your primary residence for at least two of the last five years and your gain, not your sale price, is under the exclusion amount for your filing status.

You should be planning ahead with a tax professional if any of these describe you:

You bought decades ago and your gain looks like it may exceed $250,000 single or $500,000 married. In Quincy this is a very real scenario for owners who bought in the 1980s or 1990s and are now selling into a mid-$600,000s to $700,000 market.

You inherited the property. The tax picture here is usually better than people expect, but only if you understand basis.

You are selling a rental, a two-family or three-family, or a unit you once lived in and later rented out. Depreciation changes the math.

The gross sales price is $1,000,000 or more. A newer filing requirement applies to every sale at that level, and withholding may apply on top of it if you are a nonresident and no exemption applies.

You are selling in under a year from when you bought. Short-term gains are taxed at a higher Massachusetts rate.

Step One: Your Gain Is Not Your Sale Price

This is where most of the confusion starts. The number that matters is your gain, and gain is what is left after you subtract your adjusted basis and your selling costs from the sale price.

LineWhat it means
Sale priceWhat the buyer pays
Minus selling costsCommission, tax stamps, attorney fees, and other allowable costs of sale
Minus adjusted basisWhat you originally paid, plus capital improvements over the years, with certain adjustments
Equals your gainThe number the tax rules actually apply to

Capital improvements matter more than people realize. A new roof, a finished basement, a kitchen renovation, replacement windows, a new heating system, an addition. Those generally add to your basis and reduce your taxable gain. Routine repairs and maintenance generally do not. If you bought a Quincy home in 1998 for $185,000 and put $120,000 into it over the years, your basis is closer to $305,000 than $185,000, and that difference can be worth real money.

The practical takeaway: keep receipts. Sellers who have documentation of their improvements consistently end up with a smaller taxable gain than sellers who are working from memory.

The Federal Exclusion and the Two-Year Rule

The primary residence exclusion under Section 121 of the federal tax code is the reason most home sellers owe nothing.

To qualify, you generally need to have owned the home for at least two of the five years before the sale, and used it as your main home for at least two of those same five years. Those two years do not have to be consecutive. You also generally cannot have used the exclusion on another home sale within the two years before this one.

The exclusion amounts are $250,000 for single filers and $500,000 for married couples filing jointly. Those figures are set in the statute and are not adjusted for inflation, which is worth knowing, because Massachusetts home values have climbed a great deal since the exclusion was written into law in 1997 while the exclusion itself has not moved.

There are partial exclusion rules for sellers who fall short of the two years for specific qualifying reasons, such as certain work relocations, health situations, or other unforeseeable circumstances defined by the IRS. If you are close to the line, that is a conversation worth having with a CPA before you sign anything, because timing a closing a few weeks differently can change the outcome.

What Massachusetts Adds on Top

For many Massachusetts resident individuals, gain excluded under the federal rule is generally not taxed at the state level either. Where Massachusetts matters is on the gain that is left over after the exclusion, or on property that does not qualify as a primary residence in the first place.

SituationMassachusetts treatment for 2026
Long-term gain, property held more than one yearTaxed at the 5 percent personal income tax rate
Short-term gain, property held one year or lessTaxed at 8.5 percent
Taxable income above the surtax thresholdAn additional 4 percent surtax applies to the portion of Massachusetts taxable income above the threshold. The Department of Revenue lists the tax year 2026 threshold as $1,107,750. The figure is adjusted annually, so confirm the current amount with DOR or your CPA

The surtax is the one that catches people, and it helps to be precise about what it is. It is not a separate capital gains tax. It is a 4 percent surtax on the portion of your total Massachusetts taxable income that sits above the threshold, and a large one-time home sale gain can be what pushes an otherwise ordinary income year over that line. DOR is clear that income excluded from your taxable income is also excluded when calculating the surtax, while gain from a home sale that is otherwise taxable does count. That is why the federal exclusion does more than save you 5 percent. It can also keep you under the surtax threshold entirely.

On the federal side, gain above the exclusion is taxed at long-term capital gains rates of 0, 15, or 20 percent depending on your income, and higher earners may also owe the 3.8 percent net investment income tax on the taxable portion. That is why the real question for a large-gain seller is never just "what is the rate." It is how the federal rate, the state rate, the surtax, and the net investment income tax stack in your specific year.

The $1 Million Rule Out-of-State Sellers Need to Know

This one is newer and it surprises people, particularly the out-of-state families I work with who are selling a parent's home.

For Massachusetts real estate closings on or after November 1, 2025, the closing attorney or title company must file a Form NRW with the Department of Revenue for any sale where the gross sales price is $1,000,000 or more. Every seller in that transaction has to complete a Transferor's Certification and provide it to that withholding agent on or before closing. Two things worth separating here. The filing requirement is triggered by the gross sales price and applies whether the seller is a resident or not. Whether any money is actually withheld is a different question, and it depends on the seller's status and on what the certification says.

If the seller is a nonresident and no exemption applies, tax may also be withheld from the proceeds. The default withholding is 4 percent of the gross sales price. A seller can instead elect an alternative calculation based on estimated net gain, which is withheld at 5 percent of that gain. Where the applicable amount exceeds the surtax threshold, an additional 4 percent applies to the portion above it. Full-year Massachusetts residents, resident trusts, estates of resident decedents, pass-through entities, and several other categories are exempt from the withholding, but only if they provide the Transferor's Certification.

Two things to understand about this. First, withholding is not the tax itself. It is money held against the tax you may owe, and you claim it as a credit when you file your Massachusetts return, with any excess refunded. Second, if no acceptable Transferor's Certification is provided before closing, the withholding agent has to withhold on the gross sales price at the applicable rate, which can mean a much larger chunk of your proceeds sitting with the state until you file.

In Quincy this is not a niche issue. Two-family and three-family properties, waterfront homes in Squantum and Marina Bay, and larger single-families regularly clear $1,000,000. If you live out of state and are selling one of them, ask your closing attorney about the Transferor's Certification early, not the week of closing.

Inherited Homes: Usually Better News Than Expected

When you inherit a property, the cost basis generally steps up to the fair market value as of the date of death. That is a federal income tax rule that applies in Massachusetts as well.

The practical effect is significant. If your parents bought a Quincy home in 1985 for $80,000 and it is appraised at $690,000 when you inherit it, your basis is roughly that date-of-death value. Sell it near that number and the taxable gain is small, sometimes close to nothing, even though the family held the property through forty years of appreciation.

Two things to get right. Get a defensible date-of-death valuation, because that number is your basis and you want it documented rather than estimated years later. And know that gain is measured from the stepped-up basis forward, so if the estate holds the property for a few years while the market rises, that later appreciation can be taxable.

One clarification worth making, since families often blur the two together. The step-up is an income tax concept. The Massachusetts estate tax is a separate tax with its own threshold and its own rules, and it is a different conversation from the one in this post.

Rentals, Multi-Families, and Units You Used to Live In

If the property was ever a rental, the math changes in two ways.

Depreciation recapture. If you claimed depreciation while renting the property, that depreciation is generally recaptured when you sell, taxed federally at a rate up to 25 percent on the unrecaptured portion, regardless of whether the rest of the gain is excluded. Sellers who lived in a two-family, rented the other unit, and assume the primary residence exclusion covers everything are frequently surprised here.

Mixed use. If you occupied one unit of a two-family and rented the other, the exclusion generally applies to the portion attributable to your residence, not the whole building. The allocation matters, and it is worth doing with a CPA rather than by rule of thumb.

For pure investment property, a 1031 like-kind exchange can defer gain if the transaction is structured correctly, which requires strict deadlines and a qualified intermediary lined up before you close. That is a decision that has to be made before the sale, not after. Once the proceeds hit your account, the option is gone.

What Separates Sellers Who Plan From Sellers Who React

The pattern I see is consistent.

Sellers who plan know their basis before they list. They have gathered improvement receipts, they know what they paid, and they have a rough gain estimate in hand rather than a guess.

They involve a CPA before the offer, not at tax time. A thirty minute conversation in advance can change how a sale is structured, or which tax year it lands in.

They understand which pieces are fixed and which are negotiable. Massachusetts tax stamps at $4.56 per $1,000 of sale price are a fixed cost of the transaction. Commission is negotiable. Improvement documentation is entirely within your control. Timing may be flexible.

They separate the tax question from the pricing question. A large tax bill is a function of a large gain, and a large gain means the property performed. Selling for less to reduce a tax bill almost never works out in the seller's favor.

And they ask about the $1 million filing rule early if they are out of state, so the paperwork does not become a closing-week problem.

The Bottom Line

Many Quincy homeowners selling a primary residence they have lived in for at least two of the last five years will not owe capital gains tax, because the federal exclusion covers the gain up to the limit and, for most Massachusetts resident individuals, that excluded gain is not taxed by the state either. That is the accurate headline, and it is why the tax question should not be the thing that stops you from making a move you otherwise want to make.

The exceptions are real, though, and they are predictable. Very large gains, inherited property, rentals and multi-families with depreciation history, short holding periods, and sales at $1,000,000 or more where the seller lives out of state. If you are in one of those groups, the answer is not to avoid selling. It is to get a clear read on your gain, your basis, and your timing before you list, so nothing about your net number is a surprise at the closing table.