Costa started his international karting career in 2004, in the Copa Campeones Trophy for ICA Junior class karts, finishing in seventh position. He continued in the same class in 2005, with the exception of the Copa Campeones Trophy, where he competed in the ICA class. He finished seventh again in that race, adding a seventh in the Spanish ICA Junior Championship, a 27th in the Andrea Margutti Trophy, and 29th in the European Championship. However, Costa excelled himself later in the season, winning the Italian Open Masters. He held off the challenges of Charles Pic and Marcus Ericsson to win the title by nine points. He continued in karting in 2006, but moved into the ICA class full-time. He competed in five different championships over the course of the season, but only finished in the top fifteen in the Asian-Pacific Championship.
Costa made the substantial leap from karting to Formula Three, missing out many conventional lower single-seater formulae. He drove for Räikkönen Robertson Racing in the first five rounds of the series, before funds dried up. His best result came during the series' first visit to the Bucharest Ring in Romania, when he finished fourth in class, just over a second behind Hamad Al Fardan who finished third.
After his Formula Three career was cut short by lack of funds, Costa dropped down to Formula Renault to compete in the Eurocup and West European Cup for Epsilon Euskadi. Costa finished eighth in the pan-European series, despite failing to finish on the podium in any of the fourteen races. His best finish was fourth at the Nürburgring and Le Mans. He also recorded the fastest lap during the first race at Estoril. He placed three spots higher in the WEC, finishing fifth overall and runner-up in the rookie standings behind Jean-Éric Vergne. Costa continued with Epsilon into 2009, again competing in the Eurocup and West European Cup. He won the Eurocup, holding off the challenges of both Vergne and António Félix da Costa, and two weeks later, sealed the WEC title thanks to a double win at the Autódromo Internacional do Algarve. Costa won thirteen of the 28 races he competed in, winning five in the Eurocup and eight in the WEC.
After being awarded €500,000 prize money for winning the Eurocup title, Costa graduated to the Formula Renault 3.5 Series in 2010 with Epsilon Euskadi.
Costa will remain part of the World Series by Renault in 2012 as he switches to Eurocup Megane Trophy with defending champions Oregon. The Spaniard had hoped to remain on the single-seater ladder but a budget shortfall necessitated his switch to tin-tops. Costa won the title at his first attempt, scoring seven race victories along the way.