There is a rising interest in stimuli-responsive hydrogels to achieve controlled and self-regulated drug delivery. Stimuli responsive polymer hydrogels with their ability to swell/de-swell under varying pH conditions present themselves as a potential candidate for controlled drug delivery. It is important to develop a mechanistic understanding of the underlying phenomena that will help suggest ways to control the drug release from a polymer hydrogel. We present a mathematical model that couples Nernst–Planck, Poisson and force balance equations to incorporate diffusion of ionic species and drug along with deformation of hydrogel under osmotic pressure. The model can be used to simulate swelling behaviour of the hydrogel along with the kinetics of drug release. It has been validated with published experimental data for swelling of polyhydroxyl methacrylate-co-methacrylic acid (pHEMA-co-MA) gels and release kinetics of Phenylpropanolamine from these gels. Effect of formulation parameters such as polymer concentration and cross-linker concentration has also been evaluated. The model can be used to reduce the number of exploratory experiments required during design of a drug delivery system.