David P. Michels
Chief Financial Officer at Kinder Morgan
Okay. Thank you, Kim. Alright, so over the second quarter of 2023, we're declaring a dividend of $0.2825 per share which is $1.13 annualized, up 2% from last year. So, I'll start with a few highlights before getting into the quarterly performance. We ended the second quarter of 2023 with a net debt-to-adjusted EBITDA of 4.1 times ratio, leaving us with a good amount of capacity under our leverage target of around 4.5 times. We also had almost $500 million of cash at the end of the quarter and nothing drawn on our $4 billion revolving credit facility.
We also repurchased over $203 million worth of shares in the quarter, which brings our total share repurchases for the year to almost 20 million shares repurchased at an average price of $16.61, creating what we think is very good value for our shareholders. While we are forecasting to be slightly below budget for the full year, more than all of that can be explained by the lower than budgeted commodity prices. We're seeing better than budgeted performance in both our Natural Gas and in our Terminals segments.
For the quarterly performance, we generated revenue of $3.5 billion, that is down $1.65 billion from the second quarter of 2022, but our cost of sales were also down, down $1.7 billion. These were both due to the large decline in commodity prices from last year. As you will recall, we enter into offsetting purchase and sales positions in our Texas Intrastate natural gas pipeline system. Those arrangements result in an effective take or pay transportation service. And while that leaves us -- leaves our revenue and our cost of sales exposed to price fluctuations, our margin from that activity is not impacted by price. In fact netting the revenue and the offsetting cost of sales impacts, gross margin grew.
Interest expense was higher versus 2022, as expected, which is driven by the short-term interest rates impacting our floating-rate swaps. And we generated net income of $586 million, down 8% from the second quarter of last year. Adjusted earnings was $540 million, down 13% compared to the second quarter of '22. Excluding the impact from commodity prices and interest expense, we would have been favorable to last year's performance. Our share count was down $28 million or 1% this quarter versus the second quarter of last year due to our share repurchase efforts.
Onto our business segment performance, improvements in our Natural Gas and Terminals segments, which were both up, were partially offset by performance in our Products and our CO2 segments. In Natural Gas, the largest driver of the outperformance came from greater sales margin in our Texas Intrastate system and favorable rates on re-contracting at our Midcontinent Express Pipeline as well as contributions from EPNG due to a pipeline returning to service and higher value capacity sales on Stagecoach and our Tennessee Gas Pipeline. And those are partially offset by an unfavorable re-contracting impacts on our South Texas assets.
Our Product Pipeline segment was down mostly due to unfavorable pricing impacting our Transmix business and unfavorable re-contracting on our KMCC asset. Our Terminals segment was up mainly due to improved contributions from our Jones Act tanker business, expansion project contributions and rate escalations, which were all partially offset by lower truck rack volumes and some higher operating costs. Our CO2 segment was down due to our CO2, NGL and oil prices partially offset by, as Steve and Kim both mentioned, higher oil production volume.
Our adjusted EBITDA was $1.8 billion for the quarter, down 1% from last year. DCF was $1,076 million, down 9% from last year and our DCF per share was $0.48, down 8% from last year. On these non-GAAP measures, just like on our GAAP measures, excluding interest expense and commodity price headwinds, we were favorable to last year.
Moving on to the balance sheet. We ended the second quarter with $30,800 million of net debt and a net debt to adjusted EBITDA ratio of 4.1 times. As I mentioned, our net debt decreased $139 million since the beginning of the year and I'll provide a high-level reconciliation. We generated cash flow from operations of $2.883 billion. We've paid out dividends of $1.265 billion.
We've spent capital growth sustaining and contributions to our joint ventures of $1.18 billion, and we've made -- and we had stock -- share repurchases through the end of the quarter of $317 million, and that gets you pretty close to the reconciliation for year-to-date net debt change.
Back to you, Steve.