gassy baby??

My LO has been really gassy lately and is always uncomfortable and looks like he's having a hard time when passing gas (farting) he moves around like crazy while drinking his bottle and grunts and then after a while of grunting and moving he finally lets out a loud fart. He's exclusively formula fed. I believe the gas is making him uncomfortable. What could it be or what can I do? I do bicycle legs but that doesn't seem to help much..