Retirement tax questions

Your contribution can't be more than your compensation from working.  This can include W-2 wages, schedule C self-employment income, or a few other things.  (For self-employment, the compensation limit is 92% of your net income, which is your net business income minus half your SE tax.)   If your spouse has compensation, you can use the spousal IRA rule to make contributions to your IRA by relying on your spouse's compensation.  But pensions, social security and IRA withdrawals do not count as compensation.