What Massachusetts Capital Gains Tax Means for Non-Residents
Massachusetts taxes non-residents on capital gains from Massachusetts-source income, including real estate sales and business asset dispositions. The state's short-term rate of 8.5% and its 4% millionaires surtax create a combined burden that can push effective rates well above 30% for high-income sellers. Understanding the mechanics before closing is not optional at this level.
Non-Resident Status Under Massachusetts Tax Law
The Massachusetts Department of Revenue defines a non-resident as someone whose permanent home is outside the state, or who did not maintain a Massachusetts domicile for the full tax year. Residency is not simply a day-count exercise. The DOR weighs where you maintain your primary home, where your family lives, where you are registered to vote, and where your driver's license was issued.
Part-year residents occupy a distinct category. If you moved into or out of Massachusetts during the tax year, you file as a part-year resident on Form 1-NR/PY and allocate income between your resident and non-resident periods. The distinction matters because Massachusetts taxes part-year residents on worldwide income during the resident period, but only on Massachusetts-source income during the non-resident period.
The American Bar Association has noted that states including Massachusetts assert taxing jurisdiction over non-residents based on the source of income rather than the taxpayer's domicile. The location of the asset, not your home state or the state where your LLC was formed, determines whether Massachusetts has a claim.
Massachusetts Capital Gains Tax Rates for Non-Residents in 2024
Massachusetts does not follow the federal framework of preferential long-term rates. Instead, the state applies two distinct rates depending on holding period, plus a surtax for high earners.
According to the Tax Foundation's 2024 state income tax data, Massachusetts taxes most capital gains at a flat 5%, but short-term gains on assets held less than one year are taxed at 8.5%. That 70% rate premium is not a rounding error. On a $2 million short-term gain, the difference between the 8.5% and 5% rates represents $70,000 in additional Massachusetts tax on a single transaction.
Gains from collectibles are taxed at 12% regardless of holding period.
The Massachusetts millionaires surtax, passed via ballot initiative and effective January 1, 2023, adds a 4% surcharge on Massachusetts taxable income above $1 million. Capital gains count toward that threshold. A non-resident with $1.5 million in Massachusetts real estate gains faces the 5% base rate on the first $1 million and 9% on the remaining $500,000.
| Gain Type | MA Rate | Federal Rate (Top Bracket) | NIIT | Combined Marginal Rate |
|---|---|---|---|---|
| Long-term (held >1 year) | 5.0% | 20.0% | 3.8% | 28.8% |
| Long-term + MA surtax (income >$1M) | 9.0% | 20.0% | 3.8% | 32.8% |
| Short-term (held ≤1 year) | 8.5% | 37.0% | 3.8% | 49.3%* |
| Short-term + MA surtax (income >$1M) | 12.5% | 37.0% | 3.8% | 53.3%* |
| Collectibles | 12.0% | 28.0% | 3.8% | 43.8% |
*Federal deductibility of state taxes is limited to $10,000 for individuals under current law, so the effective combined rate for most high-net-worth filers will be near the figures shown.
Do Non-Residents Pay Massachusetts Capital Gains Tax on Real Estate Sales?
Yes, unambiguously. Massachusetts General Laws Chapter 62, Section 2 defines gross income for non-residents to include gains derived from or connected with Massachusetts sources, which explicitly covers gains from the sale of real property located in the state.
This applies regardless of where the seller lives, where the transaction is structured, or what entity holds the property. A California resident selling a Boston condominium owes Massachusetts capital gains tax on the gain. So does a Florida resident selling a Cape Cod vacation home. For more on how capital gains on non-primary residences are treated across different scenarios, the rules share a common thread: situs controls.
The taxable gain is the difference between the net sale proceeds and the adjusted cost basis, including capital improvements. Massachusetts conforms to the federal definition of basis in most respects, so your federal Schedule D workup is the starting point for the Massachusetts calculation.
One planning note: the federal Section 121 exclusion for primary residence gains can apply to non-residents under specific conditions. According to Massachusetts Department of Revenue Technical Information Release 16-9, a non-resident who owned and used a Massachusetts property as a primary residence for at least two of the five years preceding the sale may exclude up to $250,000 of gain ($500,000 for married couples filing jointly), consistent with the federal exclusion under IRC Section 121. If you previously lived in the property before relocating, that exclusion is worth modeling explicitly before you list.
The Massachusetts Withholding Requirement for Non-Resident Real Estate Sellers
This is the detail that catches sellers off guard. Under Massachusetts Directive 12-4, the state requires buyers or closing attorneys to withhold 5% of the gross sale price when a non-resident sells Massachusetts real property. Not 5% of the gain. Five percent of the total sale price.
On a $3 million property with a $500,000 cost basis, the withholding is $150,000 at closing, even though the actual tax on the $2.5 million gain at the 5% long-term rate would be $125,000. The excess is recovered only after filing Form 1-NR/PY.
For sellers simultaneously executing a 1031 exchange, this creates a material liquidity problem. The withheld funds are not available to meet the 45-day identification and 180-day exchange deadlines. Advance coordination with a Massachusetts tax attorney and your qualified intermediary is essential, not optional. A certificate of exemption or a reduced withholding agreement can sometimes be obtained from the DOR before closing, but the process requires lead time.
Sellers can request a certificate of exemption if the gain is below the filing threshold, or if the transaction qualifies for a full Section 121 exclusion. Neither is automatic.
How Massachusetts Taxes Non-Residents on Stocks and Investment Accounts
Gains from the sale of publicly traded stocks, bonds, mutual funds, and other intangible assets are generally not Massachusetts-source income for non-residents, even if the issuing company is headquartered in Massachusetts. The source of intangible income follows the taxpayer's domicile, not the location of the investment.
This distinction matters for portfolio management. A New York-based investor selling shares in a Boston-based company owes no Massachusetts capital gains tax on that transaction. The same investor selling a Massachusetts rental property owes Massachusetts tax on the full gain.
The line blurs with partnership interests and S corporation shares. If you hold an interest in a Massachusetts partnership or S corporation that derives income from Massachusetts sources, your distributive share of Massachusetts-source income is taxable to you as a non-resident. The entity files a composite return or issues you a Schedule K-1 allocating the Massachusetts portion, which you then report on Form 1-NR/PY. This is a common structure for real estate limited partnerships and operating businesses with Massachusetts nexus.
For context on non-resident capital gains taxation more broadly, Massachusetts's approach to intangibles is consistent with most states: physical assets are sourced to their location, financial assets follow the owner.
Can an LLC or Trust Eliminate Massachusetts Capital Gains Tax for Non-Residents?
This question comes up constantly, and the answer is more nuanced than most assume.
A single-member LLC that is disregarded for federal tax purposes is also disregarded by Massachusetts. The gain from selling Massachusetts real property held in a disregarded LLC flows directly to the non-resident owner and remains fully subject to Massachusetts capital gains tax. Massachusetts follows federal entity classification for disregarded entities, so the state of formation and the owner's state of residence are both irrelevant to the tax outcome.
A multi-member LLC taxed as a partnership does not eliminate the exposure either. Massachusetts taxes non-residents on their distributive share of Massachusetts-source income from partnerships, which includes gains from the sale of Massachusetts real property held by the partnership.
Grantor trusts present a similar result. The grantor remains the taxpayer for Massachusetts purposes, and Massachusetts-source gains flow through to the grantor regardless of the trust's state of formation.
Where entity structure does provide planning value is in estate planning and liability protection. Holding Massachusetts real estate in an LLC or family limited partnership can facilitate valuation discounts for estate tax purposes and simplify ownership transfers. But those benefits are distinct from state income tax on capital gains. Anyone who has been told that an LLC "avoids" Massachusetts capital gains tax for non-residents has received incorrect advice.
For a broader look at interstate real estate transactions and how different states handle source-based taxation, the mechanics vary but the core principle is consistent.
How Massachusetts Capital Gains Tax Interacts with Federal Tax for High Earners
For FATFIRE-level investors, Massachusetts capital gains tax is never a standalone calculation. It stacks on top of federal obligations in ways that require coordinated planning.
The IRS requires high-net-worth individuals with modified adjusted gross income above $200,000 (single) or $250,000 (married filing jointly) to pay an additional 3.8% net investment income tax on capital gains under IRC Section 1411. This applies on top of the 20% federal long-term rate and the Massachusetts rate. For a non-resident selling Massachusetts real estate with a large long-term gain, the federal and state combined marginal rate reaches approximately 28.8% before the millionaires surtax.
Add the Massachusetts 4% surtax on income above $1 million, and the combined rate on long-term gains exceeds 32%. On short-term gains, the stacking is more severe. The 37% federal ordinary income rate, plus 3.8% NIIT, plus 8.5% Massachusetts short-term rate produces a combined marginal rate approaching 49% for a high-income non-resident seller.
The Massachusetts deduction for state taxes paid is limited at the federal level by the $10,000 SALT cap for most individual filers, which means the Massachusetts tax is largely non-deductible for federal purposes. This is a material difference from the pre-2018 environment, when full SALT deductibility reduced the effective cost of state taxes for high earners.
The alternative minimum tax adds another layer. Massachusetts capital gains tax is deductible for federal AMT purposes under specific conditions, but the interaction depends on your overall AMT position and requires explicit modeling.
Standard 60/40 guidance and generic tax planning articles are not written for someone holding a concentrated $8 million Massachusetts real estate position. The federal and state interaction at this income level requires a coordinated strategy, not sequential calculations.
Estate Planning Implications: Step-Up in Basis vs. Lifetime Sale
For non-resident owners of highly appreciated Massachusetts real estate, the most consequential tax decision may not be when to sell, but whether to sell during your lifetime at all.
Under IRC Section 1014, heirs who inherit appreciated property receive a step-up in basis to the fair market value at the date of death. This eliminates the embedded capital gain entirely. A non-resident who purchased Boston commercial real estate in 1995 for $800,000 and holds it today at a $5 million fair market value carries a $4.2 million embedded gain. A lifetime sale triggers Massachusetts capital gains tax on that $4.2 million. A bequest eliminates it.
At the 5% Massachusetts long-term rate, the tax on a $4.2 million gain is $210,000 in state tax alone, before federal and NIIT. With the millionaires surtax, the Massachusetts liability on income above $1 million increases to 9%, pushing the total Massachusetts tax to approximately $238,000. The federal and NIIT stack adds several hundred thousand more.
The estate planning calculus is not purely about tax deferral. It involves liquidity needs, estate tax exposure, the heir's basis planning, and whether the property fits the long-term family wealth strategy. But the step-up benefit is large enough that it warrants explicit modeling in any estate plan involving appreciated Massachusetts real estate. This is one area where the interaction between US inheritance tax for non-residents and state capital gains tax creates genuine seven-figure planning opportunities.
For non-residents who own vacation home sale implications or secondary properties in Massachusetts, the same logic applies. The primary residence exclusion is unavailable on a vacation home, making the step-up analysis even more favorable relative to a lifetime sale.
Filing Requirements: Forms, Deadlines, and Estimated Taxes
According to the Massachusetts Department of Revenue's 2024 Form 1-NR/PY instructions, non-residents and part-year residents with Massachusetts-source income, including gains from Massachusetts real property sales, must file Form 1-NR/PY with the Massachusetts Department of Revenue.
Capital gains are reported on Massachusetts Schedule D, which separates long-term gains (taxed at 5%) from short-term gains (taxed at 8.5%). The Schedule D result flows to Form 1-NR/PY, where the Massachusetts-source portion is calculated and the tax liability is determined.
| Requirement | Detail |
|---|---|
| Filing form | Form 1-NR/PY (Nonresident/Part-Year Resident Return) |
| Capital gains schedule | Massachusetts Schedule D |
| Annual filing deadline | April 15 (same as federal) |
| Extension to file | Available; does not extend time to pay |
| Estimated tax payments | Required if expected liability exceeds $400 |
| Estimated tax due dates | April 15, June 15, September 15, January 15 |
| Non-resident withholding | 5% of gross sale price at closing (real property) |
| Late filing penalty | Up to 1% of unpaid tax per month, maximum 25% |
| Late payment penalty | 1% per month on unpaid balance |
The filing threshold for non-residents is gross Massachusetts-source income exceeding $8,000 for single filers or $16,400 for married filing jointly (2024 figures; confirm current thresholds with the DOR). Even if withholding at closing covered the full liability, a return is still required to reconcile and claim any refund.
Estimated tax payments are required if you expect to owe more than $400 in Massachusetts tax after withholding. For a non-resident who receives a K-1 from a Massachusetts partnership, or who sells property mid-year without full withholding coverage, estimated payments may be necessary to avoid underpayment penalties.
Tax Planning Strategies for Non-Residents with Massachusetts Exposure
The strategies worth considering depend heavily on the asset type, the size of the gain, and your overall income picture for the year.
Holding period management. The 3.5 percentage point spread between Massachusetts's short-term rate (8.5%) and long-term rate (5%) makes holding period timing a first-order decision. On a $2 million gain, crossing the one-year threshold saves $70,000 in Massachusetts tax alone. Combined with the federal rate differential between ordinary income and long-term capital gains, the total benefit of holding beyond one year can exceed $300,000 on a gain of that size.
1031 exchanges. For real estate investors, a properly structured 1031 like-kind exchange defers Massachusetts capital gains tax by rolling proceeds into a replacement property. Massachusetts conforms to the federal 1031 rules. The withholding requirement at closing creates a logistical challenge, as discussed above, but it does not disqualify the exchange. Advance planning with your qualified intermediary and Massachusetts counsel is essential.
Installment sales. Spreading gain recognition over multiple years via an installment sale can keep annual Massachusetts income below the $1 million surtax threshold. This is not always feasible, particularly in competitive real estate markets where buyers expect all-cash terms, but it is worth modeling when the seller has negotiating flexibility.
Tax-loss harvesting. Massachusetts-source losses can offset Massachusetts-source gains. If you hold other Massachusetts-connected assets with embedded losses, harvesting those losses in the same tax year as a large gain reduces your net Massachusetts taxable income. The losses must be from Massachusetts-source income to offset Massachusetts-source gains.
Charitable giving of appreciated assets. Donating appreciated Massachusetts real estate or partnership interests to a qualified charity avoids capital gains recognition entirely and generates a charitable deduction at fair market value. Donor-advised funds can provide flexibility on the timing of the charitable distribution while locking in the deduction in the year of contribution.
Entity structure for estate planning. While an LLC does not eliminate Massachusetts capital gains tax on a lifetime sale, it can facilitate valuation discounts and simplify transfers for estate planning purposes. A family limited partnership holding Massachusetts real estate may allow minority interest discounts that reduce estate tax exposure, even though the capital gains tax on a sale remains unchanged.
For comparison on how other states tax out-of-state gains, Massachusetts's approach is broadly consistent with high-tax states, though the short-term rate differential and the withholding-on-gross-price mechanism make it more aggressive in practice than many peers.
Illustrative Tax Calculations: Three Non-Resident Scenarios
The following table illustrates approximate Massachusetts and combined tax liability for a non-resident selling Massachusetts real estate at three price points. These are illustrative calculations assuming a married filing jointly taxpayer in the top federal bracket, with income already above $1 million before the property sale.
| Scenario | Sale Price | Cost Basis | Gain | MA Rate (w/ surtax) | MA Tax | Federal + NIIT | Combined Tax | Effective Rate |
|---|---|---|---|---|---|---|---|---|
| Long-term, below surtax threshold | $1.5M | $500K | $1.0M | 5.0% | $50,000 | $238,000 | $288,000 | 28.8% |
| Long-term, above surtax threshold | $3.0M | $500K | $2.5M | 9.0% on $1.5M above threshold | $125,000 | $595,000 | $720,000 | 28.8% blended |
| Short-term, above surtax threshold | $3.0M | $500K | $2.5M | 12.5% on $1.5M above threshold | $212,500 | $1,022,500 | $1,235,000 | 49.4% blended |
Federal and NIIT figures are approximate and assume no SALT deduction benefit above the $10,000 cap. Actual liability will vary based on deductions, other income, and filing status. These figures are for planning illustration only.
The short-term scenario is the one that warrants the most attention. A $1,235,000 combined tax bill on a $2.5 million gain leaves the seller with $1,265,000 in after-tax proceeds. Waiting twelve months to cross into long-term territory, all else equal, saves approximately $515,000 in combined federal and state tax on the same transaction.
For similar state-specific capital gains rules and how they compare to Massachusetts, the short-term rate differential is one of the more punishing features of the Massachusetts system.
Key Takeaways for Non-Resident Sellers and Investors
Massachusetts capital gains tax for non-residents is not a paperwork exercise. At the asset values common among FATFIRE investors, the rate structure, the gross-price withholding requirement, and the interaction with federal taxes create material planning variables that need to be addressed before a transaction closes, not after.
The core points:
-
Non-residents owe Massachusetts capital gains tax on gains from Massachusetts real property and business assets, regardless of their home state or entity structure. - Short-term gains are taxed at 8.5%, long-term gains at 5%, and gains above $1 million in total Massachusetts income face an additional 4% surtax. - Massachusetts withholds 5% of the gross sale price at closing for non-resident sellers, creating a liquidity event that requires advance planning for 1031 exchanges and other time-sensitive reinvestment strategies. - A step-up in basis at death eliminates embedded Massachusetts capital gains entirely, making the lifetime-sale-versus-bequest decision a seven-figure planning question for owners of highly appreciated property.
-
LLCs and disregarded entities do not eliminate Massachusetts capital gains tax exposure for non-residents. The situs of the asset controls. - The combined federal, NIIT, and Massachusetts rate on short-term gains for a top-bracket non-resident can approach 49%, making holding-period management one of the highest-return planning decisions available.
For non-residents also evaluating neighboring state tax requirements or considering primary residence exemptions on properties that were previously owner-occupied, the Massachusetts rules interact with those frameworks in ways that require coordinated analysis.
The complexity here is real, but it is manageable with the right team and enough lead time. The sellers who get hurt are the ones who treat Massachusetts as a filing formality rather than a planning variable.
References
- Massachusetts Department of Revenue -- "Massachusetts Nonresident and Part-Year Resident Income Tax Instructions (Form 1-NR/PY)" (2024)
- Massachusetts Department of Revenue -- "Massachusetts General Laws Chapter 62, Section 2 -- Gross Income Defined"
- Massachusetts Department of Revenue -- "Technical Information Release 16-9: Massachusetts Tax Implications of the Sale of a Principal Residence by a Nonresident" (2016)
- Massachusetts Department of Revenue -- "Directive 12-4: Withholding on Sales of Real Property by Nonresidents" (2012)
- Massachusetts Department of Revenue -- "Massachusetts Schedule D -- Long-Term Capital Gains and Losses" (2024)
- Internal Revenue Service -- "Publication 544: Sales and Other Dispositions of Assets" (2023)
- Internal Revenue Service -- "IRC Section 1411 -- Imposition of Tax (Net Investment Income Tax)"
- Internal Revenue Service -- "IRC Section 121 -- Exclusion of Gain from Sale of Principal Residence"
- Tax Foundation -- "State Individual Income Tax Rates and Brackets" (2024)
- American Bar Association -- "State Taxation of Nonresidents: Nexus, Sourcing, and Compliance"
