Metformin hydrochloride, which is better absorbed in the upper intestine, was formulated as a floating (buoyant) matrix tablet using a gas generating agent (sodium bicarbonate) and a gel forming hydrophilic polymer (hydroxypropyl methylcellulose). The formulation was optimized on the basis of floating ability and in vitro drug release. The resulting formulation produced robust tablets with optimum hardness, consistent weight uniformity and low tablet friability. All tablets but one exhibited satisfactory (gradual and near complete) drug release and buoyancy. In vitro drug release tests of these tablets indicated controlled sustained release of metformin hydrochloride and 96-99% released at the end of 8 h. Two formulations of fabricated tablets containing metformin hydrochloride (500 mg), sodium bicarbonate (75 mg), hydroxypropyl methylcellulose-K 4M (170-180 mg), citric acid (between 15 and 20 mg) and polyvinyl pyrrolidone K90 (32-40 mg) with hardness between 6.8 to 7.5 kg/cm2 showed a floating time of more than 8 h and promising drug release results. The release followed the Higuchi kinetic model, indicating diffusion dominated drug release.