Better Buy Now: A 50/50 Split of Costco and Walmart or Dollar General and Dollar Tree?

Source The Motley Fool

After reaching multi-year lows in 2024, Dollar General (NYSE: DG) and Dollar Tree (NASDAQ: DLTR) are staging epic recoveries in 2025.

Year to date (YTD) at the time of this writing, Dollar General has surged a staggering 49.5% and Dollar Tree is up 25.2%, compared to a mere 2.1% gain in the S&P 500 (SNPINDEX: ^GSPC).

Where to invest $1,000 right now? Our analyst team just revealed what they believe are the 10 best stocks to buy right now. Learn More »

Even with those gains, both stocks have drastically underperformed the S&P 500 and larger retailers like Walmart (NYSE: WMT) and Costco Wholesale (NASDAQ: COST) over the last few years.

Here's what's driving the rebound in discount retailers, and whether investors are better off with a 50/50 split of Dollar General and Dollar Tree or Walmart and Costco.

Red shopping cart in the aisle of a store.

Image source: Getty Images.

Signs of improvement

The rebound in Dollar General and Dollar Tree provides a good lesson on the importance of expectations and valuation.

Going into this year, expectations for the discount retailers were as low as they could be. Both companies were struggling to offset inflationary pressures with price increases.

In 2021, Dollar Tree upped the base price of its products to $1.25, which cushioned profits but strained demand. It's also worth mentioning that Dollar Tree is selling Family Dollar in the second quarter of 2025 for about $1 billion -- a significant loss compared to the roughly $9 billion purchase price in 2015.

Frequent customers of Dollar General and Dollar Tree can be more sensitive to inflation and overall higher living costs than retail outlets that aren't so value-focused. As a result, both companies rely on sales volume to offset their razor-thin margins. The business model can work well when consumer spending is strong, but it can backfire when people tighten their purse strings.

As you can see in the following chart, Dollar General continued boosting sales, but margins are near a 10-year low, reflecting pricing pressure. Dollar Tree's margins are holding up, but its revenue is down significantly due to store closures and demand pressures.

DG Operating Margin (TTM) Chart

DG Operating Margin (TTM) data by YCharts.

Despite lackluster results, recent financials for both companies show signs of improvement. Dollar General grew sales and earnings in its recent quarter. Dollar Tree got a jolt from improving results and potential cost savings from the Family Dollar spin-off.

Results for Dollar General and Dollar Tree weren't great, but because expectations were so low and both stocks were so beaten down, the stage was set for an epic rebound, even if results were mediocre. However, some investors may prefer to go with higher-quality names like Walmart and Costco.

Delivering value and driving customer loyalty

Walmart and Costco have ultra-razor-thin margins, often lower than those of Dollar General and Dollar Tree. But the key difference is that Walmart and Costco deliver masterfully on their value propositions to customers.

Walmart caters to value-focused customers, just like dollar stores. Yet, it has grown sales steadily and sustained decent margins despite pullbacks in consumer spending, because it can go toe-to-toe on price with just about any brick-and-mortar retailer or e-commerce platform. Additionally, Walmart has built out other shopping options, like pickup, delivery through Walmart+, and more.

Similarly, Costco can afford to pass along value to customers on merchandise sales because it generates steady cash flow from annual membership rates. Costco makes the majority of its net income from membership fees, and profits very little from merchandise sales. Customers are incentivized to shop at Costco as much as possible to justify the membership, and Costco gives them good deals in return. Costco could charge more and boost near-term profits, but management is laser-focused on the brand's strength and long-term customer loyalty.

Priced to perfection

Walmart and Costco are undeniably better businesses than Dollar General and Dollar Tree, but their valuations have reached sky-high levels. Even on a forward price-to-earnings (P/E) ratio basis, Costco and Walmart sport more expensive valuations than all of the "Magnificent Seven" stocks (except Tesla), whereas Dollar General and Dollar Tree have forward P/E ratios under 20.

COST PE Ratio (Forward) Chart

COST PE Ratio (Forward) data by YCharts.

Over the long term, quality is more important than present-day valuation, because a company that consistently improves earnings can grow into its valuation. But if a company's stock price keeps increasing faster than its earnings rise, its valuation will remain inflated. This dynamic has been at play with Walmart and Costco, which have seen their P/E ratios balloon far above their historical averages due to their stock prices outpacing earnings growth.

What's more, both stocks no longer have serviceable dividend yields because their stock prices have outpaced their dividend growth rates. Walmart yields just 0.9% and Costco yields 0.5%. Dollar General sports a decent yield of 2.1%, and Dollar Tree has never paid a dividend. Granted, Costco occasionally pays special dividends when its cash on the balance sheet reaches a comfortable level. But even during special dividend years, like in 2024 and 2020, Costco still only yields around 2% to 3%.

