Retirement tax questions

401(k) elective deferrals are not entered on tax return.  The deferrals shown on the W-2 with a code of D can be used for the Saver's Credit (Credit for Qualified Retirement Savings Contributions) if eligible, IRS Form 8880 - https://www.irs.gov/pub/irs-pdf/f8880.pdf