Citric acid exists in greater than trace amounts in a variety of fruits and vegetables, most notably citrus fruits. Lemons and limes have particularly high concentrations of the acid; it can constitute as much as 8% of the dry weight of these fruits (about 47 g/lin the juices The concentrations of citric acid in citrus fruits range from 0.005 mol/L for oranges and grapefruits to 0.30 mol/L in lemons and limes. Within species, these values vary depending on the cultivar and the circumstances in which the fruit was grown.
Citric acid was first isolated in 1784 by the chemist Carl Wilhelm Scheele, who crystallized it from lemon juic. It can exist either in an anhydrous (water-free) form or as a monohydrate. The anhydrous form crystallizes from hot water, while the monohydrate forms when citric acid is crystallized from cold water. The monohydrate can be converted to the anhydrous form at about 78 °C. Citric acid also dissolves in absolute (anhydrous) ethanol (76 parts of citric acid per 100 parts of ethanol) at 15 °C. It decomposes with loss of carbon dioxide above about 175 °C.