https://www.irs.gov/instructions/i1040gi#en_US_2024_publink1...
"You may be able to deduct the amount you paid for health insurance (which includes medical, dental, and vision insurance and qualified long-term care insurance) for yourself, your spouse, and your dependents. "
"One of the following statements must be true.
You were self-employed and had a net profit for the year reported on Schedule C or F.
You were a partner with net earnings from self-employment.
You used one of the optional methods to figure your net earnings from self-employment on Schedule SE.
You received wages in 2024 from an S corporation in which you were a more-than-2% shareholder. Health insurance premiums paid or reimbursed by the S corporation are shown as wages on Form W-2.