The Tax Cuts and Jobs Act changed the moving expenses deduction to apply only to active duty members of the Armed Forces who are moving due to a permanent change in station.
Qualified work-related moving expenses are limited to transportation costs for your family and belongings, packing costs, certain lodging costs, and certain storage costs. You can either deduct your actual automobile expense (gas and oil) or the standard mileage deduction of 18 cents a mile. For lodging costs, you can deduct the lodging expense for the night before you moved, the nights during the move, and the night after you arrive at your new city. For storage costs, you can deduct the first 30 days of storage expense. Other expenses such as meals, temporary living costs, and house hunting trips are not deductible.