The national price for regular unleaded gasoline remained 94.5 cents higher than it was a year ago, the department said.
Oil prices, which account for about 65 percent of the cost of making gasoline, rose slightly last week and traded up $1.90 on the New York Mercantile Exchange to settle at $87.27 a barrel on Monday.
Relief that damage from hurricane Irene was less severe than expected drove oil prices up on Monday.
While oil prices have begun to recover from their steep slide at the beginning of August, they remain well below levels around $100 a barrel hit last month.
Diesel prices were up a penny week-on-week to $3.82 a gallon and 88.2 cents higher from a year ago, the department said.