5 leading ASX shares I'd buy and hold until 2040

These five businesses have the sort of long-term growth runways I want for a 14-year investment.

Holding an ASX share until 2040 is a big commitment.

For me, that means looking for businesses with strong competitive positions, long growth runways, and products or services that should still be relevant many years from now.

These are five leading ASX shares I would be comfortable buying with that timeframe in mind.

Senior couple looking at a laptop.

Image source: Getty Images

Pro Medicus Ltd (ASX: PME)

Pro Medicus would be one of my first choices. Its Visage imaging software is used by major healthcare organisations to manage and view increasingly large volumes of medical imaging data.

What I like is the combination of a highly scalable software model and exposure to a healthcare system that continues to generate more imaging.

The technology company has also shown it can win large customers in the United States, giving it plenty of room to keep expanding internationally.

By 2040, I think medical imaging will be even more digital, data-heavy, and AI-assisted than it is today. Pro Medicus looks well placed to grow alongside that shift.

Commonwealth Bank of Australia (ASX: CBA)

CBA brings a very different type of strength.

It is already Australia's largest bank, with leading positions across home lending, deposits, and digital banking.

That means I would not expect explosive growth over the next 14 years. The attraction here is the quality and resilience of the franchise.

Banking should remain a core part of the Australian economy for decades, and I think CBA's scale, customer base, and technology investment leave it well positioned to keep earning attractive returns.

For me, that makes it the major bank I would be most comfortable owning through multiple economic cycles.

Cochlear Ltd (ASX: COH)

Cochlear is another ASX share I think suits a very long investment horizon.

The company is a global leader in implantable hearing solutions, helping people with severe hearing loss regain access to sound.

Ageing populations and greater awareness of hearing loss could continue to increase demand over time, while ongoing innovation should broaden the range of patients who can benefit from treatment.

I also like that Cochlear operates in a specialised medical field where clinical expertise, technology, and trusted relationships with healthcare professionals are difficult to replicate.

That gives me confidence in its ability to remain relevant well beyond the next few years.

Xero Ltd (ASX: XRO)

Xero would provide the portfolio with long-term technology exposure.

Its accounting platform is deeply integrated into the day-to-day operations of small businesses, accountants, and bookkeepers across the world.

However, with a total addressable market estimated to be around 100 million businesses globally, Xero is still only scratching the surface of its market opportunity with its 4.9 million customers.

If the company can keep growing its market share, I think it could be a much larger business by 2040.

NextDC Ltd (ASX: NXT)

This ASX share rounds out my five.

NextDC develops and operates data centres, giving investors direct exposure to the enormous growth in digital infrastructure.

Cloud computing was already driving demand before the current AI boom. Artificial intelligence is adding another layer because training and running increasingly powerful models requires huge amounts of computing capacity.

That creates demand for secure facilities with access to power, connectivity, and large amounts of technical infrastructure.

NextDC still has plenty to execute as it expands its capacity, but I think the structural demand behind the business could run for many years.

Foolish takeaway

A lot can change between now and 2040, so I would not expect every year to be smooth for any of these businesses.

What gives me confidence is that each one is exposed to a long-term need I can still see as important well into the future, whether that is healthcare, banking, small-business software, or digital infrastructure.

That is the sort of foundation I would want before committing to holding an ASX share for the next 14 years.

Motley Fool contributor Grace Alvino has positions in Commonwealth Bank Of Australia. The Motley Fool Australia's parent company Motley Fool Holdings Inc. has positions in and has recommended Cochlear and Xero. The Motley Fool Australia's parent company Motley Fool Holdings Inc. has recommended Pro Medicus. The Motley Fool Australia has positions in and has recommended Xero. The Motley Fool Australia has recommended Cochlear and Pro Medicus. The Motley Fool has a disclosure policy. This article contains general investment advice only (under AFSL 400691). Authorised by Scott Phillips.

More on Investing Strategies

Person handing out $100 notes, symbolising ex-dividend date.
Dividend Investing

2 great ASX dividend share buys for passive income in October

I think these investments look incredible options for dividends.

Read more »

Male hands holding Australian dollar banknotes, symbolising dividends.
Blue Chip Shares

2 ASX blue-chip shares offering big dividend yields

These large businesses have a lot of positives.

Read more »

Coins in ascending order from left to right, with a piggy bank and clock on the sides.
Growth Shares

2 top ASX shares to buy and hold for the next decade

These two investments have incredible long-term outlooks.

Read more »

Buy now written on a red key with a shopping trolley on an Apple keyboard.
Cheap Shares

2 ASX shares highly recommended to buy: Experts

Numerous experts rate these ASX shares as buys…

Read more »

A group of businesspeople clapping.
Dividend Investing

Is this the best ASX dividend share to buy in October?

Bell Potter has good things to say about this income stock.

Read more »

A man reacts with surprise when her see a bargain price on his phone.
Cheap Shares

2 very cheap ASX shares near 52-week lows I'd buy today

These two cheap ASX shares look very good value to me.

Read more »

Man using his device in an airport.
Dividend Investing

Down 17%, is this top ASX passive income stock a strong buy at its 52-week low?

I take a closer look at the dividend outlook after the shares fell heavily.

Read more »

Happy young woman saving money in a piggy bank.
Dividend Investing

Where to invest $20,000 in ASX dividend shares for passive income

These three businesses would be high on my list if I wanted to increase my portfolio income.

Read more »