Retirement tax questions

You can’t contribute to an IRA if you had no earned income.