At the turn of the 20th century, Azerbaijan accounted for half of the world’s oil production. Oil wells have been operating in Baku since the 1840s. As of the early 21st century, almost all production came from off shore in the Caspian Sea. Azerbaijan was one of only four former Soviet republics (along with Russian, Kazakhstan, and Turkmenistan) to be self-sufficient in petroleum. However, production declined following the 1991 breakup of the Soviet Union until foreign investment provided the capital for new development, turning this trend around in 1998. Production rose from 194,000 barrels per day (30,800 m3/d) in 1998 to an average of 318,000 barrels per day (50,600 m3/d) in 2004.
According to industry journals and government sources, proven oil reserves as of 2004 totaled between 7 billion and 13 billion barrels (2.1×10^9 m3). The State Oil Company of Azerbaijan (SOCAR) has planned for joint development of the off shore fields (which are now largely untapped) and has entered into several agreements to build oil pipelines. For instance, a project with the Caspian Pipeline Consortium would carry oil from the Caspian Sea to the Russian Black Sea port of Novorossiysk. Another deal with Turkey involved the construction of a 1,760 km pipeline, the symbolic first length of which was installed in September 2002, to carry crude oil from Baku to Ceyhan, Turkey. In 1995 Azerbaijan had 17 offshore oil fields in production. Guneshli, about 96 km off the Azeri coast, currently accounts for more than half the annual production. By the end of 2002, 33 companies in 15 foreign countries had signed agreements to develop 21 major oil fields in Azerbaijan. As of 2003 disputes over off shore oil rights in the Caspian Sea continued to hinder development of those reserves.
Natural gas production has become more important in recent years, especially in Baku, where some of the oil wells have been exhausted. Proven reserves as of late 2004 totaled 1.37 trillion cubic metres. Production of natural gas in 2004 totaled 4.6 billion cubic metres. Ukraine and Iran are interested in running a natural gas pipeline through Azerbaijan en route to Eastern Europe.
In 2003, net electricity generation was estimated at 19.5 billion kWh. In 2003, consumption of electricity was estimated at 19.8 million kWh. Total installed capacity at the beginning of 2001 was 5.1 million kW. Eight thermal plants supply more than 80% of capacity, and the rest comes from 5 hydroelectric plants. The main power plants (both are thermal) were near Ali Bairamly (1,100 MW) and Mingechaur (2,100 MW).