Diesel increased after four straight weeks of decline, rising 2 cents to $2.919 a gallon, the Department of Energy said Monday.
The price is still lower than it was at the beginning of the month, when it averaged $2.924 on July 5. Trucking's main fuel is still 39.1 cents higher per gallon than it was a year ago, DOE records show.
During the five-week decline, diesel had fallen 6.2 cents.
Gasoline, meanwhile, saw a bigger increase, rising 2.7 cents to $2.749 per gallon.
It was gasoline's second consecutive increase, after three consecutive weeks of decline, DOE said following its weekly survey of filling stations.
Gas is down 15.6 cents from May 10, while diesel has fallen 20.8 cents since then. Diesel previously rose 37.1 cents in the three months from mid-February through mid-May.
Each week, DOE surveys about 350 diesel filling stations to compile a national snapshot average price.