A surge in gasoline prices helped drive Canada’s annual inflation rate well beyond expectations in January to 2.1% — an increase that coincided with the implementation of new carbon-pricing policies in Ontario and Alberta.

Statistics Canada said Friday the 6.3% increase in transportation costs was the main contributor to the higher inflation rate, with gas prices spiking by 20.6% across the country compared to the year before.

The overall inflation reading last month was stronger than December’s rate of 1.5%, the agency’s latest consumer price index said. However, excluding gasoline, the January inflation rate was also 1.5%.

BMO chief economist Douglas Porter said the dramatic jump in pump prices was a combination of the underlying strength in oil prices and the new carbon levies that came into effect last month in both Ontario and Alberta.

“That was the big story as to why overall inflation is now back above 2% cent for the first time in a couple of years,” Porter said.

In Alberta, the annual inflation rate hit 2.5% last month after an increase of 1% cent in December. Gas prices in Alberta soared 33.9% last month, a gain that Statistics Canada says was partly attributable to a new carbon levy in the province.

The agency said Ontario, which introduced a cap-and-trade program in January, saw a 20.4% year-over-year increase in gas prices last month.

TD senior economist James Marple wrote in a note to clients that, when it comes to inflation, the influence of the carbon levies will be a factor to watch going forward. He doesn’t expect the carbon-levy increases to fall out of future data releases.

“Over time, substitution away from energy products should reduce the impact of gains in energy prices on inflation, but this will take time to show up,” he wrote.

The Ontario energy minister’s office said in an email that the province still has lower gas prices than most provinces and that fluctuating global crude prices are the biggest factor in determining what people pay at the pump.

Statistics Canada also found that year-over-year inflation rates were higher in every province last month compared to a year earlier.

Overall, a consensus of economists had predicted 1.6% inflation for January, according to Thomson Reuters.

Statistics Canada says consumers paid 4% less at grocery stores last month compared to a year earlier.

The agency said the Bank of Canada’s three preferred measures for core inflation saw increases last month of 1.3%, 1.7% and 1.9%.