Vinegar is roughly 3–9% acetic acid CH3COOH) by volume, making acetic acid the main component of vinegar apart from water. The acetic acid is produced by the fermentation of ethanol by acetic acid bacteria.Vinegar is mainly used as a cooking ingredient, or in pickling