How to Prepare for a Gluten Intolerance Test

The single most important step in preparing for a gluten intolerance test is to keep eating gluten. If you stop eating gluten before your test, the results can come back falsely negative, making it look like you don’t have a problem when you actually do. The specific amount and duration depend on which test you’re getting, but the general rule is the same: you need gluten in your system for the test to detect a reaction to it.

Why You Must Eat Gluten Before Testing

Gluten intolerance tests work by measuring your body’s immune response to gluten. Blood tests look for specific antibodies your immune system produces when it encounters gluten. A biopsy looks for physical damage to the lining of your small intestine. Both of these signals fade once you remove gluten from your diet. If you’ve already gone gluten-free, your antibody levels drop and your gut starts to heal, which means the test has nothing to detect.

This is the most common mistake people make. They feel better after cutting out gluten on their own, then ask for a test to confirm the diagnosis. By that point, the test often comes back negative. To get accurate results, you need to go back to eating gluten for a set period before the test, a process called a “gluten challenge.”

How Much Gluten and for How Long

Current clinical guidance recommends eating a minimum of 3 to 6 grams of gluten per day for at least 12 weeks before testing. To put that in practical terms, a single slice of wheat bread contains roughly 2 to 4 grams of gluten, so you’d need about two slices of bread per day (or the equivalent from pasta, crackers, or cereal) to hit that minimum. Historically, the recommendation was higher: 10 grams per day for 6 to 8 weeks. The current protocol uses a lower daily amount over a longer period, which is generally easier to tolerate.

If gluten causes you minimal or no symptoms during the challenge, your doctor may encourage you to eat even more, up to 10 grams per day or beyond, and to continue for longer. Eating more gluten increases the confidence that the test will catch celiac disease if it’s there. On the other hand, if you’re having severe symptoms like intense pain, persistent diarrhea, or vomiting, a shortened challenge of 6 to 12 weeks is considered acceptable.

The key is consistency. Eating gluten sporadically or in tiny amounts won’t reliably trigger the immune response these tests are designed to detect. Treat it as a daily commitment, not an occasional thing.

Preparing for Blood Tests

The primary blood test for celiac disease measures an antibody called tTG-IgA (tissue transglutaminase). Your doctor will likely also check your total IgA level at the same time. This matters because roughly 2 to 3 percent of people with celiac disease have an IgA deficiency, which means their bodies don’t produce enough of the antibody the test is looking for. If you’re one of those people, the standard test will come back negative regardless of whether you have celiac disease. Checking your total IgA level flags this issue so your doctor can order an alternative antibody test instead.

Beyond the gluten challenge, blood tests don’t require much special preparation. You typically don’t need to fast, though your doctor’s office may give you specific instructions. The blood draw itself is quick and routine.

Preparing for an Endoscopy and Biopsy

If your blood tests come back positive, or if there’s strong clinical suspicion despite negative blood work, your doctor may recommend an endoscopy with a biopsy of your small intestine. This is the most definitive test for celiac disease. The same gluten challenge rules apply: you need to have been eating at least 3 to 6 grams of gluten daily for 12 weeks before the procedure, since the biopsy looks for specific damage patterns in the intestinal lining that only appear when gluten is actively triggering an immune response.

For the procedure itself, you’ll need to fast (no food or drink) for several hours beforehand, typically overnight. You’ll receive sedation during the endoscopy, so you’ll need someone to drive you home afterward. The procedure itself takes about 15 to 20 minutes, and most people feel fine later that day, though mild throat soreness is common.

Medications That Can Skew Results

Certain medications can interfere with celiac test accuracy, and this is something many people don’t realize. Acid-suppressing medications like proton pump inhibitors (common brands include omeprazole and pantoprazole) and H2 blockers have been linked to false-negative blood results. One study found that people using these acid suppressors made up 55% of celiac patients who tested negative on blood work, compared to just 12% of those who tested positive. The likely reason is that reducing stomach acid interferes with how gluten proteins are broken down, making them less likely to trigger the detectable immune response.

If you’re taking acid-suppressing medication, don’t stop it on your own, but do tell your doctor before testing. They can factor this into how they interpret your results or adjust the testing approach.

Genetic Testing: The Exception

There is one type of test that doesn’t require you to eat gluten at all. Genetic testing looks for two gene variants, called HLA-DQ2.5 and HLA-DQ8, that are present in nearly all people with celiac disease. This test can be done at any time regardless of your diet, because it’s reading your DNA, not measuring an immune response.

The catch is that genetic testing can only rule celiac disease out, not confirm it. If you don’t carry either gene variant, you are very unlikely to have or ever develop celiac disease. But carrying one or both genes doesn’t mean you have it. About 30 to 40% of the general population carries these genes, and most of them never develop celiac disease. Genetic testing is most useful when you’ve already been gluten-free for a long time and want to know whether a full gluten challenge is even worth doing.

What If Celiac Tests Are Negative

If all your celiac tests come back negative but you still react to gluten, you may have non-celiac gluten sensitivity. This is a real condition, but it’s much harder to diagnose because there’s no reliable blood test or biopsy finding for it. The gold standard for diagnosis involves a blinded challenge where you consume gluten and a placebo at different times without knowing which is which, then track your symptoms. In practice, this protocol is time-consuming and rarely done outside of research settings.

Most doctors diagnose non-celiac gluten sensitivity through a process of elimination: celiac disease is ruled out, wheat allergy is ruled out, and your symptoms consistently improve on a gluten-free diet and return when gluten is reintroduced. If this is the path you’re on, the most important thing you can do during the testing phase is to complete the celiac evaluation first, while you’re still eating gluten. Once celiac disease is excluded, you and your doctor can explore gluten sensitivity without worrying about a missed diagnosis.

A Practical Checklist

  • Don’t go gluten-free before testing. If you already have, talk to your doctor about doing a gluten challenge before any antibody or biopsy testing.
  • Eat at least 3 to 6 grams of gluten daily (roughly two slices of wheat bread) for a minimum of 12 weeks before blood tests or biopsy.
  • Tell your doctor about all medications, especially acid reducers, which can cause false-negative results.
  • Ask about total IgA testing alongside the standard celiac antibody panel, so an IgA deficiency doesn’t lead to a missed diagnosis.
  • Consider genetic testing first if you’ve been gluten-free for a long time and want to know if a gluten challenge is necessary.
  • Plan for follow-up at 4 to 6 weeks into your gluten challenge, so your doctor can adjust the duration or amount based on how you’re feeling.