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.
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.
No retainer · no obligation. Hans Goldstein, a licensed insurance agent (CA Insurance License #4273294), will contact you and may discuss insurance products, including annuities.
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 taxes on a Massachusetts sale
Most sellers budget for one tax and get hit with four:
- Federal long-term capital gains at 0%, 15% or 20% depending on total taxable income for the year.
- 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.
- 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.
- Massachusetts state tax at 5% on long-term gain (8.5% short-term), plus a 4% surtax on taxable income above $1,107,750 for 2026, applied on top of everything above.
The top combined rate on a large long-term gain is 32.8% once the surtax applies (20% federal, 3.8% net investment income tax, 5% plus 4% Massachusetts).
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 when one spouse is 65 or older, $350,000 when both are and the deduction is $12,000), 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.
Section 1245 recapture is the exception: under §453(i), ordinary-income recapture on equipment and other personal property is recognized in the year of sale however the payments are structured. Unrecaptured §1250 gain on a building is not recapture income. It is spread with the payments and reported first, before the rest of the gain (Treas. Reg. §1.453-12).
What this actually costs: Massachusetts numbers
Take a $500,000 long-term gain, on top of $200,000 of other income, married filing jointly.
That is 24.0% of the gain before any recapture, and $25,000 of it is Massachusetts tax.
Assumptions (2026 tax year): the $200,000 is wages, 2026 standard deduction of $32,200, all gain long-term. Federal: $445,900 of the gain at 15% and $54,100 at 20% (20% starts at $613,700 of taxable income, IRS, Rev. Proc. 2025-32). Net investment income tax: 3.8% of $450,000, the amount by which modified AGI of $700,000 exceeds $250,000 (IRC 1411).
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. 5% on long-term gain and 8.5% on short-term gain, plus the 4% surtax on taxable income above $1,107,750 for 2026, 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, Massachusetts taxes the gain because the property sits there, and you report it on a Massachusetts non-resident return. On a sale of $1,000,000 or more closing on or after November 1, 2025, the closing agent withholds from the price, as set out in the home-sale section below. The withholding is credited against the tax on your return.
Does spreading the sale help in Massachusetts?
Yes, on the federal side, and in Massachusetts when the gain is large. Long-term gain is taxed at a flat 5%, so spreading does not lower that rate. The 4% surtax is tested each year against taxable income above $1,107,750 for 2026, so spreading a large gain can keep more of it under the threshold. If the Massachusetts gain on the deal is $1 million or more, keeping installment treatment takes a separate Massachusetts election and security, covered below.
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, §1245 recapture on equipment 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.
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
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 excise 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 income before deductions.
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: 5% on long-term gains and 8.5% on short-term gains, plus a 4% surtax on total income above $1,107,750 for 2026, so up to 9% on a large long-term gain. A single large sale usually crosses the surtax threshold on its own.
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 scrutinized 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?
- Selling real estate in Massachusetts
- Selling a business in Massachusetts
- Selling a mobile home park in Massachusetts
- Selling a self-storage facility in Massachusetts
- Selling a dental practice in Massachusetts
- Selling a veterinary practice in Massachusetts
- Selling a SaaS business in Massachusetts
- Selling an insurance book of business in Massachusetts
Run your specific numbers
The calculator runs your sale through real 2027 federal and latest published state tax brackets and shows §453 savings vs lump sum side-by-side.
Run the calculator → 213-414-2808