Seller guide · Taxes

Do You Pay Capital Gains Tax When You Sell Your House in Massachusetts?

Most sellers owe nothing, thanks to the $250,000 and $500,000 exclusion. Here is how the federal rules, Massachusetts rates and the 4% surtax fit together, with Rhode Island and Connecticut side by side and every number worked out.

Reviewed 13 min read23 sources checked

Federal home sale exclusion for single and joint filers, honored by MA, RI and CT
$250K / $500K
Massachusetts rate on long-term gain above the exclusion (8.5% if owned a year or less)
5%
Taxable income where the Massachusetts 4% surtax starts in 2026
$1,107,750

Most people who sell the Massachusetts home they live in pay no capital gains tax at all. Federal law lets you exclude up to $250,000 of gain ($500,000 for most married couples filing jointly) if you owned and lived in the home for at least two of the last five years, and Massachusetts follows that same exclusion. Only gain above the exclusion is taxed: federally at long-term capital gains rates, and in Massachusetts at 5% (8.5% if you owned the home a year or less), with a 4% surtax on the part of your total income above $1,107,750 in 2026.

Capital gains tax is not the same as the transfer tax every seller pays at closing. That deed excise or conveyance tax is a closing cost, and it is covered in our state guides for Massachusetts, Rhode Island and Connecticut.

This article is general information, not tax or legal advice. If your situation differs from the examples, talk to a CPA or real estate attorney.

The federal home sale exclusion: $250,000 or $500,000

Under Section 121 of the Internal Revenue Code, you can exclude up to $250,000 of gain from the sale of your main home, or up to $500,000 if you are married filing jointly (IRS Publication 523; IRS Topic 701). To qualify:

  • Ownership test: you owned the home for at least 24 months of the 5 years before the sale.
  • Use test: you lived in it as your main home for at least 24 months (730 days) of those 5 years. The months do not have to be consecutive.
  • Once every two years: you generally cannot use the exclusion if you excluded gain on another home sold in the two years before this sale (Topic 701).
  • Married couples: for the full $500,000, only one spouse needs to meet the ownership test, but each spouse must meet the use test (Pub 523).

If you have to sell early: the partial exclusion

If you fall short of two years because of a change in workplace location, a health issue, or an unforeseeable event (Pub 523 lists examples such as death, divorce, unemployment, or a home destroyed or condemned), you may qualify for a reduced exclusion (Pub 523). The reduced amount is generally proportional to the time you qualified. For example, a single seller who qualifies after 12 of the required 24 months may be able to exclude up to half of $250,000, or $125,000.

What the exclusion does not cover

  • A loss on the sale of your main home is not deductible (Pub 523).
  • If you receive a Form 1099-S, you must report the sale even when the whole gain is excluded, and any gain above the exclusion goes on Form 8949 and Schedule D (Topic 701).
  • There is no requirement to buy another home. The exclusion does not depend on reinvesting the proceeds.

How to figure your gain: basis, improvements and selling costs

Your gain is not the sale price minus what you paid. It is your amount realized minus your adjusted basis (Pub 523).

  • Amount realized = sale price minus selling expenses, meaning costs directly tied to the sale, such as commissions and seller-paid closing costs.
  • Adjusted basis starts with what you paid for the home, then adds certain settlement costs from your purchase (Pub 523 lists items such as legal fees, recording fees, survey fees, transfer or stamp taxes and owner’s title insurance) and the cost of improvements that add value, prolong the home’s life or adapt it to new uses. Routine repairs and maintenance do not count.
  • Minus depreciation: if you ever claimed (or could have claimed) depreciation for a home office or a rental, that reduces your basis.

Practical tip: improvement receipts (roof, kitchen, addition) are worth real money at sale. Start a folder now.

How Massachusetts taxes the gain on a home sale

Massachusetts conforms to the federal Section 121 exclusion, so the same $250,000 or $500,000 comes off your Massachusetts income (Massachusetts Tax Expenditure Budget, item 1.021). State law also sets a floor: the Massachusetts exclusion cannot be less than the federal exclusion as it stood on January 1, 2002 (M.G.L. c. 62, § 2).

Gain above the exclusion is taxed at these rates (Massachusetts DOR tax rates):

Massachusetts rate Applies to
5.0% Long-term capital gains (home owned more than one year)
8.5% Short-term capital gains (home owned one year or less)
+4% surtax Taxable income above $1,107,750 in tax year 2026 ($1,083,150 in 2025)

The 4% surtax and home sales

The surtax applies to the portion of your total Massachusetts taxable income (wages, interest, dividends and capital gains added together) above the year’s threshold, which is $1,107,750 for 2026 (DOR, 4% surtax). DOR is explicit that there is no special exclusion from the surtax for home sale gain that is otherwise taxable. Gain you exclude under Section 121 stays out of the calculation, because it is not taxable income in the first place. There is one threshold per return, and married couples who file jointly for federal purposes generally must file jointly in Massachusetts.

