Heliobacter pylori (H.pylori) is a type of bacteria that causes inflammation in the lining of the stomach. The treatment of the bacterial infection by using conventional medicine which is amoxicillin trihidrate has a very short retention time in the stomach which is about 1-1,5 hours. Floating drug delivery system is expected to have a long retention time in the stomach so the efficiency of drug can be achieved. In this study, has been synthesized matrix of semi-IPN chitosan-Poly(N-vinil pyrrolidone) hydrogel with a pore-forming agent of CaCO3 under optimum conditions. Amoxicillin is encapsulated in a matrix hydrogel to be applied as a floating drug delivery system by in situ loading and post loading methods. The encapsulation efficiency and dissolution of in situ loading and post loading hydrogels are performed in vitro on gastric pH. In situ loading hydrogel shows higer percentage of encapsulation efficiency and dissolution compared to post loading hydrogel. The encapsulation efficiency of in situ and post loading hydrogels were 92,1% and 89,4%, respectively. The aim of drug dissolution by mathematical equation model is to know kinetics and the mecanism of dissolution. The kinetics release of in situ hydrogel tends to follow first order kinetics, while the post loading hydrogel follow the Higuchi model. The dissolution mecanism of hydrogels is erosion.