Helicobacterpylori infection can be treated using trihydrate amoxicillin. However, this treatment is not effective enough, as the conventional dosage treatment has a relatively short retention time in the human stomach. In the present study, the amoxicillin trihydrate drug will be encapsulated into a semi-IPN K-PNVP hydrogel matrix with 7,5% KHCO3 as a pore-forming agent. The encapsulated drug is tested with in vitro method to see the efficiency of its encapsulation and dissolution. The hydrogel in situ loading produces an encapsulation efficiency value. The values of the encapsulation efficiency are 95% and 98%, while post loading hydrogel yields an encapsulation efficiency value is 77% and the dissolution is 84%. The study of drug dissolution mechanism was done by using mathematical equation model to know its kinetics and its mechanism of dissolution. The post loading hydrogel was done by using thefirst-order model, while hydrogel in situ loading used Higuchi model. The Korsmeyer-Peppas model shows that post loading hydrogel dissolution mechanism is a mixture of diffusion and erosion, and in situ loading hydrogel in the form of diffusion. It is supported by the results of hydrogel characterization, before and after dissolution test with an optical microscope. The results of the optical microscope show that the hydrogel surface before and after the dissolution tested for both methods shows the change becomes rougher.