The discount retailer has been leveraging its massive store base and the investments it's made in e-commerce to supply customers with food and other goods during the pandemic. U.S. same-store sales climbed 9.3% in the fiscal second quarter, while U.S. e-commerce sales surged 97%, as more customers shipped packages to their homes and used same-day delivery and curbside pickup.
Walmart CEO Doug McMillon said the company will look to build on these gains by adding a membership service. He did not say when that would launch or provide details about its perks. He said the program will speed up deliveries for customers through curbside pickup and delivery, strengthen relationships with them and collect valuable data.
The program, called Walmart+, is expected to compete with Amazon Prime.
Shares closed down less than 1% at $134.71. They had reached a 52-week high of $137.63 on Tuesday.
On a call with investors Tuesday, Walmart executives said customers shopped online and in stores for a wide variety of items, including groceries, TVs, computers, fishing poles and bicycles. Yet they acknowledged the company struggled to keep many of those products in stock.
McMillon said managing supply chain remains a challenge, but its performance is improving.
Here's what the company did in the fiscal second quarter ended July 31:
In the second quarter, Walmart reported net income rose to $6.48 billion, or $2.27 per share, from $3.61 billion, or $1.26 per share, a year earlier.
Excluding items, the company earned $1.56 per share, higher than the $1.25 expected by analysts surveyed by Refinitiv. Among the excluded items are 10 cents a share in restructuring costs. In July, the company cut corporate positions across its business, but did not specify the number of jobs that were eliminated.
Total revenues rose 5.6% to $137.74 billion from $130.38 billion a year earlier, outpacing Wall Street's expectations of $135.48 billion.
Walmart customers shopped less frequently, but bought more when they did. The average ticket rose by 27% during the second quarter, as transactions fell by 14%.
The retailer said it spent about $1.5 billion on costs related to Covid-19. During the pandemic, Walmart has hired more than 400,000 hourly workers to fulfill online orders, clean stores and stock shelves.
Walmart's international net sales fell by 6.8% to $27.2 billion, as government-mandated closures during the pandemic limited shopping in India, Africa and Central America.
Sam's Club membership increased by more than 60% in the quarter — the highest quarterly increase in more than five years. The warehouse club's e-commerce sales grew 39% and its same-store sales rose 13.3%.
The new Sam's Club memberships bode well for the future, according to Moodys' vice president Charlie O'Shea.
"A key factor moving forward will be how many 'new' shoppers remain as 'normalcy' returns, and the explosion of Sam's Club memberships for the quarter are a favorable sign in this regard," said O'Shea.
Walmart Chief Financial Officer Brett Biggs told CNBC that the retailer could get another bounce, if there's further stimulus.
"Stimulus was definitely impactful to the consumer in the second quarter, and we're watching what's going on in Washington, and how we're going to progress with a new stimulus package," he said. "I think certainly it would be helpful for consumers."
However, he said, families may pull back or spend differently during back-to-school season as students prepare to learn remotely or go to school just a few days each week.
Compared with previous years, he said, the pandemic "has made back-to-school a little more uncertain" and "a little more choppy."
Walmart did not provide a financial outlook for the rest of the year. It withdrew guidance in the first quarter, saying that many factors could change its performance including additional government stimulus, the level of consumer confidence and the length of the pandemic.
Shares of Walmart, which have a market value of $384 billion, have gained more than 14% since the start of the year. While other retailers have been hurt by closed stores and a weakening economy during the pandemic, Walmart has benefited from selling essential items like food and having strong online operations.
—CNBC's Bertha Coombs contributed to this story.