U.S. import prices recorded their biggest increase in more than four years in May on rising costs of petroleum and other products, pointing to firming inflation as the drag from a strong dollar and lower oil prices fades.

The Labor Department said on Tuesday import prices increased 1.4 percent last month, the largest rise since March 2012, after an upwardly revised 0.7 percent gain in April.