Home Options MA

Calculators

Capital gains tax calculator for a home sale in Massachusetts

If you owned and lived in the house for at least two of the last five years, up to $250,000 of gain ($500,000 for a married couple filing jointly) is excluded from federal tax, and Massachusetts follows the same exclusion. Gain above that is taxed federally at 0%, 15% or 20%, plus 3.8% for higher incomes, and by Massachusetts at 5% (plus a 4% surtax on income over about $1 million).

Updated October 7, 2026. Facts checked October 7, 2026 against the sources listed at the bottom. General information, not legal, tax or financial advice.

Federal exclusion$250,000 / $500,000Single / married filing jointly, 2-of-5-year test (IRS Pub. 523)
Federal long-term rates0%, 15%, 20%2026 brackets, IRS Rev. Proc. 2025-32
Massachusetts rate5%Long-term gains; 4% surtax above the threshold
Extra federal tax3.8%Net investment income tax at higher incomes
$
$

Commission, deeds excise tax, attorney and other costs of selling reduce your gain.

$

Include buying costs such as the attorney and title fees. For an inherited home, use the value on the date of death.

$

New roof, addition, kitchen. Not routine repairs.

If yes, up to $250,000 of gain ($500,000 if married filing jointly and both qualify) is excluded from federal tax. The calculator does not do the partial exclusion for a shorter stay.

$

Wages and other income after deductions, not counting this gain.

More assumptions
$

The 2026 figure. The Department of Revenue indexes it each year; change it if you are filing for a different year.

$

Interest, dividends and other gains, used for the 3.8% net investment income tax.

This tool assumes you owned the home for more than one year. Gains on homes held a year or less are taxed as ordinary income federally and at 8.5% in Massachusetts, and are not calculated here. It also ignores depreciation recapture (if the home was ever a rental or had a home office), state-specific credits and alternative minimum tax.

Estimated tax on the sale

-

An estimate for planning, not tax advice or a tax return. Federal long-term rates and 2026 brackets: IRS Rev. Proc. 2025-32. Section 121: IRS Publication 523. Net investment income tax: 3.8% above $200,000 (single) or $250,000 (joint) of modified AGI. Massachusetts: 5% on long-term gains plus the 4% surtax above the threshold. Ask a CPA before you rely on it. Read the guide and how to work out your basis.

How the estimate is built

  1. Gain = sale price minus selling costs minus your basis (what you paid plus buying costs plus improvements). See cost basis and tax reporting.
  2. Exclusion. If you owned and used the home as your main home for 2 of the last 5 years, the first $250,000 of gain is excluded ($500,000 for joint filers when both spouses meet the use test and one meets the ownership test).
  3. Federal tax on the rest at long-term rates. Your other taxable income fills the brackets first, then the gain sits on top. The 2026 brackets are in the table below.
  4. Net investment income tax of 3.8% applies to the smaller of your investment income (the taxable gain counts) or the amount your income is over $200,000 (single) or $250,000 (joint).
  5. Massachusetts taxes long-term gains at 5%, plus a 4% surtax on taxable income over the yearly threshold.
2026 federal long-term capital gains brackets (taxable income)
RateSingleMarried filing jointly
0%Up to $49,450Up to $98,900
15%$49,451 to $545,500$98,901 to $613,700
20%Over $545,500Over $613,700

When the result will be wrong

  • You owned the home a year or less: gains are short-term, taxed as ordinary income federally and at 8.5% in Massachusetts. Not calculated here.
  • You lived there less than two of the last five years: you may qualify for a partial exclusion (job change, health, unforeseen events). Not calculated here; see IRS Publication 523.
  • The home was ever a rental, or part of it was a home office: depreciation you claimed (or could have claimed) is taxed separately, up to 25% federally.
  • You inherited the house: your basis is usually the value on the date of death, which can erase most of the gain. See taxes on an inherited house.
  • Head-of-household and married-filing-separately brackets differ slightly; single is used for both non-joint choices.

What to do with the number

Put the estimated tax into the net proceeds calculator (as an "other" cost) or into the cash offer vs listing tool so both routes are compared after tax. Ask a CPA to confirm before you sign anything, especially if the gain is near the exclusion limit.

Questions

Common questions.

Do I pay capital gains tax when I sell my house in Massachusetts?

Many sellers owe nothing. If you owned and lived in the house for at least two of the last five years, the first $250,000 of gain ($500,000 for joint filers) is excluded from federal tax, and Massachusetts follows the federal exclusion. You owe tax only on gain above that.

What is the Massachusetts capital gains tax rate?

Long-term gains (assets held more than a year) are taxed at 5%. Short-term gains are taxed at 8.5%. A 4% surtax applies to taxable income above a yearly threshold ($1,107,750 for 2026).

Do selling costs reduce my gain?

Yes. Commission, deeds excise tax, attorney fees and similar costs of selling are subtracted from the sale price when you work out the gain.

What if I sold a rental or inherited house?

The $250,000 exclusion does not apply unless you used it as your main home. An inherited house usually gets a stepped-up basis, so the gain is only what the house gains after the date of death. A rental also has depreciation recapture. Talk to a CPA.

Selling? Add drone photos

Show the whole property.

Aerial photos show the lot, the yard, the roofline and the neighborhood in a way street photos cannot. Many sellers add them to a listing, and they are a short, inexpensive shoot (typically $250 to $900).

See what you'd walk away with.

Enter your address. It is free, and you can stop at any point.

We are not a real estate broker or agent. We connect you with independent local buyers and agents who may pay us a fee. No obligation.

Step 1 of 2

Where is the house?

We will show you a ballpark for your town right away. Nothing here is an appraisal, and there is no obligation.