Gross domestic product grew by 0.3% month-on-month and 0.2% in the three months to May, the Office for National Statistics said. The figures were in line with economist estimates.
ONS head of national accounts Rob Kent-Smith said: "The first of our new rolling estimates of GDP shows a mixed picture of the UK economy with modest growth driven by the services sector, partly offset by falling construction and industrial output.
"Retailing, computer programming and legal services all performed strongly in the three months to May while housebuilding and manufacturing both contracted.
"Services, in particular, grew robustly in May with retailers enjoying a double boost from the warm weather and the royal wedding.
"Construction also saw a return to growth after a weak couple of months."