TN9
Level 2

HSA distribution income and carryover losses

I'm over 65 and have $5700 in unused capital losses from 2022.

For 2023 if I take a non-qualified HSA distribution of $5000 will I be able to use $3000 of the carryover losses against the $5000 distribution and only have to pay income tax on $2000?