I have the same problem and had to change my diet and added 2 fiber pills(Fiber One) and 3 calicium pills(Caltrate)that have no magnesium in them. My diet includes meat,veggies, cheese, nuts, & brown rice mainly. No sugar. The potatoes, pasta, white bread and white rice one eats turns into sugar in your system and causes IBS to be worse. Good luck.