The present disclosure relates to a taste-masking microcapsule composition. The composition comprises a core portion encapsulated by a shell portion. The core portion comprises an active pharmaceutical ingredient (API) and one or more excipients. The shell portion comprises a hydrophobic matrix and a pH-responsive material. The microcapsule compositions prevent API release at the more neutral pH levels in the oral cavity, but upon exposure to pH levels of the stomach, the pH-responsive material becomes soluble thereby permitting release of the API.