Deductions & credits

The HSA deduction is an ADJUSTMENT  to your AGI.   AGI  - adjustments =  MAGI -  standard or itemized deduction = taxable income     Read/review the form 1040  to see how it works.