DETROIT, AP – Despite a computer chip shortage that temporarily closed some of its factories, General Motors made a healthy $US2.8 billion ($A3.6 billion) net profit in the second quarter.

The earnings came even though GM plants cranked out 200,000 fewer vehicles than they did during the same quarter in 2019, the last comparable quarter before the coronavirus pandemic.

The automaker told the same story as competitors Ford, Stellantis, and others, saying that high prices and strong demand for expensive pickup trucks and luxury SUVs overcame inventory shortages.

The average GM vehicle sold for over $US48,000 from April through June, up more than $US5,200 from a year earlier, according to Edmunds.com.

Excluding one-time items, GM made $US1.97 per share, beating Wall Street estimates of $US1.82. Revenue was $US34.2 billion, which also exceeded analysts’ estimates of $US29.92 billion, according to FactSet.

The profit eclipsed the same quarter in 2020, when GM lost $US806 million as plants closed and sales slumped at the start of the coronavirus pandemic.

GM also raised its net income guidance for the full year to $US7.7 billion and $US9.2 billion, and pretax earnings of $US11.5 billion to $US13.5 billion. It had been $US10 billion to $US11 billion.

GM shares fell 3.4 per cent in trading before Wednesday’s opening bell, to $US55.90.

From April to June two years ago, GM factories produced more than 785,000 vehicles, according to the LMC Automotive consulting firm.

But LMC estimated that fell 38 per cent to 569,664 last quarter as GM ran short of semiconductors and had a herky-jerky production schedule with plants shut down on and off through the quarter.

Just Tuesday, GM announced that pickup truck plants in Flint, Michigan, Silao, Mexico, and Fort Wayne, Indiana, would be closed next week due to the chip shortage. Production is to resume on August 16.

But factories in Tennessee and Mexico that make cars and SUVs that were down since July 19 will come back on line Monday.