The average U.S. price of a gallon of gasoline has risen 5 cents in the past two weeks.
The Lundberg Survey of fuel prices released Sunday says the price of a gallon of regular is $3.61, the highest price in Lundberg's twice-monthly surveys since late July 2013.
But the current price is 4 cents under its year ago point.
Midgrade costs an average of $3.79 a gallon, and premium $3.94.
The average diesel price is $4.00, down 2 cents.
Of the cities surveyed in the Lower 48 states, Billings, Mont. has the nation's lowest average price at $3.20. Los Angeles has the highest at $4.04.
In California, the lowest average price was $3.83 in Sacramento. The average statewide for a gallon of regular was $3.07.
The average price for a gallon of gas in San Francisco was $4.08, which is up from 14 cents from a month ago. But that is still 4 cents less than the average price at this point last year.
A gallon is less in San Jose at $4.01 and even cheaper in Berkeley, which is $3.97 a gallon.