You need to file a MA non-resident tax return, and be taxed on your wages that you earn in MA. The tax rate is 5.3% for MA. NH doesn't tax you on wages, so you can't get a credit for the income taxes you'll pay to MA. Also, property taxes are sky-high in NH, which I'm sure you know already.