Retirement tax questions

Well you need Earned income as much as you want to contribute.  So if you want to contribute 6,000 you need 6,000 of earned income.  

IRS Pub 590-A IRA Contributions

https://www.irs.gov/pub/irs-pdf/p590a.pdf