Gastric acid is, together with several enzymes and intrinsic factor, one of the main secretions of the stomach. Chemically it is an acid solution consisting mainly of hydrochloric acid (HCl), and small quantities of potassium chloride (KCl) and sodium chloride (NaCl).