On 16 November 2017 Hartley was confirmed by Toro Rosso as a full-time driver alongside Pierre Gasly for the season. Hartley scored points at the Azerbaijan Grand Prix with tenth, German Grand Prix with tenth again and the United States Grand Prix with his highest finish in ninth. He finished the season in nineteenth place, four places and 25 points behind his teammate, albeit with two more non-finishes.