Doctors Note Logo

Published on: 3/1/2026

Sharp Side Pain? Why Cholelithiasis Occurs & Medical Next Steps

Sharp right-sided pain under the ribs is often from gallstones that develop when bile components are imbalanced, bilirubin is elevated, or the gallbladder empties poorly. Attacks often follow fatty meals and can cause nausea with pain radiating to the back or right shoulder; risks include female sex, age over 40, obesity, rapid weight loss, pregnancy, diabetes, family history, and estrogen therapy.

See below for next steps, including when to monitor, try lower fat meals, get an ultrasound and blood tests, consider surgery if episodes recur, and seek urgent care for fever, jaundice, persistent severe pain, dark urine, pale stools, or vomiting.

answer background

Explanation

Sharp Side Pain? Why Cholelithiasis Occurs & What to Do Next

A sudden, sharp pain in your right side—especially under the ribs—can be alarming. One common cause of this type of pain is cholelithiasis, the medical term for gallstones. While many people with cholelithiasis never notice symptoms, others experience significant discomfort that requires medical care.

Understanding why cholelithiasis occurs, what symptoms to watch for, and when to seek help can empower you to take the right next steps without unnecessary panic.


What Is Cholelithiasis?

Cholelithiasis refers to the formation of solid particles—called gallstones—inside the gallbladder. The gallbladder is a small organ located beneath your liver on the right side of your abdomen. Its main job is to store bile, a digestive liquid that helps break down fats.

Gallstones can range in size from tiny grains of sand to larger stones the size of a golf ball. Some people develop a single stone, while others may develop multiple stones.

There are two main types:

  • Cholesterol stones (most common)
  • Pigment stones (made of bilirubin, more common in certain blood disorders)

Why Does Cholelithiasis Occur?

Cholelithiasis develops when there is an imbalance in the substances that make up bile. This can happen for several reasons:

1. Too Much Cholesterol in the Bile

If your bile contains more cholesterol than it can dissolve, the excess cholesterol may form crystals that grow into stones.

2. Excess Bilirubin

Certain medical conditions—such as liver disease or blood disorders—can cause your body to produce too much bilirubin, leading to pigment stones.

3. Poor Gallbladder Emptying

If the gallbladder doesn't empty completely or often enough, bile becomes concentrated. This increases the risk of stone formation.


Risk Factors for Cholelithiasis

Several factors increase the likelihood of developing cholelithiasis:

  • Female sex
  • Age over 40
  • Obesity or rapid weight loss
  • Pregnancy
  • High-fat or high-cholesterol diet
  • Family history of gallstones
  • Diabetes
  • Certain medications (such as estrogen therapy)
  • Prolonged fasting

Having one or more risk factors doesn't mean you will definitely develop gallstones—but it increases your chances.


What Does Cholelithiasis Pain Feel Like?

Many people with cholelithiasis have no symptoms. When symptoms do occur, they often appear suddenly.

The most common symptom is biliary colic, which includes:

  • Sharp or cramping pain in the upper right abdomen
  • Pain that may spread to the right shoulder or back
  • Pain that begins after eating, especially fatty meals
  • Episodes lasting 30 minutes to several hours
  • Nausea or vomiting

This pain happens when a gallstone temporarily blocks a bile duct.

Important:

If the blockage lasts longer or leads to infection, the condition can become more serious.


Warning Signs That Need Immediate Medical Attention

While many gallstone episodes pass on their own, certain symptoms may signal complications of cholelithiasis, such as infection or inflammation.

Seek urgent medical care if you experience:

  • Fever or chills
  • Yellowing of the skin or eyes (jaundice)
  • Severe, persistent abdominal pain lasting more than a few hours
  • Dark urine or pale stools
  • Persistent vomiting

These could indicate:

  • Acute cholecystitis (inflammation of the gallbladder)
  • Cholangitis (bile duct infection)
  • Pancreatitis

These conditions can be serious and potentially life-threatening without treatment.


How Is Cholelithiasis Diagnosed?

Doctors typically diagnose cholelithiasis using:

1. Ultrasound

This is the most common and reliable imaging test for gallstones. It is painless and non-invasive.

2. Blood Tests

Blood work may check for:

  • Signs of infection
  • Liver function abnormalities
  • Elevated bilirubin levels

3. Additional Imaging (If Needed)

In some cases, doctors may order:

  • CT scan
  • MRI
  • HIDA scan
  • Endoscopic imaging to examine bile ducts

Medical Next Steps for Cholelithiasis

Treatment depends on whether you have symptoms.

If You Have Gallstones but No Symptoms

  • Often, no immediate treatment is needed.
  • Many people live their entire lives without complications.
  • Your doctor may recommend monitoring.

If You Have Painful Episodes

Treatment options include:

1. Lifestyle Changes

