Stephen Bramlage
Analyst · Stephens
Thank you, Darren, and good morning. Our performance was excellent in the second quarter as we saw great results inside and with fuel, while we continue to operate the stores efficiently. This was despite a challenging comparison from the second quarter last year and that's a testament to the resiliency of our business model and our team's execution.
Total revenue for the quarter was $4.1 billion, an increase of $86 million or 2% from the prior year due primarily to higher inside revenue. Total inside sales for the quarter were $1.3 billion, and that's an increase of $78 million or 6% from prior year.
For the quarter, Grocery and General Merchandise sales increased by $47 million to $964 million, an increase of 5.2%. Prepared Food and Dispensed Beverage sales rose by $31 million to $382 million, an increase of 8.9%. Results were also favorably impacted by operating more stores on a year-over-year basis. Retail fuel sales were up $11 million in the second quarter, as a 4% increase in gallons sold to $730 million was partially offset by a 3.5% decrease in the average retail price per gallon. That average retail price of fuel during the period was $3.62 a gallon, compared to $3.75 a year ago.
We define gross profit as revenue less cost of goods sold, but excluding depreciation and amortization. Casey's had gross profit of $886 million in the second quarter, an increase of $75 million or 9.2% from the prior year. This was driven by both higher inside gross profit of $48.8 million or 9.7% and higher fuel gross profit of $24.4 million or 8.6%.
Inside gross profit margin was 41.1% and that's up 130 basis points from a year ago. The Grocery and General Merchandise margin was 34%, an increase of 70 basis points from prior year. The increase was due primarily to favorable vendor-funded promotions and volume discounts, a lower LIFO charge [debt] in the prior year as well as private label increasing its share of our mix.
Prepared Food and Dispensed Beverage margin was 59%, up 230 basis points from prior year. The category margin benefited from lower commodity costs, specifically cheese which was $2.12 a pound for the quarter compared to $2.24 a pound last year, a decrease of about 5%. Margin also benefited from a lower LIFO charge in the prior year as generally input costs softened.
Fuel margin for the quarter was $0.423 per gallon up $0.18 per gallon from the prior year. Fuel gross profit benefited by $8.4 million from the sale of RINs, down $2.7 million from the same quarter in the prior year. Total operating expenses were up 7.5% or $40.5 million in the second quarter. Over 3% of the total OpEx increase is due to unit growth as we operated 129 more stores year-over-year.
Same-store employee expense accounted for another 1% of the increase, as increases in wage rates were partially offset by the reduction in same-store hours, Darren previously mentioned. The company also incurred higher variable incentive compensation, repair, maintenance and insurance expense that composed 2% of the total increase.
Depreciation in the quarter was $85.6 million, and that's up $7.5 million versus prior year, primarily due to operating more stores. Net interest expense was $12.3 million in the quarter, down $1.2 million versus the prior year, aided by rising interest rates on our cash balances. The effective tax rate for the quarter was 23.6%, consistent with the prior year.
Net income was up versus prior year to $158.8 million, an increase of 15.4% and EBITDA for the quarter was $305.9 million, compared to $271.7 million a year ago, an increase of 12.6%.
Our balance sheet remains in excellent condition, and we have ample financial flexibility on October 31. We had total available liquidity of $1.3 billion. Furthermore, we have no significant maturities coming due until fiscal 2026. Our leverage ratio, calculated in accordance with our senior notes is now 1.6x. For the quarter, net cash generated by operating activities of $253 million was purchases of property and equipment of $107 million resulted in the company generating $146 million in free cash flow. This compares to generating $115 million in the prior year.
At the December meeting, the Board of Directors voted to maintain the quarterly dividend at $0.43 per share. During the quarter, we also repurchased approximately $30 million of stock and have $340 million remaining on our existing share repurchase authorization. Investing in EBITDA and ROIC accretive growth investments remains our primary capital allocation priority, but as we mentioned at our Investor Day, our balance sheet affords us the opportunity to be more opportunistic than in the recent past with regards to share repurchase.
Our M&A pipeline remains strong, and our integration capabilities continue to expand. The transaction with EG Group mentioned last quarter has closed, and that transaction as well as the other announced deals are being funded with cash on hand. The majority of these payments either occurred in the second quarter or they will occur in the third quarter. And this includes the transaction of 22 stores in our 17th state of Texas, which closed on November 16.
As a result of the strong financial performance and unit growth year-to-date, we are updating our fiscal 2024 outlook as follows: fiscal 2024 EBITDA growth is expected to be in line with the long-term strategic plans goal of 8% to 10%. The company also expects to repurchase at least $100 million in shares throughout the fiscal year. Same-store inside sales are now expected to increase 3.5% to 5%. Net interest expense is expected to be approximately $53 million, and the tax rate is now expected to be approximately 23% to 25% for the year.
As discussed in the first quarter, the company expects to add at least 150 stores in fiscal 2024. That's more than the originally planned 110. As a result of this, total operating expenses are now expected to increase approximately 6% to 8%, though same-store operating expenses, excluding credit card fees are expected to only increase approximately 3% for the year.
Depreciation and amortization are now expected to be approximately $350 million for the year. The company is not updating its outlook for the following metrics: we expect inside margin to be approximately 40% to 41%. The company expects same-store fuel gallons sold to be between negative 1% and positive 1%. And the purchase of property and equipment is expected to be $500 million to $550 million.
Our results for the current quarter are as follows: First, November inside same-store sales are consistent with the updated range of the annual outlook. Fuel gallons are near the midpoint of the annual outlook and CPG is nearly $0.40 per gallon. Current cheese costs are modestly favorable versus the prior year. And now on a final note, as a reminder, in the third quarter of fiscal '23, we had a onetime operating expense benefit of approximately $15 million due to the favorable resolution of a legal matter. This benefit will not recur. Thus, total third quarter operating expenses will be up near the low teens in percentage terms, and that's primarily due to lapping the onetime benefit as well as store growth and several million dollars of onetime integration costs. If we were not lapping this onetime benefit from the prior year, total OpEx would be up approximately 8% to 9% in third quarter.
I'd now like to turn the call back over to Darren.