Yes your spouse's W-2 earnings and your pension earnings are considered when calculating the Modified Adjusted Gross Income (MAGI). The MAGI is used to determine the phase out range.
One Big Beautiful Bill Act: Tax deductions for working Americans and seniors
What Is Modified Adjusted Gross Income (MAGI) and How Is It Calculated?
Update: To clarify, yes the $6,000 deduction does include earnings and the taxable portion of social security in calculating the MAGI to determine the phase out range.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"