Ghirelli began his motorsport career in 2005 in karting, where he was active until 2009. Among other things, he won the 2009 Italian Open Masters KF2 Championship. At the age of 15, he moved in 2010 to Formula racing and launched directly at Formula 3 level. He made his debut at the F3 Brazil Open, he finished fifth. Then he started for Atech CRS GP in the first season of the newly formed GP3 Series. He had no points and finished in 34th place overall. With 16 years Ghirelli is the youngest racer in the GP3 Series. In addition Ghirelli participated in five race weekends of the Italian Formula 3 Championship for the team Ghinzani. He finished the season without any points from here on the 23th Place. In addition, he completed two races in the Italian Formula Renault.
2011 Ghirelli denied his second season in the GP3 Series for Jenzer Motorsport. There again he failed to score, he left Jenzer Motorsport two events remaining. For the last race weekend, he returned for the Addax team in the GP3 series is back. Ghirelli remained again without points and finished the season in 25th place overall. He was also featured on this season for One racing in the Formula Renault 2.0 Eurocup Formula Renault and in the alpine. As he closed the Eurocup with a point on the 23rd place, he was awarded second place as best result of ninth Formula Renault Alpine. In addition, he completed a guest stint for One racing in the Formula Renault Northern European.
2012 Ghirelli went for Comtec Racing in the Formula Renault 3.5 at the start. While his team-mate Nick Yelloly reached the fifth place with victories, Ghirelli was with an eighth place as best result 24th in the driver standings. In addition Ghirelli took in 2012 at a meeting of the FIA Formula 2 Championship in part. He finished sixth in both races. 2013 moved to Ghirelli Super Nova International in the Auto GP. At the Hungaroring, he won the sprint race at Donington Park, the main race. In 11 of the 16 races he stood on the podium. With 222 to 213 points he won against Kimiya Satō and won the championship title of the Auto GP. In addition, he went into the GP2 Series this season for Venezuela GP Lazarus. He played five events and was 27th in the overall standings.
- 2005-2009: Karting
- 2010: GP3 Series ( No. 34 )
- 2010: Italian Formula 3 ( No. 23 )
- 2010: Italian Formula Renault ( 20th place )
- 2011: GP3 Series ( No. 25 )
- 2011: Formula Renault 2.0 Eurocup ( place 23 )
- 2011: Formula Renault Alpine ( 9th place)
- 2012: Formula Renault 3.5 (ranked 24)
- 2012: Formula 2 ( 14th)
- 2013: Auto GP (Master)
- 2013: GP2 Series ( No. 27 )