For mild cases:

  • Eat smaller, lower-fat meals
  • Avoid heavy, greasy foods
  • Maintain a healthy weight
  • Avoid rapid weight loss

These changes may reduce future attacks but won't remove existing stones.

2. Medications

Certain medications can dissolve cholesterol stones. However:

  • They take months or years to work.
  • Stones may return.
  • They are rarely used today unless surgery isn't an option.

3. Surgery (Cholecystectomy)

The most common and definitive treatment for symptomatic cholelithiasis is surgical removal of the gallbladder.

  • Usually performed laparoscopically (minimally invasive)
  • Often outpatient or short hospital stay
  • Most people recover within a few weeks

You can live a normal life without a gallbladder. Bile will flow directly from your liver to your small intestine.


Can Cholelithiasis Be Prevented?

While not all cases can be prevented, you can reduce your risk:

  • Maintain a healthy body weight
  • Lose weight gradually if needed
  • Eat a balanced diet rich in fiber
  • Limit refined carbohydrates and saturated fats
  • Stay physically active
  • Manage diabetes effectively

Small, consistent lifestyle choices can make a meaningful difference.


Should You Be Concerned About Sharp Side Pain?

Not all right-sided abdominal pain is caused by cholelithiasis. Other conditions that may cause similar pain include:

  • Liver disease
  • Kidney stones
  • Peptic ulcers
  • Appendicitis
  • Muscle strain

Because symptoms can overlap, it's important not to self-diagnose. If you're experiencing sharp side pain and want to understand if it could be related to gallstones, try using a free AI-powered symptom checker for Cholelithiasis to get personalized insights based on your specific symptoms and help determine if you should seek medical care.

However, online tools are not a substitute for medical care—especially if your symptoms are severe.


When to Speak to a Doctor

You should speak to a doctor if:

  • You experience recurring upper right abdominal pain
  • Your pain interferes with daily life
  • You develop nausea or vomiting with pain
  • You have risk factors for cholelithiasis
  • You notice signs of infection or jaundice

If symptoms are intense, worsening, or accompanied by fever or yellowing of the skin, seek emergency care immediately.

Gallstone complications can escalate quickly, and early treatment greatly improves outcomes.


The Bottom Line

Cholelithiasis is common, especially in adults over 40, and many cases are manageable. While sharp right-sided pain can be frightening, most gallstone episodes are treatable—and many people recover fully with appropriate care.

The key points to remember:

  • Gallstones form due to imbalances in bile.
  • Many people have no symptoms.
  • Sharp upper right abdominal pain after meals is a classic sign.
  • Persistent pain, fever, or jaundice requires urgent evaluation.
  • Surgery is highly effective when needed.

If you are experiencing symptoms that concern you, do not ignore them. Consider starting with a reliable symptom check and then speak to a doctor to discuss your individual situation. Prompt medical evaluation is especially important for anything that could be serious or life-threatening.

Taking action early helps prevent complications—and gives you peace of mind.

(References)

  • * Krawczyk M, Lammert F. Gallstone disease. Lancet. 2023 Mar 18;401(10380):993-1006. doi: 10.1016/S0140-6736(22)01691-1. PMID: 36934898.

  • * Fan Z, Song R, Tian H, Wu S, Han F, Guo S, Zhang C, Wei C, Luo X, Song W, Song C. Recent advances in gallstone disease: From mechanism to therapy. Front Pharmacol. 2023 Jan 26;14:1107923. doi: 10.3389/fphar.2023.1107923. PMID: 36776856; PMCID: PMC9912061.

  • * Portincasa P, Moschetta A, Palasciano G. Gallstone disease: Pathogenesis, diagnosis and treatment. Best Pract Res Clin Gastroenterol. 2020 Feb-Mar;44-45:101671. doi: 10.1016/j.bpg.2020.101671. Epub 2020 May 9. PMID: 32448773.

  • * Lammert F, Gurusamy K, Ko CW, Miquel JF, Méndez-Sánchez N, Portincasa P, van Erpecum KJ, van Laarhoven CJHM, Wang DQH. Gallstone disease. Nat Rev Dis Primers. 2019 Aug 1;5(1):57. doi: 10.1038/s41572-019-0115-0. PMID: 31371755.

  • * European Association for the Study of the Liver (EASL). EASL Clinical Practice Guidelines on the management of gallstones. J Hepatol. 2016 Oct;65(4):817-41. doi: 10.1016/j.jhep.2016.03.005. Epub 2016 Mar 21. PMID: 27042982.

Thinking about asking ChatGPT?Ask me instead

Tell your friends about us.

We would love to help them too.

smily Shiba-inu looking

For First Time Users

What is Ubie’s Doctor’s Note?

We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.

Learn more about diseases

Cholelithiasis

Was this page helpful?

Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.