By Sarah McFarlane and Stephanie Yang

Oil prices bounced off a three-month low, bolstered by speculation that members of OPEC are working out the details of a proposed reduction in crude output.

Light, sweet crude for December delivery gained $2.49, or 5.7%, to settle at $45.81 a barrel on the New York Mercantile Exchange on Tuesday, its biggest one-day percentage gain since April. Brent, the global benchmark, rose $2.52, or 5.7% to $46.95 a barrel on ICE Futures Europe.

All eyes are now on the Organization of the Petroleum Exporting Countries ahead of the Nov. 30 meeting in which the group aims to agree to a production cut to between 32.5 million and 33 million barrels a day from record levels of 33.83 million barrels a day in October.

"All of a sudden now there's hope, and that's why we're seeing the market rebound," said Phil Flynn, senior market analyst at the Price Futures Group. There is a consensus that OPEC will come to an agreement, though the group's ability to rebalance the market, which has been dogged by excess supply for several years, is more in doubt.

"Today's price recovery that has seen Brent climb back to above $45 per barrel comes courtesy of the latest diplomatic attempts by Qatar, Venezuela and Algeria to bring about a compromise at the OPEC meeting," said Commerzbank AG.

Oil has taken mostof its cues from sentiment on the OPEC deal in recent weeks. Until the November meeting, headlines should continue to influence prices, analysts said. "This is typical of OPEC negotiations. 'We have a deal, we don't have a deal,' and it goes till the last minute, " Mr. Flynn said.

Analysts said concerns over pipelines in countries such as Nigeria helped support a move higher in oil prices. Robbie Fraser, commodity analyst with Schneider Electric, said the possibility that instability and supply disruptions will continue has also made investors more bullish on oil. "It's a pretty big combo in a pretty tight window here," he said, when added onto optimism over an OPEC deal.

OPEC is in a difficult position. Any cut would potentially trigger increased production elsewhere, leading to doubts over the effectiveness of the current scale of the agreement. Rising production in nonmembers, including Brazil and Russia, has exacerbated the global supply glut.

"We believe the amount of production cut that will be delivered will fall short of helping the market to rebalance in 2017, assuming recovery in Libya and Nigeria and stability in Venezuela," said Harry Tchilinguirian, head of commodity strategy at BNP Paribas SA. The bank expects global stocks to rise in 2017.

In contrast with other commodities and risky assets, oil prices had broadly been retreating over the past week, after Donald Trump's victory in the U.S. presidential election. Analysts attribute the recent losses to concern over the scale of the global crude oversupply.

In the U.S., the amount of production rose 2% for the week ended Nov. 4, the U.S. Energy Information Administration said last week. Mr. Trump is expected to support the growth of the domestic oil-and-gas industry.

Traders will be watching for the latest EIA data to be released at 10:30 a.m. ET on Wednesday for more clarity on the state of oil storage and production. Analysts and traders surveyed by The Wall Street Journal expect inventories to add an average of 1.1 million barrels of oil in the week ended Nov. 11. Refinery use is seen rising 0.8% on average to 87.9% of capacity, according to the survey.

The American Petroleum Institute, an industry group, said late Tuesday that its own data for the week showed a 3.7-million-barrel increase in crude supplies, a 155,000-barrel decrease in gasoline stocks and a 3-million-barrel increase in distillate inventories, according to a market participant.

Gasoline futures settled up 4.5% at $1.3350 a gallon, and diesel futures settled up 4.2% at $1.4439 a gallon.

--Sarah McFarlane and Stephanie Yang

Write to Sarah McFarlane at sarah.mcfarlane@wsj.com and Stephanie Yang at stephanie.yang@wsj.com

(END) Dow Jones Newswires

November 15, 2016 17:14 ET (22:14 GMT)

Copyright (c) 2016 Dow Jones & Company, Inc.