Side pain that comes and goes

Lately I have been feeling a sharp pain in my side. It's on the right side and sometimes I feel it in my back, the pain is the worst when I try taking a breath. It will come and go it usually only happens 2-4 times a day and lasts a few seconds but when it happens it's incredibly painful. Any idea what this could be?

Have you have check for liver, pancreas? Or maybe you turn the wrong way? They can give you a blood test. My pain is on the left side

It may be your gallbladder if you have rightsided pain. An ultrasound and HIDA scan would identify any problems. My pain moves all over my stomach and sometimes into my back.  I have had four different types of pain.  I have IBS.