Operating expense as a percentage of total revenue decreased 2% for both periods primarily due to a focus on cost containment and strategic purchasing. As a technology enabled logistics company, Ferrellgas continues to benefit from its nationwide footprint and focus on continuous improvement. A favorable credit position over the prior year period continues to position Ferrellgas well with suppliers. The Company’s continued emphasis on leadership development, excellence in operational expense management, and implementation of logistics fundamentals continues to increase efficiency and profitability. The Company’s inventory position management also assists in mitigating the risk from price fluctuations tied to fixed price purchases of propane. Warmer weather trends of 6.7% and 5.1% for the fourth fiscal quarter and fiscal 2022, respectively, drove the 3% decline in gallons sold for both periods. The Company’s initiatives, including efficiencies in delivery of gallons and logistics management, helped offset these negative trends as margin per gallon increased by $0.18, or 17% higher, for the fourth fiscal quarter and by $0.12, or 12% higher, for fiscal 2022.
Revenues increased $52.4 million or 16% for the fourth fiscal quarter while fiscal 2022 revenues increased $360.2 million or 21%. Cost of sales had unfavorable increases of $31.7 million or 18% for the fourth fiscal quarter and $291.8 million or 33% for fiscal 2022, primarily as a result of inflationary costs for material and other commodities, such as steel used in tanks. Despite these increases, gross profit was favorable with increases of $20.7 million and $68.4 million, or 13% and 8% higher, for the fourth fiscal quarter and fiscal 2022, respectively. Operating income per gallon was $0.04 higher for both periods compared to prior year periods.
For the fourth fiscal quarter, the Company reported a net loss attributable to Ferrellgas Partners, L.P. of $19.4 million compared to a net loss of $18.8 million in the prior year period. For fiscal 2022, the Company reported net earnings attributable to Ferrellgas Partners, L.P. of $148.0 million compared to a net loss of $68.4 million in the prior year period. Adjusted EBITDA, a non-GAAP measure, increased by $10.0 million or 42% to $34.2 million in the fourth fiscal quarter compared to $24.1 million in the prior year period. Adjusted EBITDA increased by $22.0 million or 7% to $340.1 million in fiscal 2022 compared to $318.1 million in the prior year period. Adjusted EBITDA was favorably impacted by increases of $5.0 million and $28.8 million in operating income during the fourth fiscal quarter and fiscal 2022, respectively.
As previously announced on July 8, 2022, we paid a $49.9 million distribution to holders of record of the Class B Units as of June 23, 2022. The Company also made a distribution in the first fiscal quarter of $49.9 million, which was paid on October 8, 2021. The aggregate distribution of approximately $100.0 million for fiscal 2022 was made possible by the continued strong performance of the Company.
“Our success for the fourth fiscal quarter and fiscal 2022 is due to our smart, engaged, and empowered employees executing all the important roles necessary in a company like ours,” Ferrell added. “Our people have continued to invest in the development of themselves, their teams, and in the vision of our company. Across the country our hard working, dedicated employee-owners continue to win. I could not be more proud.”
Ferrellgas joined the National Propane Gas Association (“NPGA”), a trade organization representing approximately 2,400 companies in the U.S. propane industry, in June 2022. Ferrellgas’ officers now serve on both the Executive Committee and the Board of Directors of the NPGA. As one of the nation’s leading propane retailers, the Company plans to partner with the NPGA at the National and State levels, promoting the awareness of green, accessible, affordable, and efficient propane.
Ferrellgas’ employees completed over 4,300 hours of professional development training via the Ferrellgas University Program. This program allows access to thousands of courses aimed at career and professional development. This platform created over 270 opportunities for internal career advancement in field operations and corporate support areas.