Citric acid has the chemical formula C₆H₈O₇. It is a weak organic acid that occurs naturally in citrus fruits. It is also used as a food additive to give a sour taste to foods and drinks. Citric acid is also used in the production of pharmaceuticals, cosmetics, and cleaning products.