W2 Box 12 Code W and Form 8889 how to report my HSA contributions.

I have a question. I contribute to a HSA account through my employer in 2022.  Each week there a payroll deduction for my HSA contributions to my account.  My employer also contributes a small amount as well.  On my W2, box 12 shows code W and the amount is $1500.   I went through my pay stubs and my HSA contributions for the year was $1000 and my employers HSA contribution was $500.00.  I also received Form 5498-SA and line 2 has the total amount of $1500.00 for total amount contributed in 2022.

 

My question is would I put my $1000 on line 2 on Form 8889 and on line 9 for employers portion would be $500.00 so I can get the possible HSA tax deduction on my tax return.

 

I also had a HSA distribution in 2022 for $1000 but that all went medical, so I know that amount is not taxable income.

 

thank you in advance for your assistance.