Apparently the nerves in your brain are the same as the ones in your intestines. The amitriptyline is supposed to help soothe the nerves in the intestines, etc. that should settle down the IBS. At least that's how he explained it to me.