Quick example: a seller with $220,000 of other taxable income and $950,000 of taxable gain after the exclusion has $1,170,000 of Massachusetts taxable income. That is $62,250 over the 2026 threshold ($1,170,000 minus $1,107,750), so the surtax is $2,490 ($62,250 times 4%), on top of the regular 5% on the gain.

Worked example: a married couple selling in Massachusetts in 2026

Assumptions, all hypothetical:

  • Bought their single-family home in 2012 for $380,000, lived in it the whole time, file jointly, and have not used the exclusion before.
  • Purchase settlement costs that count toward basis: $6,000.
  • Improvements: new roof $18,000, kitchen remodel $52,000, finished basement $24,000 = $94,000.
  • Sell in 2026 for $1,150,000, with $63,000 in commission and seller closing costs.
  • Their other federal taxable income is $120,000, and their modified adjusted gross income before the sale is $150,000.

Step 1: Adjusted basis. $380,000 + $6,000 + $94,000 = $480,000

Step 2: Amount realized. $1,150,000 minus $63,000 = $1,087,000

Step 3: Gain. $1,087,000 minus $480,000 = $607,000

Step 4: Exclusion. $607,000 minus $500,000 = $107,000 taxable gain (federal and Massachusetts)

Step 5: Federal capital gains tax. For 2026, joint filers pay 0% on long-term gains only while taxable income stays at or below $98,900, and 15% up to $613,700 (Rev. Proc. 2025-32, section 4.03; see also Topic 409). Their other income already uses up the 0% band, and total taxable income ($120,000 + $107,000 = $227,000) stays under $613,700, so: $107,000 times 15% = $16,050

Step 6: Net investment income tax (NIIT). The 3.8% NIIT applies to the smaller of your net investment income or your modified AGI above $250,000 for joint filers, and it does not apply to gain excluded under the home sale rules (IRS Topic 559). Their modified AGI becomes $150,000 + $107,000 = $257,000, which is $7,000 over the line. $7,000 times 3.8% = $266

Step 7: Massachusetts tax. Long-term rate of 5%: $107,000 times 5% = $5,350. Their total Massachusetts taxable income is far below $1,107,750, so no surtax.

Result: about $21,666 in combined federal and Massachusetts tax ($16,050 + $266 + $5,350) on a $607,000 gain. Without the exclusion, all $607,000 would have been taxable. Every $1,000 of documented improvements they had forgotten would cut the taxable gain by $1,000.

Because the price is $1,000,000 or more, their closing attorney must also file a Massachusetts Form NRW, with a Transferor’s Certification from each spouse, even though full-year residents have nothing withheld (DOR). The deed excise is separate; the Seller Net Sheet shows what you actually walk away with.

Rental, mixed-use and two-family homes

Many Massachusetts sellers own a two- or three-family and live in one unit. Investment property gets no exclusion at all, so its gain is taxed at Massachusetts’ 5% long-term rate (8.5% if held a year or less), plus the surtax where it applies. For an owner-occupied multi-family:

  • Separate units are split out. Pub 523 gives “a duplex in which you lived in one unit and rented the other” as an example of a separate part of the property. Gain on the rented unit generally does not qualify for the exclusion, so you allocate the sale price and basis between your unit and the rental unit (Pub 523). A home office inside your living space does not need this split.
  • Depreciation comes back. You cannot exclude gain equal to depreciation allowed or allowable after May 6, 1997 (Pub 523). Federally, that “unrecaptured section 1250 gain” is taxed at a maximum of 25% (Topic 409).
  • Time as a rental can shrink the exclusion. Gain tied to periods after 2008 when the property was not your main home (for example, a former rental you later moved into) is generally “nonqualified use” and cannot be excluded, with some exceptions (Pub 523).

If you hold the property in an LLC, see our article on selling LLC-owned property in Massachusetts and Rhode Island. Investors deciding whether to sell or keep renting can compare with the Rental Potential Brief.

Selling an inherited home

  • Stepped-up basis. Your basis in inherited property is generally its fair market value on the date of death, or on the alternate valuation date if the estate elected it (IRS Publication 551). If you sell soon after for about that value, there may be little or no gain.
  • Always long-term. Inherited property is treated as held for more than one year, however long you actually owned it (IRS Publication 544). In Massachusetts that means the 5% rate, not 8.5%.
  • The exclusion needs your own two years. An heir only qualifies for the Section 121 exclusion by owning and living in the home for two of five years.
  • Estate tax is separate. Massachusetts has its own estate tax: a return is required when the gross estate plus adjusted taxable gifts exceeds $2,000,000 for deaths on or after January 1, 2023 (Massachusetts DOR, estate tax). That tax is owed by the estate. It is not a capital gains tax on the heirs’ later sale.

Rhode Island: gains taxed as ordinary income

Rhode Island taxes short-term and long-term capital gains the same as other income (RI Division of Taxation newsletter, Q2 2020). Its tax starts from federal adjusted gross income, so gain you exclude federally under Section 121 does not reach the Rhode Island return.

For tax year 2026, the uniform rate schedule is (RI ADV 2025-22):

  • 3.75% on taxable income up to $82,050
  • 4.75% from $82,050 to $186,450
  • 5.99% above $186,450

