The amount you can contribute to a Health Savings Account (HSA) is limited to zero for any month you are enrolled in Medicare. Below is some general information followed by the navigation steps to enter HSA contribution amounts in the program.
Per IRS Publication 969 Health Savings Accounts and Other Tax-Favored Health Plans, on page 3:
Qualifying for an HSA
To be an eligible individual and qualify for an HSA, you must meet the following requirements.
On page 7:
Enrolled in Medicare. Beginning with the first month you are enrolled in Medicare, your contribution limit is zero. This rule applies to periods of retroactive Medicare coverage. So, if you delayed applying for Medicare and later your enrollment is backdated, any contributions to your HSA made during the period of retroactive coverage are considered excess. See Excess contributions, later.
Example. You turned age 65 in July 2020 and enrolled in Medicare. You had an HDHP with self-only coverage and are eligible for an additional contribution of $1,000. Your contribution limit is $2,275 ($4,550 × 6 ÷ 12).
Outlined as follows, according to the Internal Revenue Code (IRC), if the contributions were pre-tax (either made by employer or employee through a cafeteria plan), then a new corrected Form W-2 Wage and Tax Statement should be issued so those contributions are reverted back into wages and appropriately assessed income and FICA taxes.
IRC Section 223 Health Savings Accounts:
(f) Tax treatment of distributions
(3) Excess contributions returned before due date of return
(A) In general
If any excess contribution is contributed for a taxable year to any health savings account of an individual, paragraph (2) shall not apply to distributions from the health savings accounts of such individual (to the extent such distributions do not exceed the aggregate excess contributions to all such accounts of such individual for such year) if-
(i) such distribution is received by the individual on or before the last day prescribed by law (including extensions of time) for filing such individual's return for such taxable year, and
(ii) such distribution is accompanied by the amount of net income attributable to such excess contribution.
Any net income described in clause (ii) shall be included in the gross income of the individual for the taxable year in which it is received
To enter or review HSA contribution information into the TaxAct program:
Note that any link in the information above is updated each year automatically and will take you to the most recent version of the document at the time it is accessed.