Wesfarmers Ltd ( ASX: WES ) shares have been one of Australia's great long-term investments, delivering impressive returns for shareholders over several decades.

And while past performance is no guarantee of future returns, I believe this retail giant has what it takes to continue outperforming the S&P/ASX 200 index (ASX: XJO) over the coming years.

An impressive track record

One thing I really like about Wesfarmers is its ability to consistently grow shareholder wealth.

According to its June strategy presentation, the company delivered an average annual total shareholder return of 15.8% over the preceding decade.

This compares favourably to the broader market's return of 9.2% per annum.

I believe a major reason for this outperformance is the quality of its businesses, particularly Bunnings and Kmart.

In FY 2026, Bunnings generated earnings before tax of $2.46 billion, up 5.1%, while Kmart Group increased its earnings by 6% to $1.11 billion.

Pleasingly, both businesses generate impressive returns on capital, allowing Wesfarmers to invest in growth while continuing to reward shareholders with dividends.

And I think there's plenty more growth to come.

More opportunities ahead

I'm especially positive about Bunnings and its opportunities in the commercial market.

The recent integration of Blackwoods and Workwear Group gives Bunnings a stronger position with business customers, complementing its already dominant consumer business.

Although sales growth has moderated recently, I believe Bunnings can continue increasing earnings as it expands its offering and benefits from a recovery in building activity.

Kmart is another business I'm positive on. Its Anko products have been hugely successful in Australia, and Wesfarmers is now testing their appeal internationally, including in the Philippines.

If this expansion succeeds, it could open up an attractive new source of growth.

Elsewhere, there's potential for improvements at Officeworks, continued expansion of the Priceline Pharmacy network, and growth from the company's lithium operations.

Not all these opportunities will deliver as expected, but I like that Wesfarmers has several ways to grow.

What about the valuation?

At the current share price of $77.96, Wesfarmers shares certainly aren't cheap.

Consensus estimates point to earnings per share of approximately $2.69 in FY 2027 and $2.91 in FY 2028.

This means its shares trade on a PE ratio of around 29x FY 2027 earnings and 27x FY 2028 earnings.

That's a premium valuation, especially with earnings growth expected to be in the single digits.

However, I believe Wesfarmers' strong market positions, impressive capital allocation, and opportunities to expand its businesses justify paying more than you would for an average ASX company.

Overall, I think Wesfarmers shares have a good chance of rewarding patient shareholders and continuing to beat the market over the long term.

Wondering where to invest $1,000 right now?

When investing expert Scott Phillips has a stock tip, it can pay to listen. After all, the flagship Motley Fool Share Advisor newsletter he has run for over ten years has provided thousands of paying members with stock picks that have doubled, tripled or even more.*

Scott just revealed what he believes could be the 'five best ASX stocks' for investors to buy right now. We believe these stocks are trading at attractive prices and Scott thinks they could be great buys right now…

* Returns as of 6 March 2025

Here's the dividend forecast out to 2029 for Wesfarmers shares

Would Wesfarmers shares be a good addition to a winning portfolio?

If I could choose only one, would I buy Telstra or Wesfarmers shares?

Buy, hold, sell: Coles, Wesfarmers, CSL shares

I've always loved Wesfarmers shares. But after a trip to Kmart, I'm not so sure

Motley Fool contributor James Mickleboro has no position in any of the stocks mentioned. The Motley Fool Australia’s parent company Motley Fool Holdings Inc. has positions in and has recommended Wesfarmers. The Motley Fool Australia has recommended Wesfarmers. The Motley Fool has a disclosure policy . This article contains general investment advice only (under AFSL 400691). Authorised by Scott Phillips.