IRAs are individual accounts. You cannot contribute for your wife, your wife may contribute for herself based on your earned income. As such, you should use her perspective for her IRA (she is eligible for a deduction), and your perspective for your IRA (you are not eligible for a deduction). So your joint return can have a deduction up to $5500 for her deductible IRA contribution.