Beginning in 2018, the moving expense deduction is temporarily suspended, except if you are a member of the Armed Forces on active duty and, due to a military order, you move because of a permanent change of station.
An amount with code "P" will transfer to Line 4 of Form 3903 Moving Expenses for moving expenses. Form 3903 can be completed for the amount of moving expenses paid by the taxpayer. If a moving expense deduction is computed, it will be reported on Schedule 1 (Form 1040) Additional Income and Adjustments to Income, on Line 13.
To enter the Form W-2 Wage and Tax Statement Box 12 amount:
To enter moving expenses for Form 3903:
Note that any link in the information above is updated each year automatically and will take you to the most recent version of the document at the time it is accessed.