Massachusetts Capital Gains Tax

Massachusetts Capital Gains Tax: What You'll Actually Owe

If you are selling appreciated property in Massachusetts, the state tax is only one of four layers, and usually not the one that does the most damage.

Massachusetts capital gains tax calculator

Enter your sale and see the 2026 tax in Massachusetts: federal capital gains tax, the 3.8% net investment income tax and Massachusetts state tax, then the same sale spread over the years the buyer pays you. It runs on the same engine as our capital gains tax calculator, in your browser. Rental property, your home, land, a business, stock or collectibles.

Example loaded. Change any number to run yours.
What you paid plus improvements, minus depreciation or depletion taken. Inherited: the value at the date of death.

Massachusetts taxes long term capital gains at 5%, short term gains at 8.5% and collectibles at 12% after a 50% deduction, plus a 4% surtax on taxable income over $1,107,750 in 2026. This calculator applies the 12% collectibles rule when you choose collectibles. Source: Mass. DOR, Massachusetts tax rates (tax years 2025 and 2026), checked October 13, 2026. Federal: 2026 brackets per IRS Rev. Proc. 2025-32 (0%, 15% and 20% on long-term gain; 20% above $613,700 of taxable income married filing jointly); 25% cap on building depreciation, IRC 1(h)(1)(E); 28% cap on collectibles, IRC 1(h)(4); 3.8% net investment income tax above $250,000 married or $200,000 single, IRC 1411.

Estimated tax on this sale (2026), example in Massachusetts
$263,353

You keep $1,161,647 after selling costs and tax. The tax is 28.5% of your gain.

Your gain

  • Sale price less selling costs$1,425,000
  • Less your basis$500,000
  • Your taxable gain$925,000
  • Depreciation, taxed at up to 25%$150,000
  • Long-term gain at 0%, 15% or 20%$775,000

The tax, line by line

  • Federal income tax (incl. $7,830 AMT)$183,163
  • Net investment income tax (3.8%)$33,250
  • Massachusetts tax$46,940
  • Total tax$263,353
  • You keep$1,161,647
All in one year vs spread over 10 years: tax of $263,353 against $213,036 when the buyer pays you over 10 years. You keep $50,317 more.

Get the REAL numbers

Hans Goldstein, EA
Hans Goldstein, EAAdmitted to practice before the IRS

Talk to capital gains expert Hans Goldstein, EA.

These are estimates. Have a qualified tax professional run your real numbers in a 15-minute scope call.

Why now: the year you close and how the buyer pays you are set before closing, and they decide how much of this Massachusetts tax you keep.

Book my 15-minute call

This is an estimate. Getting it right down to the tee takes your actual tax forms (returns, K-1s, depreciation schedules), a consult and a paid analysis. The first 15-minute scope call is free.

Worked example (computed October 13, 2026)

A married couple in Massachusetts sells a rental for $1,500,000 with $75,000 of selling costs. Their adjusted basis is $500,000 after $150,000 of depreciation, and other income is $200,000. The gain is $925,000. All in one year the tax is $263,353: $183,163 federal, $33,250 net investment income tax and $46,940 Massachusetts tax, or 28.5% of the gain. Spread over 10 years on a note, the tax on the gain is $213,036, so they keep $50,317 more (interest on the note is taxed separately).

Before you read further

What is the tax bill on your Massachusetts sale going to be?

Send me the sale price and rough basis. Within one business day I'll email you the actual number and the Seller's Guide to §453. If it doesn't fit your deal, I'll tell you that plainly.

Hans Goldstein, EA
Admitted to practice before the IRS

