Surprisingly, onions contain carbs. More specifically, they contain the same carb that's found in grains: fructan.Fructan is not only hard for your body to absorb, but also leads to more water being stored in the intestine. This, in turn, can cause bloating.