Canada’s inflation rate slowed in August after hitting a seven-year high as gasoline prices moderated, though underlying price pressures continued to inch higher.

The consumer price index recorded an annual pace of 2.8 per cent during the month, in line with economist expectations, Statistics Canada said Friday in Ottawa. It had hit 3 per cent in July on the back of higher gasoline prices. Core measures of inflation ticked up to an average of 2.1 per cent, the fastest since February 2012.

The slowdown in headline inflation will reassure policy makers that the recent spike in gasoline prices and other products like air transportation is likely transitory. At the same time, accelerating core inflation suggests the narrative of an economy running up against capacity constraints and generating inflationary pressures still holds.

A 2 per cent core rate is consistent with an economy at full capacity -- but not one that is overheating. The Bank of Canada -- which has raised borrowing costs four times since mid-2017 -- has been saying it will need to continue gradually increasing borrowing costs in order to keep inflation at that level. Swaps trading suggests investors have fully priced in another hike at a rate decision next month.

“This simply strengthens the case for the Bank of Canada to hike next month,” Doug Porter, chief economist at Bank of Montreal, said in a note to investors. It “also sets the table for further gradual hikes into 2019.”

Yields on Canadian two-year bonds rose 2 basis points to 2.2 per cent from 2.18 percent following the report.

July’s 3 per cent pace for overall inflation was at the upper end of the central bank’s 1 per cent to 3 per cent target range, and above what the Bank of Canada had been estimating.

In its most recent forecasts released in July, the central bank estimated inflation would average 2.5 per cent in the third quarter before returning back to near the 2 per cent target by 2019.

Other CPI Highlights

-Monthly inflation was down 0.1 per cent in August, in line with analyst expectations. Prices were up 0.5 per cent in July

-On a seasonally adjusted basis, inflation was also up 0.1 per cent, after a gain of 0.5 per cent in July

-All three measures of core inflation increased. The “common” rate picked up to 2 per cent from 1.9 per cent, the “median” increased to 2.1 per cent from 2 per cent and the “trim” rate rose to 2.2 per cent from 2.1 per cent

Inflation for services in July was 3.1 per cent

Gasoline prices were down 1.6 per cent in August from July, the biggest downward contributor

Air transportation prices -- which were up 16.4 per cent during the month of July -- pared some of those gains in August, falling 2.2 per cent

--With assistance from Erik Hertzberg