To claim moving expense deductions, you record your expenses on IRS Form 3903 and enter the result on line 26 of the 2017 Form 1040. This deduction is available even if you also claim the standard deduction or itemize your deductions.
Military members claiming moving expense deductions also use Form 3903. For tax year 2018 and beyond, you enter the deduction on the Form 1040 Schedule 1. For 2020 the Schedule 1 is here.