Barba began his motorsport career in karting in 2000, which he held until 2003. In 2002 he also made his debut in Formula racing in the Spanish Formula Renault Junior, in which he was active until 2004. After he had occupied the 12th place in the overall standings in 2003, he won the 2004 runner-up title behind Michael Herck. In addition, he made his debut in the Spanish Formula 3 Championship, where he took part in three races. Barba began in 2005 in the Spanish Formula 3 and finished second in this category with two wins tenth overall and third place in the B-Class. In 2006, he started again in the Spanish Formula 3 with a win, he finished the season in seventh place in the championship. In addition, Barba celebrated this year his debut in Formula Renault 3.5, in which he took part in six races. 2007 Barba denied his third full season in the Spanish Formula 3 Championship and this time he managed the runner-up title behind his teammate and compatriot Máximo Cortés to win. Here, he lacked only four points to win the title.
2008 Barba joined Draco Racing in the Formula Renault 3.5 and was team mate of Belgian Bertrand Baguette. At the end of the season Barba finished 14th overall and was significantly beaten by his teammate, who finished seventh with a win. 2009 remained the Spaniards along with baguette with Draco Racing. While Baguette won the championship title, Barba reached the ninth overall with two second place as best result. This baguette had scored more than three times as many points as Barba.
2010 moved Barba in the European F3 Open, the successor series of the Spanish Formula 3. Cedars For motorsport starting, he won 6 of 16 races and decided the title against Callum MacLeod with 154 to 112 points for themselves He also took part in a race weekend of the GP3 Series as the representative for the injured Simon Trummer for Jenzer Motorsport. In 2011, Barba for Campos Racing at the Auto GP part. After the first three events, Barba decided to interrupt his motorsport career and ended the season prematurely. At the end of the season, he finished 15th overall.
- 2000-2003: Karting
- 2002: Spanish Formula Renault Junior
- 2003: Spanish Formula Renault Junior ( 12th place)
- 2004: Spanish Formula Renault Junior ( 2nd place)
- 2005: Spanish Formula 3 ( 10th place )
- 2006: Spanish Formula 3 ( 7th place)
- 2006: Formula Renault 3.5
- 2007: Spanish Formula 3 (2nd place)
- 2008: Formula Renault 3.5 ( 14th)
- 2009: Formula Renault 3.5 (9th )
- 2010: European F3 Open ( Master )
- 2010: GP3 Series ( No. 35 )
- 2011: Auto GP ( 15th place)