Our Services
Medical Information
Helpful Resources
Published on: 3/1/2026
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.
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.
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:
Cholelithiasis develops when there is an imbalance in the substances that make up bile. This can happen for several reasons:
If your bile contains more cholesterol than it can dissolve, the excess cholesterol may form crystals that grow into stones.
Certain medical conditions—such as liver disease or blood disorders—can cause your body to produce too much bilirubin, leading to pigment stones.
If the gallbladder doesn't empty completely or often enough, bile becomes concentrated. This increases the risk of stone formation.
Several factors increase the likelihood of developing cholelithiasis:
Having one or more risk factors doesn't mean you will definitely develop gallstones—but it increases your chances.
Many people with cholelithiasis have no symptoms. When symptoms do occur, they often appear suddenly.
The most common symptom is biliary colic, which includes:
This pain happens when a gallstone temporarily blocks a bile duct.
If the blockage lasts longer or leads to infection, the condition can become more serious.
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:
These could indicate:
These conditions can be serious and potentially life-threatening without treatment.
Doctors typically diagnose cholelithiasis using:
This is the most common and reliable imaging test for gallstones. It is painless and non-invasive.
Blood work may check for:
In some cases, doctors may order:
Treatment depends on whether you have symptoms.
Treatment options include:
For mild cases:
These changes may reduce future attacks but won't remove existing stones.
Certain medications can dissolve cholesterol stones. However:
The most common and definitive treatment for symptomatic cholelithiasis is surgical removal of the gallbladder.
You can live a normal life without a gallbladder. Bile will flow directly from your liver to your small intestine.
While not all cases can be prevented, you can reduce your risk:
Small, consistent lifestyle choices can make a meaningful difference.
Not all right-sided abdominal pain is caused by cholelithiasis. Other conditions that may cause similar pain include:
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.
You should speak to a doctor if:
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.
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:
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.
We would love to help them too.
For First Time Users
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.
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.