Toyota has fallen behind Volkswagen in the race for the world's biggest automaker title, figures showed early this week, as the German giant outsold its Japanese rival in the first half of the year.

Toyota said it sold 5.02 million vehicles worldwide between January and June, falling below earlier figures from Volkswagen of 5.04 million units shifted in the same period.

United States-based General Motors was sitting in third spot with 4.86 million in sales.

Camry and Prius maker Toyota broke GM's decades-long reign as the world's top automaker in 2008 but lost the crown three years later as Japan's 2011 earthquake-tsunami disaster hammered production and disrupted the supply chains of the country's automakers.

In 2012, Toyota again overtook its Detroit rival, which sells the Chevrolet and luxury Cadillac brands, to grab the top spot globally.

But the Japanese automaker is expecting sales this year to slip to 10.15 million from a record 10.23 million vehicles in 2014, owing to a shaky outlook for Japan and as it beefs up its focus on quality after a string of safety scandals.

Volkswagen, which is based in the northern German city of Wolfsburg and has a stable of 12 brands, is now in pole position as it rides momentum in emerging economies that will likely see it take the top spot in annual global auto sales for the first time in 2015.

In April, Toyota announced it was ending a freeze on building new factories by unveiling plans for a one-billion dollar plant in rising industry power Mexico and another production line in China.

The carmaker began operating a new Thai plant in 2013, but since then it had halted investment as the global car market struggled with oversupply and weak demand.

Toyota, among other major automakers, has also been struggling to recover a reputation for safety after the recall of millions of cars around the world for various problems, including an exploding air bag crisis at supplier Takata.

Despite the good fortunes, VW has lowered its global sales forecast for the year, citing weaker demand from China and other key markets. The group said turnover would stagnate and revised an outlook for a "moderate" increase in customer deliveries.

"We are keeping a very close watch on global macroeconomic trends, especially where there are uncertainties such as in the Chinese, Brazilian and Russian markets," chief executive Martin Winterkorn said.

Second-quarter sales dipped 2.7 percent to 2.55 million units, with foreign turnover seeing an even steeper decline of 3.8 percent. During the first half, sales slipped 0.5 percent to 5.04 million units.

Between April and June, net profit fell 16 percent to 2.67 billion euros ($2.95 billion), slightly below the 2.9 billion euros forecast by financial services company FactSet.

The company underwent a bitter power struggle earlier this year that led to supervisory board chief and patriarch Ferdinand Piech stepping down in April.