What does pain on your right side under your ribs mean?

With me the pain was due to IBS. That is when your colon goes into spasms and causes some pain. It can also cause pain anywhere from in your neck on the right, down into your lower stomach. For me the solution was to get a prescription forr IBS called Bentyl that I take regularly that has stopped most if not all the pain. If that doesn't seem to answer your question my suggestion would be to call your doctor to see if it could be your gall bladder.