For most stomach problems, your primary care doctor is the right starting point. They can diagnose and treat the majority of digestive complaints, and if your condition needs specialized care, they’ll refer you to the appropriate specialist. The type of specialist you ultimately need depends on your specific symptoms, how long they’ve lasted, and whether the problem is something that can be managed with medication or requires a procedure.
Start With Your Primary Care Doctor
A primary care physician can handle a surprising range of stomach and digestive issues without ever sending you to a specialist. During your visit, they’ll take a detailed history of your pain, including where it is, what makes it better or worse, how long it’s lasted, and what other symptoms you’re experiencing. They’ll perform a physical exam that can narrow down causes ranging from muscle strain in the abdominal wall to gallbladder inflammation, sometimes with just a few targeted maneuvers.
Your primary care doctor can order blood work, stool tests, urine tests, and basic imaging like an ultrasound or X-ray. For straightforward problems like acid reflux, mild gastritis, constipation, or a stomach bug, they can prescribe treatment and monitor your progress without involving anyone else. Many people with digestive complaints get a diagnosis and feel better without ever leaving the primary care setting.
The key question is whether your symptoms respond to initial treatment or keep coming back. If a few weeks of medication don’t resolve your acid reflux, if your abdominal pain becomes chronic, or if new symptoms like unexplained weight loss or blood in your stool appear, your doctor will typically refer you to a gastroenterologist.
When You Need a Gastroenterologist
A gastroenterologist is a specialist trained in diseases of the entire digestive tract: the esophagus, stomach, intestines, liver, gallbladder, and pancreas. They’re the doctor you’ll see for conditions that are chronic, complex, or require procedures to diagnose. Think of them as the next step up when your primary care doctor has done the initial workup and needs someone with deeper expertise.
Common reasons for a gastroenterology referral include:
- Persistent heartburn or reflux that doesn’t improve with standard treatment
- Chronic diarrhea or constipation lasting more than a few weeks
- Suspected inflammatory bowel disease (Crohn’s disease or ulcerative colitis)
- Irritable bowel syndrome that’s difficult to manage
- Abnormal liver tests or hepatitis
- Celiac disease
- Difficulty swallowing
Gastroenterologists also perform key diagnostic procedures. An upper endoscopy lets them look directly at the lining of your esophagus, stomach, and the first part of your small intestine. A colonoscopy examines the entire large intestine. During either procedure, they can take tissue samples for biopsy and sometimes treat problems on the spot, like removing polyps. They also perform specialized tests to measure how well the muscles in your esophagus, stomach, or rectum are working.
Referral guidelines prioritize speed for certain situations. If imaging or a physical exam suggests a high likelihood of cancer, or if you have significant active inflammatory bowel disease, the goal is typically to get you seen within two weeks. Alarm symptoms that fast-track a referral include unexplained weight loss, difficulty swallowing, and blood in your vomit or stool.
Colorectal Surgeons for Lower GI Problems
If your problem is specifically in the colon, rectum, or anus, you may eventually need a colorectal surgeon. These specialists handle conditions like hemorrhoids, anal fistulas, diverticulitis, and colorectal cancer. The distinction from a gastroenterologist is straightforward: gastroenterologists diagnose and manage these conditions medically, while colorectal surgeons step in when surgery is necessary.
A common scenario is having a colonoscopy with your gastroenterologist, who finds polyps or a tumor that needs surgical removal. At that point, a colorectal surgeon takes over for the procedure. Many of these surgeries are now done with minimally invasive techniques, including robotic-assisted approaches, which means shorter recovery times. For complex cases like Crohn’s disease with complications, the two specialists often work together.
General Surgeons for Acute Conditions
Some stomach problems are actually surgical emergencies that bypass the gastroenterologist entirely. Appendicitis, for example, is treated by a general surgeon who removes the inflamed appendix. Gallbladder attacks that require the organ to be removed also fall under general surgery. Hernias, where part of the intestine pushes through a weak spot in the abdominal wall, are another common reason you’d see a general surgeon rather than a digestive specialist.
These conditions typically present suddenly and with enough severity that you’ll be diagnosed in an emergency room or urgent care setting, then referred directly to a surgeon.
Allergists for Food-Related Symptoms
If your stomach problems seem connected to specific foods, the right specialist depends on what’s actually happening. True food allergies, where your immune system reacts to a food protein and causes symptoms like hives, swelling, or trouble breathing alongside stomach issues, should be evaluated by an allergist. They’ll conduct skin prick tests or blood tests to identify the trigger.
For everyone else with food-related digestive symptoms, a gastroenterologist is usually more appropriate. Conditions like celiac disease and eosinophilic esophagitis (a condition where a type of immune cell builds up in the esophagus and causes swallowing problems) are diagnosed through endoscopy and biopsy, not allergy testing. That said, eosinophilic esophagitis often has an allergic component, so your gastroenterologist and an allergist may collaborate on your care.
Dietitians for Ongoing Digestive Management
A registered dietitian isn’t a doctor, but they play a critical role in managing many chronic digestive conditions. They’re the only health professionals with extensive training in medical nutrition therapy, and for conditions like inflammatory bowel disease or irritable bowel syndrome, dietary management is often as important as medication.
If you have IBS, for instance, a dietitian can guide you through an elimination diet (such as a low-FODMAP diet) to identify your triggers. This matters because elimination diets done without professional guidance can lead to unnecessary food restrictions and nutritional gaps. For inflammatory bowel disease, dietitians assess your nutritional status, design individualized meal plans, and manage specialized feeding regimens if malnutrition becomes a concern. Unfortunately, research has found that many medical specialists don’t routinely discuss nutrition with patients or refer them to dietitians, so it’s worth asking your gastroenterologist for a referral if diet seems to play a role in your symptoms.
Pediatric Gastroenterologists for Children
Children with stomach problems start with their pediatrician, just as adults start with their primary care doctor. But certain symptoms in kids warrant a visit to a pediatric gastroenterologist: significant weight loss, bloody diarrhea, belly pain that wakes them from sleep, or digestive symptoms that are clearly affecting their daily life. Children’s Hospital of Philadelphia specifically recommends seeking a pediatric GI specialist when symptoms seem to be “controlling their life,” since children may need different diagnostic approaches and treatments than adults.
When to Go to the Emergency Room
Not every stomach problem can wait for a scheduled appointment. Extreme abdominal pain lasting more than five minutes, especially when paired with fever, vomiting, blood in your stool or urine, or pain that gets worse when pressure is released from your abdomen, calls for an emergency room visit. The general rule is that serious conditions get progressively worse rather than coming and going. If your pain hits hard, lingers, and intensifies over hours, don’t wait for a referral chain to play out.
Conditions like pancreatitis and major gastrointestinal bleeding require immediate hospitalization and wouldn’t go through the normal outpatient referral process. In these situations, the ER team stabilizes you and connects you with the right specialist in-house.

