Deductions & credits

you are saying you went on medicare in July 2022. any HSA contributions for 2021 would not be limited because of this. there is nothing to amend for 2021. in 2022 you could make HSA contributions of 1/2 the maximum for the year because you were not on medicare for the first half of the year.  you'll get a 1099-SA reporting the withdrawal of the contribution. any earings on the excess should also have been withdrawn. did you do the withdrawal without telling the HSA administrator that it was an excess contribution for 2022 you were withdrawing? if you didn't and /or did not withdraw earnings, contact the administrator immediately.