MA does not alloy a deduction for contributions to IRA's.
The state of MA has very different laws than the federal regarding IRAs and is much more complicated. The Jan 2023 update of MA treatment of Roth states: Further, Massachusetts allows a deduction for the portion of IRA distributions that were previously subject to Massachusetts personal income tax. The distributions are deducted from Massachusetts gross income to the extent that the aggregate amount deducted equals the aggregate amount previously included in Massachusetts gross income.