James M. Foote
Director, President & Chief Executive Officer at CSX
Thank you, Matthew, and thank you, everyone, for joining us today.
I'll start by expressing my thanks to all of CSX's employees for their hard work during another quarter of tough operating conditions. And I am very pleased to welcome everyone from Pan Am who joined the CSX team in June. We look forward to working together to build new single-line service across our combined network.
Our second quarter results were solid as we continue to benefit from strong customer demand and firm pricing, but our ability to hire and retain new workers, which is vital to improving our service and growing the business, remains challenged. We are not alone in facing this problem. The labor market is tight, prospective recruits have many job options, and the pandemic has had a profound effect on employees' work and lifestyle preferences. Our hiring process has been steady but slow. We will not let up in our efforts to grow our engineer and conductor headcount and improve network fluidity to pre-pandemic levels.
Since the time of our last earnings call, our uncertainty and volatility have clearly increased in the financial markets and in parts of the economy. Inflationary pressures have moved higher and interest rates have risen. We're staying diligent by keeping in close touch with our customers, monitoring our order rates and constantly updating our forecasts. But what remains constant is that right now, as we have seen this entire year, there is more demand for rail service than what we are able to satisfy.
The efforts we are making now to grow our workforce and add capacity to our network are not just a status by current demand. We are investing because we see plentiful long-term opportunities for rail, driven by customer demand for more fuel-efficient, environmentally friendly transportation options and growth in domestic manufacturing. We're excited about our potential, but to realize it, we must focus on near-term execution. Our entire team is aligned in our goals, and I look forward to keeping you updated in our progress in the quarters ahead.
Turning to our presentation, let's start with Slide 4, which highlights our second quarter key financial results. We moved nearly 1.6 million carloads in the quarter and generated over $3.8 billion in revenue. Operating income was $1.7 billion, which includes a $122 million gain from our Virginia real estates sale. Recall that in the second quarter of 2021, we recognized a much larger $349 million gain from this transaction. Earnings per share increased 4% to $0.54 a share, which also includes a smaller contribution from the Virginia sale compared to a year ago. And our operating ratio was 55.4%, which includes a 320 basis point tailwind from the Virginia real estate gain, but also includes combined headwinds of roughly 450 basis points from the impact of quality carriers, higher fuel prices and Pan Am acquisition costs.
I'll now turn it over to Kevin, Jamie and Sean for details.