As the U.S. economy struggles to emerge from its pandemic-induced hibernation, consumers and businesses have encountered product shortages, hiring difficulties and often conflicting public health guidance, among other challenges.

Now the recovery faces a more familiar foe: rising oil and gasoline prices.

West Texas Intermediate, the U.S. oil-price benchmark, hit $76.98 a barrel on Tuesday, its highest level in six years, as OPEC, Russia and their allies again failed to agree on production increases. Prices moderated later in the day but remained nearly $10 a barrel higher than in mid-May.

Reflecting the increase in crude prices, the average price of a gallon of regular gasoline in the United States has risen to $3.13, according to AAA, up from $3.05 a month ago. A year ago, as the coronavirus kept people home, gas cost just $2.18 a gallon on average. The auto club said on Tuesday that it expected prices to increase another 10 to 20 cents through the end of August.

The rapid run-up comes at a delicate moment for the U.S. economy, which was already experiencing the fastest inflation in years amid resurgent consumer activity and supply-chain bottlenecks. And it could cause a political headache for President Joe Biden as he tries to convince the public that his policies are helping the country regain its footing.

Asked about oil prices at a White House news conference on Tuesday, Jen Psaki, the press secretary, said the administration was monitoring the situation and had been in touch with officials from Saudi Arabia and other major producers.

But she suggested that the president had limited control over gas prices.

"There sometimes is a misunderstanding of what causes gas prices to increase," Psaki said. "The supply availability of oil has a huge impact."

Indeed, energy experts said the recent jump in oil prices had more to do with global economic and geopolitical forces than with domestic policies. Global energy demand slumped when the pandemic hit last year, eventually leading OPEC and its allies to cut production to prevent a collapse in prices. Demand has begun to rebound as economic activity resumes, but production has not kept pace: OPEC Plus, the alliance of oil producers, on Monday called off a teleconference to discuss increasing output.

The direct economic effect of higher oil prices will probably be substantially more modest than in past decades. Energy overall plays a smaller role in the economy because of improved efficiency and a shift away from manufacturing, and the rise of renewable energy means the United States is less reliant on oil in particular.

In addition, the surge in domestic oil production in recent years means that rising oil prices are no longer an unambiguous negative for the U.S. economy: Higher prices are bad news for drivers and consumers, but good news for oil companies and their workers, and the vast network of equipment manufacturers and service providers that supply them.

Joe Brusuelas, chief economist at the accounting firm RSM, said oil prices of $80 or even $100 a barrel didn't concern him. Not until prices top $120 a barrel would he start to worry seriously about the economic effect, he said.

"The world has changed," Brusuelas said. "The risks aren't what they once were."

Still, the costs of higher prices will not be felt equally. Poor and working-class Americans drive older, less efficient cars and trucks and spend more of their incomes on fuel.

Gas prices also remain a potent and highly visible symbol of rising prices when many consumers — and some economists — are nervous about inflation. Consumer prices rose 5% in May from a year earlier, the biggest annual increase in more than a decade, and forecasters expect figures for June, which will be released next week, to show another significant increase.

Policymakers at the Federal Reserve have said they expect the increase in inflation to be short-lived, and they are unlikely to change that view based on an increase in energy prices, which are often volatile even in normal times, said Jay Bryson, chief economist at Wells Fargo. But if rising oil prices lead consumers and businesses to believe that faster inflation will continue, that could be a harder problem for the Fed. Economic research suggests that prices of things that consumers buy often, such as food and gasoline, weigh particularly heavily on their expectations for inflation.

With public opinion surveys showing increasing concern about inflation, rising oil prices increase the risk of a more lasting shift in expectations, said David Wilcox, a former Fed economist who is now a senior fellow at the Peterson Institute for International Economics in Washington.

"I don't expect the price of oil to be the last straw on the camel's back, but it is another straw on a camel's back that's already carrying a fair amount of baggage," Wilcox said. "There is a much greater risk today of an inflationary psychology taking hold than I would have said three to five years ago."

Domestic oil production is expected to rise in coming months as higher prices and rising demand lead companies to step up drilling. But any rebound is likely to be gradual.

U.S. oil companies have been cautious about investing in new exploration and production over the last year, even as oil prices have roughly doubled from the first half of 2020, when the pandemic punctured demand.

Executives said they are focused on share buybacks and debt reduction as sales rise. The Energy Department predicts production will average 11.1 million barrels a day this year and 11.8 million barrels a day in 2022.