DETROIT — General Motors lost $194 million in the fourth quarter largely because of the 40-day autoworkers strike that cost it four weeks of vehicle production and eroded any profit.

GM said the strike cost it $2.6 billion in earnings before interest and taxes during the three months ended Dec. 31, shaving $1.39 per share off its EPS on an adjusted basis. The impact for the year was $3.6 billion.

The company still beat Wall Street's earnings expectations for the fourth quarter, but its revenue came in slightly below expectations.

GM's stock rose 2.6% in premarket trading to just over $35 a share. For the past year, shares are down about 11.7%, including a 6.1% decline this year. The automaker is valued at about $49.1 billion.

Here's what GM reported on Wednesday compared with what Wall Street expected, according to Refinitiv consensus estimates:

Adjusted earnings: 5 cents per share vs. 1 cent per share expected.

Revenue: $30.8 billion vs. $31.04 billion expected.

The company's 2020 guidance was flat compared to 2019. It includes adjusted earnings of $5.75 to $6.25 per share and adjusted operating cash flow of $13 billion to $14.5 billion. Its adjusted automotive free cash flow is expected to range $6 billion to $7.5 billion.

GM's operating profit remained healthy. The company reported an operating profit, which is earnings before interest and taxes, of $8.4 billion for the year, including $105 million in the fourth quarter. That's down from $11.8 billion in 2018 and $8.4 billion for the fourth quarter of that year.