What are the best-performing UK shares in the last 5 years?

Despite Covid-19, plenty of UK shares have delivered triple-digit returns in the last five years. But what was behind these gains?

The content of this article was relevant at the time of publishing. Circumstances change continuously and caution should therefore be exercised when relying upon any content contained within this article.

Arrow symbol glowing amid black arrow symbols on black background.

Image source: Getty Images

You’re reading a free article with opinions that may differ from The Motley Fool’s Premium Investing Services. Become a Motley Fool member today to get instant access to our top analyst recommendations, in-depth research, investing resources, and more. Learn More.

Investing in UK shares over the long term can be highly lucrative for individuals capable of differentiating between solid and weak businesses. That’s obviously easier said than done. But had an investor succeeded in this task over the last five years, their portfolio would be up around 634%!

Achieving an average annual return of 44.6% is a pretty impressive accomplishment. And it’s one that even legendary investor Warren Buffett hasn’t pulled off.

So which were these explosive stocks? And what enabled them to deliver such impressive performance? Let’s explore.

The best UK shares 2017-2022

Looking at the FTSE All-Share index, the best stocks to buy in 2017 were:

  1. Future (+1,317%)
  2. Games Workshop Group (+659%)
  3. Kainos Group (+512%)
  4. Ocado Group (+350%)
  5. Softcat (+330%)

Needless to say, those are some pretty substantial returns. And they’re coming from UK shares in vastly different industries — from media and robotics to technology and tabletop figurines. But despite the vast differences between these businesses, there are also several similarities.

Each firm has a fairly wide economic moat built out of competitive advantages. Starting with Future, the group is a modern-day digital media conglomerate with a massive portfolio of brands, including Techradar, Country Life, and MoneyWeek, just to name a few. There are countless media companies out there, yet what made Future so successful is the power of its branding and the loyal readers that come with it.

Games Workshop has also leveraged the branding power of its intellectual properties, especially Warhammer. With a loyal following of the tabletop miniature experience, along with the video game tie-ins, management has consistently been able to bolster its revenue stream.

Kainos and Softcat are lesser-known firms in the consumer world since both are business-facing. The former is a specialist in digitalising client operations to improve efficiency. And the latter is an IT infrastructure group that helps businesses find the right tools and solutions for specific problems.

Yet the success of these UK shares derives from a similar strategy. Both companies retained and expanded an impressive customer base by simply finding ways to cut costs and accelerate processes for their respective clients.

Lastly, Ocado has been investing heavily in robotics. This technological edge over other online supermarkets enabled the group to fulfil customer orders significantly faster and lower labour costs. Its warehouse automation technology is so good that other supermarket retailers like Morrisons are now paying Ocado to provide this solution as a service.

The power of competitive advantages

By having the edge over competitors, companies and their stocks can deliver impressive returns. After all, growing revenue and profits isn’t too difficult if a firm is in a largely uncontested position.

There are, of course, other factors at play that can render these advantages obsolete. The pandemic made that pretty clear when plenty of industry leaders were brought to their knees. But while having a wide moat doesn’t guarantee triple-digit returns, it does improve the odds. That’s why it’s one of the first things on my checklist when analysing UK shares.

Zaven Boyrazian has no position in any of the shares mentioned. The Motley Fool UK has recommended Games Workshop, Kainos, Ocado Group, and Softcat. Views expressed on the companies mentioned in this article are those of the writer and therefore may differ from the official recommendations we make in our subscription services such as Share Advisor, Hidden Winners and Pro. Here at The Motley Fool we believe that considering a diverse range of insights makes us better investors.

More on Investing Articles

UK financial background: share prices and stock graph overlaid on an image of the Union Jack
Investing Articles

New to investing in the stock market? Here’s how to try to beat the Martin Lewis method!

Martin Lewis is now talking about stock market investing. Index funds are great, but going beyond them can yield amazing…

Read more »

Passive income text with pin graph chart on business table
Investing Articles

This superb passive income star now has a dividend yield of 10.4%!

This standout passive income gem now generates an annual dividend return higher than the ‘magic’ 10% figure, and consensus forecasts…

Read more »

Young woman working at modern office. Technical price graph and indicator, red and green candlestick chart and stock trading computer screen background.
Investing Articles

£5,000 invested in Tesco shares on 1 January 2025 is now worth…

Tesco shares proved a spectacular investment this year, rising 18.3% since New Year's Day. And the FTSE 100 stock isn't…

Read more »

This way, That way, The other way - pointing in different directions
Investing Articles

With 55% earnings growth forecast, here’s where Vodafone’s share price ‘should’ be trading…

Consensus forecasts point to 55% annual earnings growth to 2028. With a strategic shift ongoing, how undervalued is Vodafone’s share…

Read more »

A pastel colored growing graph with rising rocket.
Investing Articles

Here’s how I’m targeting £12,959 a year in my retirement from £20,000 in this ultra-high yielding FTSE 100 income share…

Analysts forecast this high-yield FTSE 100 income share will deliver rising dividends and capital gains, making it a powerful long-term…

Read more »

A senior man using hiking poles, on a hike on a coastal path along the coastline of Cornwall. He is looking away from the camera at the view.
Investing Articles

Is Diageo quietly turning into a top dividend share like British American Tobacco?

Smoking may be dying out but British American Tobacco remains a top dividend share. Harvey Jones wonders if ailing spirits…

Read more »

Young woman holding up three fingers
Investing Articles

Just released: our 3 top income-focused stocks to consider buying in December [PREMIUM PICKS]

Our goal here is to highlight some of our past recommendations that we think are of particular interest today, due…

Read more »

Person holding magnifying glass over important document, reading the small print
Investing Articles

Tesco’s share price: is boring brilliant?

Tesco delivers steady profits, dividends, and market share gains. So is its share price undervaluing the resilience of Britain’s biggest…

Read more »