Mike Mathias
Analyst · Kimberly Greenberger with Morgan Stanley
Thanks, Michael. Good morning, everyone. During the second quarter, our teams demonstrated incredible resiliency, and we're laser-focused on the value creation levers within our control. The top line strengthened as stores successfully reopened, the digital channel accelerated and Aerie posted exceptional growth. Back in March, we instilled operational disciplines, cut inventory receipts, reduced spending and took numerous steps to preserve cash. These actions resulted in sequential improvement in operating earnings and positive cash flow in the second quarter fortifying our financial position.
For total AEO, revenue declined 15% to last year, primarily due to the impact of store closures and weaker mall traffic. In addition, we lapped a $40 million benefit from Japanese license revenue in the year-ago period. Store revenue declined 43% to last year. As a result of closures, we had the equivalent of 32% fewer selling days in the second quarter relative to last year. Reduced store hours and weak mall traffic were also headwinds, offset by a very strong conversion rate.
Open stores during the second quarter delivered roughly 85% sales productivity to last year, with May and June over 95% and July coming in lower as we lapped our historical high-volume back-to-school peak weeks. For the total company, gross profit declined 31%, reflecting a reduction in store revenue and higher delivery and distribution center costs, primarily due to higher digital transactions and an increase in cost per shipment.
In addition, recall that we lapped a gross profit benefit from the Japanese licensing revenue recognized in the year-ago period. These headwinds were partly offset by lower rent expense, reflecting negotiations with our landlords and the impact of impairments taken in recent quarters. We also benefited from an increase in markups and markdowns were well controlled.
As a percent of revenue, gross margin of 30% declined from 36.7% last year.
SG&A expense declined 12% due to cost controls implemented across the organization and lower operating expenses from store closures. Expense management remains a focus. And since the COVID crisis began, the company has executed significant operating expense reductions versus our initial plan, primarily in SG&A.
We reported an adjusted loss of $0.03 per share in the quarter. Our adjusted EBITDA was $43 million, which compared to $132 million last year. Excluded from these results is $15 million in pretax incremental COVID-19 expenses and restructuring charges.
Our cash generation was strong during the quarter with $173 million in operating cash flow. As a result, we ended the quarter with $899 million in cash and short-term investments after repaying $130 million of our outstanding borrowings under our revolving credit facility. After the quarter ended, we repaid the remaining $200 million outstanding balance. Our only debt currently outstanding is our $415 million convertible note issuance.
Preserving our liquidity and balance sheet strength remains our major priority, and many of our recent cash preservation actions will continue over the balance of 2020. For example, last quarter, we suspended our cash dividend and share repurchases were put on hold. Our current expectation is that we will not pay a dividend in the back half of the year. In addition, we meaningfully reduced our capital spending plan, lowering our guidance to a range of $100 million to $125 million, down from $210 million last year. This remains our expectation and year-to-date capital expenditures of $61 million are down from $92 million in the first half of 2019.
We also continue to manage our inventory with discipline. Our quarter end inventory declined 21%, primarily driven by reductions in American Eagle as we cut receipts due to store closures and our inventory optimization initiatives. The proactive cut to inventory receipts early in this crisis enabled us to improve total company AURs, control promotional activity and end the second quarter with inventory positioned well. We have a similar lead disciplined plan for the back half of the year, given uncertainty surrounding the COVID-19 pandemic.
In AE, we are clean on product heading into the fall season, and we are executing on more narrow and focused assortments that require less upfront inventory buys. In Aerie, we continue to invest in inventory to support our growth momentum.
Moving to stores. We are actively evaluating our fleet and plan to increase closures over the next several years and reduce the fixed costs associated with our stores. While our fleet remains important for distribution and customer engagement, the recent success we have had acquiring customers through our digital channel and fueling our online growth, gives us additional confidence in our plan to reduce our footprint.
At the end of this year, we expect to close 40 to 50 locations, which have been specifically chosen based on lease tenure, mall profile, proximity to other stores and customer engagement levels. We are very confident in our ability to transfer customers and sales from these locations.
We will rigorously monitor and analyze the results. And based on these learnings, we'll identify additional AE locations to close. We have almost 250 leases expiring this year and a similar number next year as well as an average lease term under 3.5 years. Our flexible lease portfolio will allow us to quickly exit locations that no longer make sense.
Although we are not providing forward guidance, I can share some directional comments. As you know, the American Eagle brand is the leading back-to-school shopping destination. In fact, key periods in July and August represent some of the brand's highest volume weeks of the year. As many other retailers have previously noted, the uncertainty and delayed starts to back-to-school have put pressure on the sales for the period, especially as we have lapped our peak volume weeks. This year, we expect demand to be spread over a more extended time frame post Labor Day into September. We're encouraged by recent performance as we have moved past those historical high-volume periods.
In closing, as I discussed last quarter, we are responding to the current crisis by resetting our organization to better position it for sustained success. During the second quarter, we made progress in areas like inventory and expense management and capital efficiency and additional work is underway. With over 90% of our stores currently open and the online channel continuing to perform well, barring an escalation of the pandemic, we expect to see continued sequential improvement from the first half of the year. We are in the process of updating our long-term value creation strategies to ensure we capitalize on Aerie's growth opportunities, improve AE's profit and returns and optimize our go-to-market structure and supply chain network.
With that, we can open the call up for questions.