Carl Wilhelm Scheele was the first who could extract citric acid from lemons, in 1782. The substance was probably known to alchemists, perhaps with a different name. The Arabian alchemist Geber is said to have discovered citric acid in the 9th century. Citric Acid contains 6 Carbon atoms, 8 Hydrogen atoms and 7 Oxygen atoms. Its chemical formula is CHO.