However, the Roth income limit is based on your AGI for 2017, not your gross salary. It is my understanding that tax deferred contributions to 401ks are are not considered to be part of AGI.