As part of the deal, OPEC group countries are contributing 800,000 barrels per day as a cut, and the non-OPEC countries will be contributing 400,000 barrels per day
OPEC members and 10 other oil producing nations, including Russia, agreed Friday to cut output by 1.2 million barrels a day in a bid to reverse falls in prices in recent months.
Energy ministers reached the deal -- which takes effect from January 1 but has already sent prices surging on oil markets -- after two days of talks at OPECheadquarters in Vienna.
"OPEC group countries are contributing 800,000 barrels per day as a cut, and the non-OPEC (countries) will be contributing 400,000 barrels per day," Emirati oil minister Suhail Mohamed al-Mazrouei said at a news conference.
OPEC and its partners, which together account for around half of global output, met against the backdrop of a glut in the market which had led to oil prices falling by more than 30 percent in two months.
Mazrouei said that three countries had been allowed exemptions from the agreement due to "special circumstances".
"Those countries are Iran and Venezuela because of the sanctions and Libya because of the fact that unfortunately they are on and off," he added, alluding to the impact on Libyan production of continuing conflict there.
Mazrouei said that the exemptions mean that the cuts introduced by other member states are "going to be a bit higher than just the average for everyone".
For his part Russian Energy Minister Alexander Novak -- whose country is the world's second biggest producer of oil -- said that the agreement "should help the market reach a balance" and recognised that negotiations had been "complex".
The price of Brent crude, the European benchmark, surged 4.43 percent on Friday to $62.7 as of 17:15 GMT.
But some said Friday's deal may not be enough to keep oil prices buoyant.
"I would describe the cuts as close but not close enough with regards to eliminating the global oil glut," said Stephen Brennock, oil expert at London brokerage PVM.
"A combined reduction of 1.5 mbpd was needed to avoid a supply surplus in the first half of next year," he told AFP.
"Accordingly, the price outlook for the coming few months still remains skewed to the downside despite today’s knee-jerk reaction."
The deal was announced after Novak held bilateral meetings with several counterparts, including Iranian Energy Minister Bijan Namdar Zanganeh, before the full meeting.
However, the major players all had their own reasons to look to others to act first and the details of how any cuts will be shared out will be key.
Novak said that Russia, which leads the non-member countries in the so-called OPEC+ alliance, would introduce cuts "gradually" to allow for "climatic and technical conditions" but aimed to reach the cuts target "in the next few months.
OPEC kingpin Saudi Arabia, meanwhile, had to bear in mind pressure from the United States after President Donald Trump demanded in a tweet on Wednesday that the cartel boost output so as to lower prices and help the economy.
The kingdom's diplomatic position has been badly weakened by the furore over the killing of Saudi journalist Jamal Khashoggi.
Trump insists he will stick by Riyadh despite the outrage but he has been also ramping up the pressure for more oil.