Two changes ahead. For 2027 the brackets rise to $84,700 and $192,550, and a new high-income surtax begins: 1% on personal income over $1 million in 2027, 2% in 2028 and 3% from 2029, with the threshold indexed for inflation and the same for all filing statuses (RI ADV 2026-24; 2026 Summary of Legislative Changes). A large taxable gain in a 2027 sale could cross that line.

Connecticut: gains taxed as ordinary income

Connecticut has no separate capital gains rate. Gain is part of Connecticut adjusted gross income, which starts from federal AGI and uses your federal basis, and it is taxed at the regular rates (Conn. Gen. Stat. § 12-700; CT DRS Form CT-1040NR/PY instructions).

2026 rates, single filers (joint-filer brackets are double) (CT DRS IP 2026(7)):

  • 2% up to $10,000; 4.5% to $50,000; 5.5% to $100,000; 6% to $200,000
  • 6.5% to $250,000; 6.9% to $500,000; 6.99% above $500,000 ($1,000,000 for joint filers)

Higher-income filers also lose the benefit of the 2% bracket and may owe a “recapture” amount, so a large gain can push more of your income toward the top rate.

Massachusetts, Rhode Island and Connecticut compared

Massachusetts Rhode Island Connecticut
Follows the federal $250,000 / $500,000 exclusion Yes Yes (starts from federal AGI) Yes (starts from federal AGI)
How taxable gain is taxed Separate rates: 5% long-term, 8.5% short-term As ordinary income As ordinary income
Top rate on a home sale gain, 2026 5% long-term (8.5% short-term), plus 4% on income above $1,107,750 5.99% (1% surtax over $1M begins 2027) 6.99%
Nonresident withholding at closing Sales of $1,000,000 or more: 4% of gross price, or 5% of estimated net gain by election, plus 4% above the surtax threshold 6% of net proceeds for individuals, unless an approved gain-based certificate None found for nonresident individuals; tax still due on the CT return
Transfer tax guide Massachusetts costs Rhode Island costs Connecticut costs

Selling as a nonresident: withholding at the closing table

Withholding is a prepayment, not a final tax. You file a nonresident return in the property’s state, and the amount withheld is credited against what you owe.

Massachusetts. For closings on or after November 1, 2025, the closing agent must file Form NRW for every sale with a gross price of $1,000,000 or more, and each seller completes a Transferor’s Certification (DOR). Full-year residents are exempt from withholding. For a nonresident individual, the default is 4% of the gross sales price; you can elect instead to have 5% withheld on your estimated net gain, plus an extra 4% on any amount above the surtax threshold. Withholding can be reduced where part of the gain is not recognized under Massachusetts law, such as gain covered by the home sale exclusion. Example: two nonresident spouses selling for $1,200,000 split the price equally, so 4% on $600,000 each is $24,000 apiece, $48,000 in total, unless they elect the net-gain method. Under $1,000,000, there is no Form NRW and no withholding, but the gain is still reported on Form 1-NR/PY.

Rhode Island. When a nonresident sells, the buyer must withhold 6% of the total payment (the net proceeds) to nonresident individuals, estates, partnerships or trusts (RI Division of Taxation). If your actual gain is small, or covered by Section 121, you can file an election to have withholding based on gain, with a certificate the Division must approve. The instructions say to submit it 20 days before closing (RI instructions). On $300,000 of net proceeds, the default would be $18,000.

Connecticut. We found no Connecticut statute requiring a buyer or closing agent to withhold income tax when a nonresident individual sells. Gain from Connecticut real property is still Connecticut-source income that you report on Form CT-1040NR/PY (CT DRS), so plan for estimated payments. Confirm with your closing attorney.

Sellers who are not U.S. persons also face separate federal withholding under FIRPTA, generally 15% (IRS).

Next steps

  1. Estimate your price. Start with a Home Value Brief for your Massachusetts, Rhode Island or Connecticut home.
  2. Estimate your proceeds. The Seller Net Sheet adds commission, transfer tax and closing costs so you can plug a realistic amount realized into the steps above.
  3. Gather your basis records. Closing statement from your purchase, improvement receipts, and any depreciation claimed.
  4. Line up the paperwork. Our checklist of every certificate and inspection a Massachusetts seller needs shows what to order and when.
  5. See your CPA before you list if you are near the surtax threshold, own a multi-family, inherited the home, or live out of state.

When you are ready, a Province & Domain advisor can walk you through pricing, timing and the selling process, in English, Portuguese, Cape Verdean Creole or Spanish. Find an advisor or read our seller guide.

Sources reviewed December 2026

General information, not legal, tax or lending advice. Figures were checked against the sources listed on the date shown.

Run your own numbers

Free tools from Province & Domain, built for Massachusetts, Rhode Island and Connecticut.

Talk it through

Questions about your own situation?

A Province & Domain advisor can walk you through pricing, timing and next steps in English, Portuguese, Cape Verdean Creole or Spanish. No pressure, no obligation.