The rule
Like New York, Massachusetts has two ways to be a resident. You are a resident if Massachusetts is your domicile, your permanent home. And you are a statutory resident if you are domiciled elsewhere but maintain a permanent place of abode in Massachusetts and spend more than 183 days of the tax year in the state (Mass. Gen. Laws ch. 62, § 1(f); 830 CMR 62.5A.1). A statutory resident is taxed on all income, like any resident.
Massachusetts uses the words permanent place of habitation. A Cape Cod house kept after a move to Florida, or an apartment in Boston used while commuting from New Hampshire, can qualify. If you keep one, the 183-day count decides.
Counting days
StateDays counts a day in Massachusetts for any part of a day spent there, the cautious reading that matches New York’s rule, so a day you drive in and out counts. Ask your adviser how Massachusetts treats partial days and travel days in your situation. The line in StateDays is 183 days, with a safety buffer you choose (18 days by default) so a missed record or a late flight does not push you over.
Documenting your days
If Massachusetts questions your residency, you need to show where you were on each day, and the records you have are what counts: card statements, phone records, travel documents, a calendar. A log recorded at the time by your phone, with every day’s first and last location, is far stronger than a calendar rebuilt later. StateDays keeps that log on your phone (MA and every other state you visit) and builds the yearly evidence pack for your CPA.
Source: Mass. Gen. Laws ch. 62, § 1(f); 830 CMR 62.5A.1. More from the state: www.mass.gov/info-details/learn-about-residency-status. General information, not tax advice.