Scientists have linked IBS with both weight gain and weight loss. Ulcerative colitis may also cause weight gain, though weight loss is more common with this condition.