Acidity in the stomach is the result of excess gastric acid production that may cause heartburn and other problems. The purpose of the acid secreted in moderate quantities in the stomach is to aid in the digestion of proteins that are consumed. The pH of the stomach acid ranges between 1.5 to 3.5.