Gallium does not exist in free form in nature, and the few high-gallium minerals such as gallite (CuGaS2) are too rare to serve as a primary source of the element or its compounds. Its abundance in the Earth's crust is approximately 16.9 ppm. Gallium is found and extracted as a trace component in bauxite and to a small extent from sphalerite. The amount extracted from coal, diaspore and germanite in which gallium is also present is negligible. The United States Geological Survey (USGS) estimates gallium reserves to exceed 1 million tonnes, based on 50 ppm by weight concentration in known reserves of bauxite and zinc ores. Some flue dusts from burning coal have been shown to contain small quantities of gallium, typically less than 1% by weight.

The only two economic sources for gallium are as byproduct of aluminium and zinc production, while the sphalerite for zinc production is the minor source. Most gallium is extracted from the crude aluminium hydroxide solution of the Bayer process for producing alumina and aluminium. A mercury cell electrolysis and hydrolysis of the amalgam with sodium hydroxide leads to sodium gallate. Electrolysis then gives gallium metal. For semiconductor use, further purification is carried out using zone melting, or else single crystal extraction from a melt (Czochralski process). Purities of 99.9999% are routinely achieved and commercially widely available. An exact number for the worldwide production is not available, but it is estimated that in 2007 the production of gallium was 184 tonnes with less than 100 tonnes from mining and the rest from scrap recycling.[12]