Home Options MA(781) 483-0510

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 November 10, 2026. Facts checked November 10, 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, interest and other income this year before any deduction, not counting this gain (your adjusted gross income without the sale). The calculator subtracts the 2026 standard deduction for your filing status to place the gain in the tax brackets, and uses the full amount for the 3.8% net investment income tax. If you itemize, your brackets will differ.

More assumptions
$

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

$

The part of your other income that is interest, dividends or other gains. It is added to this sale 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. This is general information, not legal or tax advice. Talk to an attorney or CPA about your situation. Sources: IRS Rev. Proc. 2025-32 (2026 long-term gain brackets and standard deductions), IRS Publication 523 (section 121), IRS net investment income tax (3.8% on the smaller of net investment income or the amount of modified AGI over $200,000 single or head of household, $250,000 joint, $125,000 separate), Mass.gov tax rates (5% on long-term gains plus the 4% surtax above the 2026 threshold). 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.
  • 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.

Sources

Where this comes from.

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.

See what you'd walk away with.

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

Free, no obligation. We show you the range before we ask for your name.

Home Options MA makes offers on houses, takes option contracts on houses, or refers owners to independent buyers and agents. If we make the offer or take the option, we are the buyer and not your agent. If we refer you, the buyer or agent may pay us a flat advertising fee, and a listing here is advertising, not a recommendation. You never pay us. 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.