For 2015, 2016, 2017 and 2018, your total contributions to all of your traditional and Roth IRAs cannot be more than:
•$5,500 ($6,500 if you’re age 50 or older), or
•your taxable compensation for the year, if your compensation was less than this dollar limit.
https://www.irs.gov/retirement-plans/pl ... ion-limits
A nonworking spouse can make a deductible IRA contribution of up to $5,500 for 2017 ($6,500 if age 50 or older as of Dec. 31, 2017) as long as the couple files a joint return, and the working spouse has earned income that equals are exceeds the sum of the nonworking spouse’s contribution plus the working spouse’s contribution.
https://www.marketwatch.com/story/how-t ... 2015-02-24
Edit to add: The earned income is what is earned, without regard to FICA or any other taxes taken out. In your example, with income of $10,000 the couple can contribute $10,000 in their IRA accounts, with no more than $6500 for either person.