Will suddenly surging wholesale prices lead to sticker shock for consumers? Unlikely, economists say.

U.S. producer prices increased for the second straight month in June and are up 2.5% from a year earlier, the largest 12-month increase since March 2012, the Labor Department said Friday. Those gains suggest there is some inflation pressure in the pipeline, but consumer prices, which the Federal Reserve monitors more carefully, are unlikely to see increases of similar magnitude.

While wholesale and consumer costs tend to move in the same direction, producer prices swing more wildly because they more closely reflect volatile gasoline and oil prices, said Robert Dye, chief economist with Comerica Bank in Dallas.