Deductions & credits

you double-dipped to an extent when you entered line 2.  your W-2 box 1 wages were already reduced for your HSA contributions (they flow to line 9 of the 8889 along with any employer match. both are reported on line 12W of your W-2). then you took a second deduction for the same amount on line 2. to some extent you did not hit the maximum so an additional amount was allowed as a deduction. removing line 2 removed the additional deduction increasing your taxes. 

maximum HSA deductions for 2022 including amounts contributed by employer and assuming you're not over 55 Type of High deductible health care coverage

single $3650 family $7300

 

 

 

an FYI line 2 is only for contributions made by the taxpayer directly to the HSA account and excludes amount contributed through payroll deductions.