Hofmann scored three goals in six friendly appearances for the U20 team during the 2012–13 season and made his U21 debut in a 4–0 2015 European U21 Championship qualifying win over the Republic of Ireland on 9 September 2013. He showed excellent form during the qualifying period, scoring seven goals in 10 games, but he failed to score in his two finals appearances before Germany were humiliated 5–0 by Portugal in the semi-finals. He scored 9 goals in 17 matches at U21 level.