Usually IBS doesn't do anything to screw up your sleep, but poor sleep can make the IBS worse.Usually waking up at 3 am isn't the sleep apnea issue. Usually with that you think you are asleep and sleeping well, but you aren't. Usually if you know you are awake that isn't likely to be sleep apnea (I had a related condition).Are you doing the standard sleep hygiene things.No alcohol within several hours of bed.No caffeine after noonExercise, but not within 2 hours of bed.Room is dark enough, quiet enough, and cool enough. If something is waking you at the same time it could be some noise from the outside world that usually happens around that time. See if running a fan or a white noise generator to drown out noises helps.No napping during the day. If you really can't take it, you can take a 20-30 minute nap but anythin more than that will disrupt the next day.Get up at the same time no matter how poorly or badly you sleep, even on weekends. Making up for lost sleep on a weekend will set you up for bad sleep the following week.Turn off overhead lights about an hour before bed. Use a dim lamp. Turn off the computer and TV an hour before bed as well. One thing to do if you don't just want to read is take a warm bath or shower in that hour before bed, it will help the body temp drop to signal sleep.Do not read, do homework, or watch TV in bed. You need to train your body that the bed is for sleeping. Not the bed is for being awake and doing things.If you can't get back to sleep after 30-40 minutes of waking, get up and do some quiet reading with a lamp (no over head lights) until you feel you are drifting off again. Staying in bed frustrated you can't sleep trains you to fret rather than sleep in the bed.You might try chamomile tea or other soothing teas at bedtime. Melatonin at least here is available over the counter and that at bedtime may help promote sleep (it is your bodies go to sleep signal). Antihistamines that make people drowsy (like Benadryl) can turn off the histamine in the brain so turn off the "stay awake" signal.