No retainer · no obligation. Hans Goldstein, a licensed insurance agent (CA Insurance License #4273294), will contact you and may discuss insurance products, including annuities.

Go deeper: the 2026 Massachusetts capital gains guide for sellers of a business, property or farm on Big Sale Tax.

How Massachusetts treats capital gains

Massachusetts taxes long-term capital gains at 5%, but the millionaire surtax adds 4% on total income above $1,107,750 for 2026 ($1,083,150 for 2025), which a single large sale will usually trigger.

The three layers on a Massachusetts sale

Most sellers budget for one tax and get hit with four:

  1. Federal long-term capital gains at 0%, 15% or 20% depending on total taxable income for the year.
  2. Net investment income tax of 3.8% once modified AGI passes $200,000 single or $250,000 married filing jointly. Those thresholds are not indexed for inflation, so more sellers cross them every year.
  3. Depreciation recapture, if the asset was a rental or business property. The real-property portion is taxed at up to 25% as unrecaptured Section 1250 gain, and equipment is recaptured as ordinary income. See depreciation recapture.
  4. Massachusetts state tax at up to 9.0%, applied on top of everything above.

The result on a large sale is around 32.8% once the surtax applies.

Why the year matters more than the rate

Every one of those layers is triggered by income landing in a single tax year. The federal rate steps from 0% to 15% to 20% based on taxable income. The 3.8% surtax switches on at a fixed threshold. For sellers 65 and older, the new $6,000 senior deduction begins phasing out at $75,000 of modified AGI ($150,000 joint) and is fully gone by roughly $175,000 ($250,000 joint), so a single large sale wipes it out completely.

Spreading the same gain across several years keeps each year's income lower, and each layer is calculated on that lower number. That is the entire mechanism behind an installment sale under IRC §453, and it is why two sellers with identical gains can pay very different totals.

Recapture is the exception: under §453(i) it is recognized in the year of sale regardless of how payments are structured.

What this actually costs: Massachusetts numbers

Take a $500,000 long-term gain, on top of $200,000 of other income, married filing jointly.

layerratetax
Federal long-term capital gains15 to 20%$75,000 to $100,000
Net investment income tax3.8%~$19,000
Massachusettsup to 9.0%~$25,000
Total$119,000 to $144,000

That is roughly 29% of the gain before any recapture. The Massachusetts portion alone is about $25,000, money that has nothing to do with the federal rules everyone reads about.

If the asset was ever a rental or business property, add depreciation recapture: up to 25% on the real-property portion and ordinary rates on equipment.

The four layers, in the order they hit you

1. Federal capital gains. 0%, 15% or 20%, decided by your total taxable income for the year, including the gain itself. That is why one large sale lands people in the 20% bracket who normally sit far below it.

2. The 3.8% net investment income tax. Switches on above $200,000 modified AGI single, $250,000 married filing jointly. Those thresholds have never been indexed for inflation, so each year quietly captures more sellers.

3. Depreciation recapture. Only if you depreciated the asset. The real-property portion is unrecaptured Section 1250 gain at up to 25%; equipment is Section 1245 recapture at ordinary rates. The §1245 piece cannot be spread: §453(i) puts it in the year of sale. Unrecaptured §1250 gain on a building is spread with the payments.

4. Massachusetts tax. at up to 9.0%, applied on top of everything above.

Who Massachusetts can tax, and on what

  • Real property is taxed where it sits. If the property is physically in Massachusetts, Massachusetts taxes the gain whether or not you live there. Moving does not help you on in-state real estate.
  • Everything else generally follows residency on the date of sale: business interests, stock, collectibles.

If you are a non-resident selling real property in Massachusetts, expect withholding at closing and a non-resident return the following spring. Withholding is an estimate, not the final tax.

Does spreading the sale help in Massachusetts?

Yes. Massachusetts taxes the gain as ordinary income, so the amount landing in a single year drives your state bracket as well as your federal one. Spreading the gain pulls both down at once, which is why the effect compounds in high-rate states.

An installment sale under IRC §453 spreads the gain across the years you actually receive payments, so every threshold above is tested annually instead of once.

The trade-offs deserve stating plainly: you need a buyer willing to pay over time, you carry collection risk, recapture still lands in year one, and large installment balances can trigger an interest charge under §453A. It fits some sales and not others, which is exactly what a conversation before closing is for.

Hans Goldstein

Find out what your sale is really going to cost you in tax, and what you can do about it

No retainer. On a funded structure, the insurer pays a one-time commission of about 4% of the amount structured to the brokerage firm that places it (Hans’s share is about 2.4%; no trail). It is built into the annuity pricing, not a separate fee.

Find out what your tax bill actually looks like before you sell, including the parts your CPA may not raise until the return is already being prepared.

Most people find out what they owe after the sale closes, when nothing can be changed. A short conversation now tells you the number, which layers apply to your situation, and which options are still open while the sale is still in front of you.

  • What you will actually owe: federal, the 3.8% surtax, recapture and your state
  • Which of those layers you can still do something about
  • Whether spreading the sale changes the number in your case
More details (optional)
Hans Goldstein, EA
Admitted to practice before the IRS

Hans Goldstein · 213-414-2808 · Hans Goldstein: Tax & Exit Planning · This is an educational conversation, not tax advice. Bring your CPA in before you file.

Hans Goldstein, a licensed insurance agent (CA Insurance License #4273294), will contact you and may discuss insurance products, including annuities.

Selling a house in Massachusetts: what you'll actually owe

The home sale exclusion carries over. Massachusetts excludes the same gain on a principal residence that federal IRC Section 121 excludes ($250,000 single, $500,000 married filing jointly), and state law sets the 2002 version of Section 121 as a floor. Rental and investment property gets no such exclusion.

Rates on the gain. For 2026, long term capital gains are taxed at 5%. Short term gains are taxed at 8.5%. Long term gains on collectibles and pre-1996 installment sales are taxed at 12%.

The 4% surtax counts your sale. Massachusetts adds a 4% surtax on taxable income above $1,107,750 for 2026. The threshold is measured against total taxable income, and the state's own worksheet adds capital gains into that total. Any taxable gain left after the home sale exclusion, plus all gain on a rental, counts toward the threshold.

Deeds excise at closing. The deeds excise ("tax stamps") is $4.56 per $1,000 of sale price, which is $2.28 per $500 including a 14% surcharge. It is paid by the person who signs the deed, meaning the seller. In Barnstable County (Cape Cod), the combined state and county rate is $6.48 per $1,000. As of this writing, Boston's proposed local transfer fee (bill H.5464) sits in the Committee on Revenue and has not been enacted.

Nonresident withholding on $1 million sales. For closings on or after November 1, 2025, the closing agent must file Form NRW within 10 days for any Massachusetts sale with a gross price of $1,000,000 or more. Full year residents are exempt from withholding but still sign a Transferor's Certification. For a nonresident individual, withholding is 4% of the gross sales price, or 5% of estimated net gain if the seller elects the alternative calculation, plus an extra 4% on any amount over the surtax threshold. Withholding is credited against the tax on your return.

Moving away does not erase the tax. Nonresidents are taxed on gain from selling real property located in Massachusetts.

Installment sales. If Massachusetts gain on the deal is under $1 million, federal installment treatment carries over automatically. At $1 million or more, you must file a separate Massachusetts election and post security, or you are treated as electing out and the gain is taxed in the year of sale. A resident who sells on installments and later moves away stays taxable in Massachusetts on all remaining gain and interest from that sale. Very large deferrals can also trigger an interest charge on the deferred tax.

Common mistakes. Assuming the surtax only reaches wages, forgetting that short term gain is taxed at 8.5%, and assuming a buyer or move out of state changes who owes the tax.

Figures can change; confirm your situation with a CPA or at mass.gov/dor.

Worked example: a Massachusetts home sale in 2026

Assumptions: married filing jointly, a home bought for $400,000 including improvements and sold for $1,200,000, lived in for at least 2 of the last 5 years. The $800,000 gain minus the $500,000 exclusion leaves $300,000 of taxable long-term gain, on top of $150,000 of other taxable income.

LayerTax
Federal long-term capital gains (15%)$45,000
Net investment income tax (3.8%)$7,600
Massachusetts state income tax$15,000
Total on the sale$67,600

The 4% surtax does not apply here because total income stays under the 2026 threshold of $1,107,750. This is arithmetic on stated assumptions, not a projection of anyone's actual bill. For how the exclusion works when the gain runs past it, see capital gains on a home sale over the exclusion.

Frequently asked

Q: What is the Massachusetts capital gains tax rate? A: Up to 9.0%. Massachusetts taxes capital gains as ordinary income, so the rate depends on your total income for the year.

Q: Does Massachusetts have a lower rate for long-term capital gains? A: Yes. Massachusetts taxes long-term gains at 5% and short-term gains at 8.5%, and the 4% surtax applies to both above the threshold. The preferential 0/15/20% treatment is federal.

Q: How do I calculate capital gains tax in Massachusetts? A: Start with your sale price minus your adjusted cost basis, which is what you paid plus improvements minus any depreciation you took. That gain is then subject to federal capital gains rates, potentially the 3.8% net investment income tax, depreciation recapture if it was a rental, and Massachusetts tax. The calculator on this site layers all four.

Q: Can I avoid Massachusetts capital gains tax by moving before I sell? A: Residency changes are scrutinised closely and the facts matter a great deal, including where you lived at closing and whether the asset is real property physically located in the state. Real estate is generally taxed by the state where it sits regardless of where you live. Talk to a CPA before relying on this.

Selling something specific in Massachusetts?

Run your specific numbers

The calculator runs your sale through real 2026 federal + state tax brackets and shows §453 savings vs lump sum side-by-side.

Run the calculator → 213-414-2808
Get my number Book 15 min Call

Hans Goldstein is an Enrolled Agent, admitted to practice before the Internal Revenue Service. Not affiliated with or endorsed by the IRS. General education, not tax or legal advice for your situation.