The better buy now

If I had to pick, I'd go with a 50/50 split of Dollar General and Dollar Tree over Walmart and Costco simply because their valuations are so much lower, and Walmart and Costco aren't growing quickly enough to justify their high valuations. At that valuation level, investors are arguably better off buying a top growth stock like Microsoft, which is expanding margins and consistently generating strong revenue growth.

Walmart and Costco are phenomenal companies, but a great company isn't always worth investing in if its valuation is at nose-bleed levels -- especially when faster-growing alternatives are available at reasonable multiples.

Should you invest $1,000 in Dollar General right now?

Before you buy stock in Dollar General, consider this:

The Motley Fool Stock Advisor analyst team just identified what they believe are the 10 best stocks for investors to buy now… and Dollar General wasn’t one of them. The 10 stocks that made the cut could produce monster returns in the coming years.

Consider when Netflix made this list on December 17, 2004... if you invested $1,000 at the time of our recommendation, you’d have $649,102!* Or when Nvidia made this list on April 15, 2005... if you invested $1,000 at the time of our recommendation, you’d have $882,344!*

Now, it’s worth noting Stock Advisor’s total average return is 996% — a market-crushing outperformance compared to 174% for the S&P 500. Don’t miss out on the latest top 10 list, available when you join Stock Advisor.

See the 10 stocks »

*Stock Advisor returns as of June 9, 2025

John Mackey, former CEO of Whole Foods Market, an Amazon subsidiary, is a member of The Motley Fool's board of directors. Suzanne Frey, an executive at Alphabet, is a member of The Motley Fool's board of directors. Randi Zuckerberg, a former director of market development and spokeswoman for Facebook and sister to Meta Platforms CEO Mark Zuckerberg, is a member of The Motley Fool's board of directors. Daniel Foelber has positions in Nvidia. The Motley Fool has positions in and recommends Alphabet, Amazon, Apple, Costco Wholesale, Meta Platforms, Microsoft, Nvidia, Tesla, and Walmart. The Motley Fool recommends the following options: long January 2026 $395 calls on Microsoft and short January 2026 $405 calls on Microsoft. The Motley Fool has a disclosure policy.

Disclaimer: For information purposes only. Past performance is not indicative of future results.
placeholder
Bitcoin Outlook 2025As the Bitcoin market continues to mature, its 2025 outlook appears highly favourable, driven by institutional adoption and regulatory developments.
Author  TradingKey
Jan 23, Thu
As the Bitcoin market continues to mature, its 2025 outlook appears highly favourable, driven by institutional adoption and regulatory developments.
placeholder
Ethereum Price Dips May Offer Buying Opportunity — Bulls Eye ReentryEthereum price extended its increase above the $2,720 zone. ETH is now correcting gains and might revisit the $2,500 support zone. Ethereum started a fresh increase and cleared the $2,720 resistance.
Author  NewsBTC
May 15, Thu
Ethereum price extended its increase above the $2,720 zone. ETH is now correcting gains and might revisit the $2,500 support zone. Ethereum started a fresh increase and cleared the $2,720 resistance.
placeholder
Solana Price Forecast: SOL flashes bearish signals, risks double-digit crashSolana (SOL) price shows early signs of a potential breakdown as it trades lower at $165.40 on Monday. SOL is approaching a key support level that could determine its next major move. Technical indicators flash red, and bearish sentiment intensifies, with short positions hitting a monthly high.
Author  FXStreet
May 19, Mon
Solana (SOL) price shows early signs of a potential breakdown as it trades lower at $165.40 on Monday. SOL is approaching a key support level that could determine its next major move. Technical indicators flash red, and bearish sentiment intensifies, with short positions hitting a monthly high.
placeholder
Ethereum Price Faces Pressure: Can It Sustain Its Recent Rally?Ethereum price found support at $2,460 and started a fresh increase. ETH is now struggling and might drop again below the $2,500 support.
Author  NewsBTC
May 27, Tue
Ethereum price found support at $2,460 and started a fresh increase. ETH is now struggling and might drop again below the $2,500 support.
placeholder
Dogecoin Follows Bearish June Trend With over 4% Losses – Is The Worst Over?The month of June has been historically bearish for the Dogecoin price, and so far, June 2025 is following the same trend. With just a little over a week into the month, the Dogecoin price has already seen a decline of over 4%, suggesting it is sticking to the established trend. If this is the […]
Author  Bitcoinist
Jun 09, Mon
The month of June has been historically bearish for the Dogecoin price, and so far, June 2025 is following the same trend. With just a little over a week into the month, the Dogecoin price has already seen a decline of over 4%, suggesting it is sticking to the established trend. If this is the […]
goTop
quote