Canada’s economy grew at the fastest pace in a year, further evidence of a solid expansion even as trade tensions with the U.S. remain a threat.

Gross domestic product increased by 0.5 per cent in May, Statistics Canada said Tuesday from Ottawa, exceeding expectations for a 0.3 per cent gain in a Bloomberg survey of economists. Oil was a key driver, with non-conventional crude output jumping 5.3 per cent as more production came back online after shutdowns. Nineteen of 20 industries showed gains, including retail sales rising 2 per cent on the heels of weakness in April linked to cold weather.

"Essentially, Canadians came out of hibernation in May, and the economy benefitted big-time," Douglas Porter, BMO Financial chief economist, wrote in a note to clients. "We look for much milder activity in June and the second half of 2018, with tariffs kicking in and the Syncrude outage temporarily biting into growth."

The world’s 10th largest economy is now on track for annualized growth of around 3 per cent this quarter, keeping the pressure on the Bank of Canada to consider raising interest rates again to keep inflation in check. The Canadian dollar strengthened as much as 0.4 per cent after the report and was little changed at $1.3036 per U.S. dollar at 9:34 a.m. in Toronto.

“Barring bad news on the NAFTA or auto tariff front, the Bank of Canada will be raising rates in October,” Avery Shenfeld, chief economist at Canadian Imperial Bank of Commerce in Toronto, wrote in a research note.

Canada’s economy has gained momentum after a weak first quarter with consumer spending supported by a strong labour market and some companies boosting investment as they reach capacity limits. U.S. demand is also factor, with the American economy growing at a 4.1 per cent clip -- the fastest since 2014.

“A very solid quarter is possible and that’s consistent with what we saw out of the U.S.,” Benjamin Reitzes, a Canadian rates and macro strategist at BMO Capital Markets, said by phone from Toronto. “When the economy is already at capacity it doesn’t take much to brew inflation even more.”

Both Reitzes and Shenfeld said Canada’s economy could grow by about 3 per cent in the second quarter.

Investors are putting a one-in-five chance on another rate increase at the Bank of Canada’s next meeting in September, with odds increasing to two-in-three for a move in October. Central bank policy makers raised interest rates this month for the fourth time in a year and said more increases may be needed in a fairly tight economy.

The growing trade fight with the U.S. is, however, a wild card. President Donald Trump’s policies are threatening the North American Free Trade Agreement and ratcheting up pressure on other Canadian industries, including lumber and uranium. The uncertainty is holding back some new investment and curbing exports.

Companies with strong ties to exporting nevertheless posted increases in May. Transportation and warehousing climbed 0.4 per cent and manufacturing was up 0.1 per cent.

Other GDP Highlights

- Construction advanced 0.7 per cent in May, another industry that rebounded from a decline linked to cold April weather.

- The industry’s output is up 5 per cent in the past year Food services and drinking places saw a 0.9 per cent rise in their value added.

- The utilities sector was the lone major category to decline, with a 2.4 per cent drop after a 1.4 per cent gain in April.

- The real estate agent and broker sub-category dropped 2.7 per cent in May, the fourth decline this year.

- The GDP gain was almost evenly split between a 0.6 per cent increase for goods-producing companies and 0.5 per cent for services.

With files from BNN Bloomberg