The price of crude is the major reason American drivers are paying more at the pump as the summer driving season approaches. The average price for a gallon of regular gasoline on Friday was $2.75 a gallon, according to AAA, up 19 cents over the last month and 33 cents from a year ago. It is the highest level since the summer of 2015.

The increase has been particularly noticeable over the last week, with prices in some states rising more than a penny a gallon every day.

Americans consume roughly 400 million gallons of gasoline a day, so the 33-cent increase over the last year means roughly $132 million less every day in consumer pockets. Working-class Americans, who usually drive older, less fuel-efficient cars and spend a higher percentage of their income on fuel, are disproportionately affected.

“This hurts the pocketbooks of typical Trump voters in swing states who live paycheck to paycheck,” said Tom Kloza, global head of energy analysis at the Oil Price Information Service. He predicted gas prices would continue to increase modestly, probably rising above $2.80 a gallon in the coming weeks.

Mr. Trump’s comments may have been informed by his new top economic adviser, Larry Kudlow, who has long viewed low gasoline prices as a beneficial stimulus. In a 2014 commentary for CNBC.com, he argued that lower oil prices would produce savings for households and businesses, freeing up money for consumers to spend. “All these factors will increase U.S. economic growth, not reduce it,” he wrote.

Deutsche Bank analysts warned this week that the rise in gas prices was beginning to cut into the disposable-income gains from the tax cuts Mr. Trump signed into law late last year.

Much of the recent price increase is a result of world tensions — some related to Mr. Trump’s policies — that have bolstered investor expectations that oil prices could rise even higher.