Moving out of Massachusetts is easy. Stopping Massachusetts taxes is a different act, and it happens on paper: Massachusetts keeps treating you as a resident until the record shows otherwise, and the burden of showing otherwise is on the party asserting the change of domicile; declarations of intent are examined closely against conduct — true, fixed and permanent home — the whole fabric of a life, on the facts.
Two tests decide it. Cross 183 days with a Massachusetts abode still available and you are taxed as a resident regardless of where you claim to live — and any part of a day counts. Or keep the day count clean but leave the life-pattern evidence pointing at Massachusetts, and domicile does the same work. Everything on this page exists to answer one question: if DOR asks, does your record hold?