Ocado has overtaken tesco as the most valuable food retailer on the uk stock market for the first time, after its share price soared during the pandemic.

The online group that former tesco chief executive, terry leahy, reportedly once described as a charity because of its cumulative losses, was worth 21.7bn against tescos 21.1bn at the end of trading on tuesday.

Both retailers share prices fell on wednesday, with ocado suffering a steeper decline of about 3 per cent, compared with tescos 0.6 per cent drop, putting their market values on a par.

Tesco is still by far the largest supermarket in the uk, dwarfing its online rival in terms of sales, profits and cash flow. its dividend payments alone last year were not far short of all the operating cash flow generated by ocado in the past decade.

Line chart of market cap (bn) showing ocado pips tesco to become the most valuable supermarket in the uk

Almost all of ocados share price gains have come in the past two years, as it began to attract more customers for its technology and efficiency. an agreement with kroger in may 2018, the largest food retailer in the us, was a notable turning point; ocados shares have risen fivefold since it was announced.

This year the shares have doubled as covid-19 prompted many more people worldwide to try online grocery shopping for the first time and retailers redoubled efforts to establish or expand ecommerce services.

Ocado is building more than 50 automated order-picking warehouses worldwide that will eventually generate royalty revenues based on capacity. the first such centre opened near paris this year, more than two years after ocado and french supermarket monoprix signed an agreement to build it.

Many investors regard ocado as a technology stock rather than a retailer.

This is certainly the view of tesco, which removed ocado from a comparator group of companies used to determine executive bonuses because its share price growth was correlated to the sales of its technology platform as opposed to its food business.

But the stock remains a constituent of the food and drug retail sub-index, where its share price performance continues to contrast sharply with that of traditional supermarkets.

Their stock received no boost from the pandemic despite the share of food eaten at home increasing after the uks pubs and restaurants were ordered to close.

At around 215p, tescos own shares are little changed from the day when dave lewis arrived as chief executive in 2014, despite a widely-praised turnround in the retailers fortunes since then. mr lewis is retiring from the company on wednesday.

Ocados performance since the start of 2018 has eclipsed even that of some us tech disrupters; its 630 per cent share price rise is greater than the 575 per cent managed by tesla or the 150 per cent of netflix.

However, the electric carmakers valuation relative to peers is more extreme its capitalisation is more than twice that of general motors, ford and fiat chrysler combined.

Before long, ocado too could be worth as much as its quoted rivals tesco, j sainsbury and wm morrison put together, because tescos market value is likely to shrink further when it distributes 5bn of cash from the sale of its asian business to its shareholders.

Index compiler ftse russell saidits indices were based on international classification benchmark rules, which placed companies according to their primary revenue driver. accounting rules mean ocado cannot book royalty revenues until the facilities that generate them are operational.