Robert Madore
Analyst · JPMorgan
Thanks, Jen, and good morning, everyone. We're proud of the significant progress we've made across our business in the third quarter. Comparable sales growth strengthened, with both AE and Aerie posting positive comps. Our digital business was strong with sales penetration increasing to 25% in the third quarter, up from 21% last year. We also saw better trends in brick-and-mortar stores.
Margins demonstrated sequential improvement, and year-over-year margin erosion narrowed significantly. SG&A expense declined compared to last year, resulting in expense leverage. And we're pleased to see positive trends continue into the fourth quarter, with Black Friday and Cyber Monday exceeding our expectations.
Now looking more closely at the details of the third quarter. Total revenue increased 2% to a third quarter record of $960 million from $941 million last year. Comparable sales were up 3% for the period, following a 2% increase last year. Additional sales information can be found on Page 9 of the investor presentation.
By brand, third quarter American Eagle comps were up 1% and Aerie comps increased 19%. The digital business increased in the high teens, partially offset by a slight decline in store comp sales, demonstrating a recovery from recent trends.
Regarding our quality-of-sale metrics, traffic and transactions increased and store traffic outperformed the mall for both brands. We also saw a low single-digit increase in the average unit retail price due to favorable product mix. The average dollar sale declined slightly due to lower units per transaction.
Gross profit decreased 1% to $375 million from $378 million last year. The gross margin rate declined 120 basis points to 39% of revenue. However, as I've mentioned, we saw sequential improvement from declines of 270 basis points in the first quarter and 240 basis point in the second quarter. The reduction in margin rate was due to higher promotions and increased shipping costs associated with the strong digital business.
SG&A expense declined $3 million or 1% to $217 million compared to $220 million last year. Positive sales, combined with lower expenses, drove 80 basis points of leverage to a rate of 22.6% of revenue. Lower incentives and expense discipline were partially offset by higher wages.
Depreciation and amortization increased $4 million to $43 million and deleveraged 30 basis points to 4.5% as a rate of revenue.
In the third quarter, we incurred restructuring charges of $4 million or $0.01 per share. Excluding this restructuring charge, adjusted operating income of $115 million compared to $118 million last year. Adjusted earnings per share of $0.37, which includes the discrete charge of $0.05 per share resulting from a reserve against a receivable. Last year, we reported EPS of $0.41.
Now regarding inventory, which can be found on Page 10 of the investor presentation. We ended the quarter with inventory up 8% to $534 million. The increase reflects investments in bottoms, women's tops and Aerie apparel to support strong sales and a change in our prior season's inventory liquidation strategy.
We made a change from exclusively using external vendors. We converted 5 AE outlet locations to clearance stores during the quarter, where we are seeing positive results. We expect fourth quarter ending inventory to be up approximately 10%, reflecting strategic investments in uptrending categories as well as the change in our inventory liquidation process and strategy.
Capital expenditures totaled $48 million in the third quarter, and we continue to expect CapEx to be in the range of $160 million to $170 million for the year. Roughly half of the spend relates to store projects and the balance to support digital business, omnichannel tools and general corporate projects.
We ended the quarter with a total cash balance of $258 million compared to $292 million last year. Over the past 12 months, we returned $88 million in share buybacks and $89 million in dividends and invested $189 million in capital expenditures.
Details of our store openings and closings are on Page 13 through 15 of the investor presentation. We have a highly profitable store fleet, and as I've noted previously, over half of the stores have lease terms under 3 years. Although the digital business is growing rapidly, our stores remain a very important customer touch point. We are looking to sharpen our market presence and refine the store base. This will include closures as well as remodels, relocations and select store openings.
We are continually reviewing the fleet with a focus on market-based views of our customer data analytics. We look at customer acquisition and how our existing customers shop across channels, locations, brands and categories. We do this so that we're making decisions to optimize our business as a whole.
As the team discussed, we are also testing new store designs to improve the overall customer experience. Strengthening customer data analytics is a major priority. With a database of over 17 million active customers, we have an opportunity to leverage this asset to a much larger degree. Recently, we have hired a experienced data analytics leader to help us gain greater customer insights, understand shopping patterns, drive personalization and a higher level of customer engagement and knowledge.
Now looking ahead to the fourth quarter. We expect fourth quarter earnings per share of $0.42 to $0.44, which is based on an anticipated comp store sales increase in the mid-single digits. The guidance reflects continued sequential improvement to margins and higher net income. This compares to adjusted earnings per share of $0.39 last year and excludes any potential impairment or restructuring charges.
Just to reiterate. We're pleased with the continued progress and sequential improvements across our business, including sales and profit margins. And we're focused on delivering a successful holiday season and finishing the year very strong.
Thank you. And now we will take questions.