Retirement tax questions

Amounts received for work performed while an inmate in a penal institution aren't earned income for the earned income credit.  This includes amounts received for work performed while in a work release program or while in a halfway house.

2021 Publication 596 (irs.gov) at. p. 20.