According to the Massachusetts instructions:
A Resident of Massachusetts is an individual who is domiciled in Massachusetts or maintains a permanent place of abode in MA and spends more than 183 days in the state.
A Nonresident of Massachusetts is an individual who was not domiciled in Massachusetts but earned MA income.
A Part-Year Resident is an individual that moved into or out of Massachusetts during the taxable year.
If you were a Nonresident part of the year and a Part- Year resident the other part of the year, you need to file both a nonresident return and a part-year return.
If one spouse is a resident and the other is not and a joint federal return was filed, you can file married filing separate returns. To file separate returns within your account, you can file the federal return and wait for the return to be accepted. Then, change the filing status for the primary taxpayer and file a separate return for the first spouse. The second spouse will need to create a new account and file the separate state return in that account (if required to file).
For more information regarding your residency status, please see the full Form 1 instructions.
For more information, see: