There are a number of risk factors for IBS. Being female seems to be a very important risk factor. Having an underlying psychiatric condition such as depression or anxiety can also be a contributing factor. Finally, having gastroenteritis (inflammation of the stomach and intestinal lining) makes it more likely that one might develop IBS.