We have some exciting news to share! The Motley Fool UK has now become The Twelfth Magpie -- an independent, UK-owned company, led by our long-serving UK management team — Mark Rogers, Chris Nials and Heather Adlington. In practical terms, it’s the same team you know, now fully focused on serving our UK readers and members.

Just as importantly, our approach remains unchanged: long-term, jargon-free, and on your side. This site is our new home, and there will be extra tweaks made across the coming few days as we settle in. So if anything looks a little off, please bear with us!

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.

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?

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 Twelfth Magpie’s Premium Investing Services. Become a member today to get instant access to our top analyst recommendations, in-depth research, investing resources, and more. Learn more, and get a free 'Best Buy Now' stock!.

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.

Should you buy Rolls Royce shares today?

Before you decide, please take a moment to review this report first. Despite ongoing uncertainties from US tariffs to global conflicts, Mark Rogers and his team believe many UK shares still trade at substantial discounts, offering savvy investors plenty of potential opportunities to learn about.

That’s why this could be an ideal time to secure this valuable research – Mark’s analysts have scoured the markets to reveal 5 of his favourite long-term ‘Buys’. Please, don’t make any big decisions before seeing them.

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

The Milky Way at night, over Porthgwarra beach in Cornwall
Investing Articles

Is the SpaceX IPO the best growth stock opportunity in a generation?

How about a mix of space exploration, satellite communications, and artificial intelligence? That's what SpaceX stock is all about.

Read more »

Red lorry on M1 motorway in motion near London
Investing Articles

No longer just a grocer: here’s how a shift in strategy could help Tesco shares hit new highs

Mark Hartley looks into the strategic data-driven transition that's helping Tesco become more than just a grocer, and could send…

Read more »

Middle-aged black male working at home desk
Investing Articles

British American Tobacco’s share price slumps 4%! How’s that happened?

British American Tobacco's share price has sunk today, making it the FTSE 100's worst performer. Is it time for dip…

Read more »

A hiker and their dog walking towards the mountain summit of High Spy from Maiden Moor at sunrise
Investing Articles

7.5% yields! Here are 2 very different dividend stocks to consider buying in June

Dividend stocks can be great investments, but they’re not all the same. Stephen Wright outlines two for passive income investors…

Read more »

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

Takeover talk! But how much is a £10,000 investment in easyJet shares 5 years ago worth today?

How can UK stocks with high dividend yields help investors earn a meaningful second income from the price of a…

Read more »

Middle aged businesswoman using laptop while working from home
Investing Articles

Up 41% in 12 months are Barclays shares still worth buying?

Andrew Mackie explores Barclays shares and argues the market may still be valuing the bank using an outdated playbook, despite…

Read more »

Little girl helping her Grandad plant tomatoes in a greenhouse in his garden.
Investing Articles

Why are ITM Power shares 69% off?

ITM Power shares are among the hottest UK stocks of 2026. So how come the share price is still down…

Read more »

Close-up of British bank notes
Investing Articles

As British American Tobacco shares dip, is this a hot buying opportunity?

Are British American Tobacco shares on their way to completing another decade of dividend growth? Let's check out this latest…

Read more »