 On March 27, 2017, Masterson signed a minor league contract with the Los Angeles Dodgers and he was assigned to the Triple-A Oklahoma City Dodgers to begin the season.He remained with them all year and was 11–6 with a 4.13 ERA in 25 starts.Masterson retired on December 11, 2018.