Canadian Pacific Kansas City (TSX:CP) shares fell on Wednesday, October 28, as railway stocks dragged the industrials group lower. The slide deepened after the close, when the railway reported third-quarter profit that was essentially flat because its fuel bill jumped.

Revenue grew strongly, but adjusted earnings came in slightly below what analysts expected. Rising diesel prices ate up much of the gain from busier trains.

What happened

During regular trading, industrials were among the weakest groups on the S&P/TSX Composite, as railroad shares lost ground. That was a contrast with the broader index, which climbed 93.60 points to 36,265.09.

On the TSX, the shares closed at $125.70, down about $2.29 on the day. CPKC's New York-listed shares closed down US$1.70 at US$89.43. They then fell another US$3.19 to US$86.24 in after-hours trading once the numbers were out.

The railway released its results after markets closed, as it had scheduled, and held a conference call at 4:30 p.m. ET.

The numbers

Revenue rose to $4.22 billion, up from the same quarter last year, helped mainly by higher grain and shipping container volumes.

Net income, however, was $916 million, against $917 million a year earlier. Diluted earnings per share edged up to $1.04 from $1.01.

The problem was fuel. CPKC's fuel costs climbed to $667 million, an increase of more than half from a year ago, as diesel prices surged. Fuel is the company's largest expense after labour.

That is a big swing for a railway whose network runs across Canada, the United States and Mexico. Longer hauls mean more fuel burned, so price spikes show up quickly in the cost line, while fuel surcharges paid by customers tend to catch up with a delay.

On an adjusted basis, core diluted earnings per share were $1.28. That was three cents short of the $1.31 consensus estimate. Revenue was roughly in line with forecasts.

Why it matters

Railways are often seen as steady, defensive holdings. Investors pay up for them because they can usually pass on cost increases over time. A quarter where strong volumes failed to lift profit raises questions about how quickly that can happen when energy prices spike.

The backdrop is not helping. US crude settled at about US$102.78 a barrel on Wednesday amid concerns about Middle East supply. The Bank of Canada also raised its benchmark rate by 25 basis points, its first increase since July 2023, warning that high energy costs could feed broader inflation.

Management struck a confident tone. Chief executive Keith Creel said, "We have a railroad that is running extremely well, a differentiated network." In the release, he said the company is "in the early chapters of the CPKC story."

Chief financial officer Nadeem Velani said the company is "very well positioned to deliver on our full-year guidance."

What to watch next

The key test is the fourth quarter. Velani told analysts, "I feel very comfortable we will have a sub-60 OR in Q4," referring to the operating ratio, a closely watched measure of rail efficiency where lower is better.

The company also pointed to full-year capital spending of about $2.65 billion, lower than a year earlier, and another year of mid-single-digit volume growth. Lower spending would leave more cash for debt repayment and shareholders.

Chief marketing officer John Brooks said he is "bullish on the pricing outlook." Pricing power will matter if diesel stays expensive.

For now, the Toronto-listed shares face a tough open on Thursday after the after-hours drop in New York. Investors will be watching fuel prices, weekly rail volumes and any sign that cost recovery is catching up with higher energy bills.