Homer Bhullar
Vice President, Investor Relations and Finance at Valero Energy
Thanks, Lane. For the second quarter of 2024, net income attributable to Valero's stockholders was $880 million or $2.71 per share compared to $1.9 billion or $5.40 per share for the second quarter of 2023. The refining segment reported $1.2 billion of operating income for the second quarter of 2024 compared to $2.4 billion for the second quarter of 2023. Refining throughput volumes in the second quarter of 2024 averaged 3 million barrels per day. Throughput capacity utilization was 94% in the second quarter of 2024. Refining cash operating expenses were $4.45 per barrel in the second quarter of 2024.
Renewable diesel segment operating income was $112 million for the second quarter of 2024 compared to $440 million for the second quarter of 2023. Renewable diesel sales volumes averaged 3.5 million gallons per day in the second quarter of 2024, which was 908,000 gallons per day lower than the second quarter of 2023. Operating income was lower than the second quarter of 2023 due to lower sales volumes resulting from planned maintenance activities lower renewable diesel margin in the second quarter of 2024. The ethanol segment reported $105 million of operating income for the second quarter of 2024 compared to $127 million for the second quarter of 2023. Ethanol production volumes averaged 4.5 million gallons per day in the second quarter of 2024, which was 31,000 gallons per day higher than the second quarter of 2023.
For the second quarter of 2024, G&A expenses were $203 million, net interest expense was $140 million, depreciation and amortization expense was $696 million, and income tax expense was $277 million. Effective tax rate was 23%. Net cash provided by operating activities was $2.5 billion in the second quarter of 2024. Included in this amount was a $789 million favorable change in working capital and $83 million of adjusted net cash provided by operating activities associated with the other joint venture member share of DGD. Excluding these items, adjusted net cash provided by operating activities was $1.6 billion in the second quarter of 2024.
Regarding investing activities, we made $420 million of capital investments in the second quarter of 2024, of which $329 million was for sustaining the business, including cost for turnarounds, catalysts and regulatory compliance and the balance was for growing the business. Excluding capital investments attributable to other joint venture member share of DGD and other variable interest entities, capital investments attributable to Valero were $360 million in the second quarter of 2024.
Moving to financing activities. We returned $1.4 billion to our stockholders in the second quarter of 2024, of which $347 million was paid as dividends and $1 billion was for the purchase of approximately 6.6 million shares of common stock resulting in a payout ratio of 87% for the quarter. Year-to-date, we have returned $2.8 billion to our stockholders in the form of dividends and buybacks resulting in a payout ratio of 80%, well above our minimum commitment of 40% to 50%.
With respect to our balance sheet, we ended the quarter with $8.4 billion of total debt, $2.4 billion of finance lease obligations and $5.2 billion of cash and cash equivalents. The debt to capitalization ratio net of cash and cash equivalents was 16% as of June 30, 2024 and we ended the quarter well capitalized with $5.3 billion of available liquidity excluding cash.
Turning to guidance. We still expect capital investments attributable to Valero for 2024 to be approximately $2 billion, which includes expenditures for turnarounds, catalysts, regulatory compliance and joint venture investments. About $1.6 billion of that is allocated to sustaining the business and the balance to growth with approximately half of the growth capital towards our low carbon fuels businesses and half towards refining projects. For modeling our third quarter operations, we expect refining throughput volumes to fall within the following ranges: Gulf Coast at 1.77 million to 1.82 million barrels per day; Midcontinent at 405,000 to 425,000 barrels per day; West Coast at 235,000 to 255,000 barrels per day; and North Atlantic at 390,000 to 410,000 barrels per day. We expect refining cash operating expenses in the third quarter to be approximately $4.70 per barrel.
With respect to the renewable diesel segment, we expect sales volumes to be approximately 1.2 billion gallons in 2024. Operating expenses in 2024 should be $0.45 per gallon, which includes $0.18 per gallon for noncash costs such as depreciation and amortization. Our ethanol segment is expected to produce 4.6 million gallons per day in the third quarter. Operating expenses should average $0.40 per gallon, which includes $0.05 per gallon for noncash costs such as depreciation and amortization. For the third quarter, net interest expense should be about $140 million and total depreciation and amortization extent should be approximately $690millino. For 2024, we expect G&A expenses to be approximately $975 million.
That concludes our opening remarks. Before we open the call to questions, please limit each turn in the Q&A to two questions to ensure other callers have time to ask their questions.