John Garratt
Analyst · Morgan Stanley
Thank you, Todd, and good morning, everyone. Now that Todd has taken you through a few highlights of the quarter, let me take you through some of its important financial details. Unless I specifically note otherwise, all comparisons are year-over-year and all references to EPS refer to diluted earnings per share. In addition, please note that Q2 2019 adjusted results exclude a $31 million pretax impact related to significant legal expenses recorded in the quarter, as discussed in today's earnings release.
As Todd already discussed sales, I will start with gross profit, which was positively impacted in the quarter by a significant increase in sales, including the impact of COVID-19. Gross profit as a percentage of sales was 32.5% in the second quarter, an increase of 167 basis points. This increase was primarily attributable to higher initial markups on inventory purchases, a greater proportion of sales coming from nonconsumable categories and a reduction in markdowns as a percentage of sales. These factors were partially offset by increased distribution and transportation costs, which were driven by increased volume and our decision to incur employee appreciation bonus expense.
SG&A as a percentage of sales was 20.4%, a decrease of 205 basis points or 161 basis points compared to Q2 2019 adjusted SG&A. Although we incurred incremental costs related to COVID-19, these costs were more than offset by the significant increase in sales. Expenses that were lower as a percentage of sales in the quarter include retail labor, occupancy costs, utilities, employee benefits, depreciation and amortization and taxes and licenses. These items were partially offset by increased incentive compensation and charitable giving expenses. As I mentioned, we also recorded expenses of $31 million in Q2 2019, reflecting estimate the settlement of certain legal matters.
Moving down the income statement. Operating profit for the second quarter was $1 billion, an increase of 80.5% or 71.3% compared to Q2 2019 adjusted operating profit. As a percentage of sales, operating profit was 12%, an increase of 373 basis points or 329 basis points compared to Q2 2019 adjusted operating profit. Operating profit in the second quarter was positively impacted by COVID-19, primarily through higher sales. The benefit from higher sales was partially offset by approximately $38 million of incremental investments that we made in response to the pandemic, including additional measures taken to further protect our employees and customers and approximately $13 million in appreciation bonuses for eligible frontline employees. Our effective tax rate for the quarter was 21.5% and compares to 22.9% in the second quarter last year. Finally, as Todd noted earlier, EPS for the second quarter was $3.12, which represents an increase of 89% or 79% compared to Q2 2019 adjusted EPS.
Turning now to our balance sheet and cash flow, which remains strong and provide us the financial flexibility to further support our customers' employees during these challenging times while continuing to invest for the long term. Merchandise inventories were $4.4 billion at the end of the second quarter, essentially flat overall and down 6% on a per-store basis. Year-to-date through Q2, we generated significant cash flow from operations totaling $2.9 billion, an increase of $1.8 billion or 157%. This increase was primarily driven by strong operating performance combined with lower levels of inventory as our supply chain teams continue to work closely with our vendor partners to improve in-stock levels for high demand products. Total capital expenditures through the first half were $424 million and included our planned investments in new stores, remodels and relocations and spending related to our strategic initiatives.
Moving on to liquidity and capital structure. We continue to have ample liquidity as a result of the measures we took earlier in the year to further bolster our liquidity position, coupled with our extremely strong cash flow in the quarter. As a result, we finished the quarter with $3 billion of cash and cash equivalents and $1.1 billion of availability under our undrawn revolving credit facility. As one of the measures to preserve liquidity at the onset of COVID-19, we temporarily suspended share repurchases during Q1. We continue to evaluate business conditions and our liquidity, and as a result of this evaluation, we resumed share repurchases in the second quarter. During the quarter, we repurchased 3.2 million shares of our common stock for $602 million and paid a quarterly dividend of $0.36 per common share outstanding at a total cost of $90 million. With today's announcement of an incremental share repurchase authorization, we have remaining authorization of approximately $2.5 billion under the repurchase program.
Our capital allocation priorities continue to serve us well and remain unchanged. Our first priority is investing in high-return growth opportunities, including new store expansion and our strategic initiatives. We also remain committed to returning significant cash to shareholders through anticipated share repurchases and quarterly dividend payments, all while maintaining our current investment-grade credit rating and managing to a leverage ratio of approximately 3x adjusted debt to EBITDAR.
Moving to an update on our financial outlook for fiscal 2020. We continue to operate in a time of significant uncertainty regarding the severity and duration of the COVID-19 pandemic, including its impact on the economy, consumer behavior and our business. As a result, we are not providing guidance for fiscal 2020 sales or EPS at this time. With regards to share repurchases, we now expect to repurchase approximately $2.5 billion of our common stock this year, reflecting our strong liquidity position and confidence about the long-term growth opportunity for our business.
As Todd noted earlier, we are increasing our expectations for remodels and relocations in 2020. Overall, we now expect to open 1,000 new stores, remodel 1,670 stores and relocate 110 stores, representing 2,780 real estate projects in total. Finally, we are increasing our expectations for capital spending in 2020 to a range of $1 billion to $1.1 billion as we accelerate key initiatives and continue to invest in our core business to support and drive future growth.
Let me now provide some additional context as it relates to our full year outlook. Given the unusual situation, I will elaborate on our comp sales trends thus far in August. Since the end of Q2 and through August 25, we have continued to experience elevated same-store sales, which have increased by approximately 15% during this time frame. That said, we remain cautious in our sales outlook and recognize the significant uncertainty that still exists concerning the duration of the positive operating environment. In particular, we can't speculate as to whether there will be additional government stimulus, or if so, to what degree our business would benefit. Ultimately, we expect to see our comp sales trends moderate as we move through the back half, but believe we are very well positioned to deliver positive sales growth for the balance of the year, even if broader economic conditions deteriorate.
With regards to our strategic initiatives, we continue to anticipate they will improve operating margin over time, particularly as benefits to gross margin continue to scale and outpace the associated expense with both NCI and DG Fresh expected to be accretive to operating margin in 2020. However, our investment in these initiatives will pressure SG&A rates in the back half, particularly as we further accelerate their rollouts. Finally, we expect to make additional investments in the second half as a result of COVID-19, including up to $50 million in employee appreciation bonuses, which Todd mentioned, as well as investments in additional safety measures.
In closing, we are very proud of the team's execution and service, which resulted in another quarter of exceptional results. As always, we continue to be disciplined in how we manage expenses and capital with the goal of delivering consistent, strong financial performance while strategically investing for the long term. We remain confident in our business model and our ongoing financial priorities to drive profitable same-store sales growth, healthy new store returns, strong free cash flow and long-term shareholder value.
With that, I will turn the call over to Jeff.