This map shows the average price of a gallon of regular gasoline throughout New Hampshire at 10 a.m. Monday, Feb. 4. Gas was more expensive in darker regions. Graphic courtesy GasBuddy.com.

DOVER — The price of gasoline has jumped nearly 20 cents in New Hampshire during the last two weeks, keeping pace with national trends.

In New Hampshire, the average price of a gallon of regular gas rose from about $3.40 in mid-January to about $3.59 today, according to data compiled by the website GasBuddy.com. Much of that increase came in the last week alone, according to GasBuddy's daily survey of 875 gas outlets in New Hampshire. The survey found that average retail gas prises rose 14.2 cents per gallon in the past week.

In Maine, average retail gasoline prices rose 13.6 cents per gallon in the past week, averaging $3.70 per gallon Sunday, according to GasBuddy. The website surveys 1,228 outlets in Maine each day.

GasBuddy.com Senior Petroleum Analyst Patrick DeHaan said prices have been increasing not only in New Hampshire but across the country. The price of oil is rising in part because refinery maintenance is keeping some refineries offline, he said. Positive sentiment in the stock market can also translate into higher commodities prices, he said. “It's a double-edged sword,” DeHaan said. “As the economy goes, so goes gas prices.”

Gas prices usually increase in spring, but this year's spike is “pretty significant,” and it's happening early in the year, according to DeHaan.

The national average has increased 21.1 cents per gallon during the last month and stands 4.4 cents per gallon higher than this day one year ago.

“The national average has ticked higher in the last week, as rising oil prices have put upward pressure on gasoline prices,” said GasBuddy.com Senior Petroleum Analyst Patrick DeHaan. “Unfortunately for angry motorists, there doesn't seem to be much relief in sight, at least for the time being, as retail prices continue to climb in virtually all areas of the country,” DeHaan said.

According to GasBuddy, New Hampshire currently ranks at number 17 on the list of states with the most expensive gas prices. Number one on the list is Hawaii, at an average of $4.11 per gallon, followed by California, at $3.91, and New York, at $3.86, according to GasBuddy.

On the bottom of the website's list is Wyoming, where regular gasoline is retailing at an average of $2.89 per gallon. Also low on the list are Montana, New Mexico, Utah and Colorado.

The price of residential heating oil also rose during the month of January, according to data maintained by the U.S. Energy Information Industry. In New Hampshire, the average price for a gallon of Number 2 heating oil hit about $3.90 during the week of January, according to EIA. That's up from $3.82 at the end of December.

That price is still shy of the all-time high in the state. Residential heating oil prices climbed to $4.07 per gallon last March, the highest level in New Hampshire since at least 1990, according to EIA data.

Cheapest gas prices in NH

As of noon on Monday, GasBuddy.com was indicating that the 15 cheapest prices in the state for regular gasoline — reported by consumers — were: