Get your taxes done using TurboTax

you did not understand what I previously posted. the capital loss carryover and current year capital gain are netted, they have no effect on an HSA contribution.  you can contribute to your HSA up to the maximum I've previously posted.   you can contribute to your HSA $1 or $6000 and your return will still show a net capital gain of $4000 on line 7. the HSA deduction will show up on form 1040 line 10a and on schedule 1 on line 12