Cooking onions does not reliably reduce acidity or reflux, and no cooking method removes the traits that make onions a common trigger. Heat softens the vegetable's texture and alters some sulfur compounds, but it cannot change the onion's intrinsic acidity or its ability to loosen the valve that keeps stomach contents down. For most people with reflux, the more accurate question is whether a particular preparation, portion, and timing make symptoms more or less likely, because the evidence points to those variables rather than to cooking itself.
Onions occupy an unusual place in reflux advice. They are staples in nearly every cuisine, they appear on countless "avoid" lists, and they are frequently described as acid-forming even though their measured pH is only mildly acidic. Cooking them is often presented as a fix, a way to "mellow" the vegetable so it stops provoking symptoms. That advice sounds plausible and is repeated widely, but it rests on assumptions about heat, acid, and the esophagus that do not survive close examination. This explainer works through the actual mechanisms, the numbers behind them, and the practical implications for someone trying to eat onions without paying for it later.
The chemistry of the onion bulb
A raw onion contains roughly 89 percent water, about 9 percent carbohydrate, and small amounts of protein and fiber. Its measured pH typically falls between 5.5 and 6.5, which places it on the mildly acidic side of neutral, comparable to milk or a baked potato. The dominant acids are weak organic acids, mainly citric, malic, and a smaller share of oxalic and succinic acid. These are the same acids found in fruit, and they contribute far less free hydrogen ions than the pH number alone might suggest, because weak acids dissociate only partially in solution.
The sulfur chemistry is what makes onions distinctive. When cells are ruptured by chopping or crushing, an enzyme called alliinase converts odorless precursor compounds into sulfenic acids, which rearrange into thiosulfinates and then into the volatile sulfides responsible for tears and pungency. A second family, the lachrymatory factor, forms only in the onion genus and is the direct irritant behind crying. These sulfur volatiles are not acids. They are reactive, membrane-active molecules, and that distinction matters for anyone trying to understand why onions provoke symptoms.
Cooking changes this sulfur chemistry more than it changes acidity. Heat denatures alliinase, so the enzyme cannot generate new irritants once the onion is hot, though any compounds formed before heating remain. Heat also drives off the most volatile sulfides and converts some thiosulfinates into less reactive disulfides and trisulfides with different aromas. This is why cooked onion smells sweet rather than sharp. What heat does not do is neutralize acid. A boiled onion and a raw onion end up with broadly similar pH, because the weak organic acids are not volatile and are not destroyed at cooking temperatures.
Why onions provoke reflux symptoms
Reflux symptoms arise when stomach contents move upward past the lower esophageal sphincter, a ring of muscle that normally stays closed between swallows. Anything that relaxes that sphincter, increases abdominal pressure, or irritates the esophageal lining can produce heartburn. Onions have been studied for their effect on the sphincter specifically, and the findings are more nuanced than the folklore suggests.
One classic study measured lower esophageal sphincter pressure after a standardized onion meal and found a measurable reduction compared with a control meal, alongside more reflux episodes in some participants. The effect was not universal and not large, but it was real in the group studied. The mechanism is thought to involve sulfur-containing compounds and possibly the fermentable carbohydrate content acting on the sphincter muscle or through gut hormone signaling. The finding has been replicated inconsistently, which is typical for dietary trigger research, but it established onions as a plausible physiological trigger rather than a purely anecdotal one.
The esophageal irritation pathway is separate. Refluxed stomach contents contain hydrochloric acid at a pH near 1.5 to 3.5, plus pepsin, an enzyme that digests protein and remains active in acidic conditions. When that mixture reaches the esophagus, it damages the mucosa. Onions do not add meaningfully to this acid load. Their own weak acids are trivial compared with gastric acid, and they are largely buffered by food in the stomach. The irritation people attribute to onion acidity is more likely mechanical and chemical irritation from sulfur volatiles and from the reflux of gastric contents themselves.
Fermentable carbohydrates add a third pathway. Onions are rich in fructans, a type of fermentable fiber that gut bacteria metabolize in the colon. In people with irritable bowel syndrome or a sensitive gut, this fermentation produces gas and distension, which raises abdominal pressure and can push stomach contents upward. That mechanism operates downstream of the stomach, but it can absolutely worsen reflux symptoms in susceptible individuals. Cooking does not remove fructans, and in fact concentrating onions by caramelizing them increases the fructan dose per bite.
A counterintuitive detail is worth stating plainly: the burning some people feel after eating onions may have little to do with acid at all. Sulfur volatiles are capable of activating pain-sensing nerves in the esophagus directly, independent of pH. This is the same reason a raw onion can make your eyes water without any acid touching them. It also explains why antacids sometimes fail to relieve onion-related discomfort.
Quantifying what cooking changes
To judge whether cooking helps, it helps to separate what is measurable from what is assumed. The table below summarizes the major variables.
| Variable | Raw onion | Cooked onion | Practical meaning |
|---|---|---|---|
| pH | 5.5 to 6.5 | Roughly similar, 5.5 to 6.5 | Cooking does not neutralize acid |
| Sulfur volatiles | High, enzyme-generated | Lower, enzyme denatured | Pungency falls, irritation may fall |
| Fructans | Present | Present, often more concentrated | Fermentation trigger persists |
| Water content | About 89 percent | Lower after cooking | Texture softens, dose per bite rises |
| Sphincter effect | Measured in studies | Not well studied | Evidence is thin for cooked forms |
| Acid load to stomach | Small | Small | Neither is a major acid source |
The pH column is the one that most directly contradicts popular claims. Citric and malic acid are not destroyed by boiling, baking, or sautéing at normal home temperatures. Their concentration can rise slightly as water evaporates, which would nudge pH down, not up. There is no kitchen technique that turns an acidic vegetable alkaline. The only way to reduce the acid content meaningfully is to leach it into cooking water, and even then the loss is modest because the acids are distributed throughout the cell structure.
The sulfur column is where cooking genuinely helps. Denaturing alliinase stops new irritant formation, and volatilization removes a portion of what was already there. Longer cooking and higher heat reduce pungency further, which is why a long-caramelized onion tastes sweet and mild while a quickly sautéed one retains bite. If sulfur volatiles are the trigger for a given person, cooking should help, and the effect should scale with cooking time.
The fructan column is where cooking can backfire. Fructans are water-soluble and heat-stable. Boiling leaches some into the cooking water, but caramelizing and roasting concentrate them as water leaves. A person whose symptoms are driven by fermentation may find that a large serving of sweet caramelized onions is worse than a small amount of raw diced onion, even though the cooked version is milder on the tongue. This is exactly the kind of trade-off that a simple "cook your onions" rule ignores.
Edge cases that change the answer
The person matters as much as the preparation. Reflux is not one condition, and the triggers differ across its subtypes. Someone with predominantly mechanical reflux, driven by a weak sphincter or a hiatal hernia, may respond to sphincter-relaxing foods. Someone with functional heartburn and a hypersensitive esophagus may respond to direct nerve irritation. Someone with overlapping irritable bowel syndrome may respond to fermentation. The same onion preparation can help one and hurt another.
Gastroesophageal reflux disease severity matters too. In erosive esophagitis, the esophageal lining is already damaged, and any irritant is more likely to produce symptoms. In mild, non-erosive reflux, dietary triggers are often the dominant variable. A person with well-controlled symptoms may tolerate onions fine, while someone in a flare may not, and that difference can shift week to week.
Preparation style introduces further variation. Raw onion in a salad delivers intact alliinase and the full volatile profile. Quick sautéing reduces volatiles moderately. Long caramelizing reduces volatiles substantially but concentrates sugars and fructans. Pickling introduces acetic acid and can lower pH further, which some people find irritating and others find tolerable. Grilling adds char compounds that are unrelated to reflux but relevant to other health considerations.
Portion is arguably the largest single variable and the least discussed. A tablespoon of diced onion in a sauce is not the same exposure as a whole caramelized onion on a burger. Most dietary trigger studies use substantial servings, often a full onion or more, and the effects may not extrapolate to the small amounts used for flavor. This is a genuine limitation of the literature, not a reason to dismiss it, but it means the practical threshold for most people is likely higher than the "any onion at all" framing suggests.
There are red-flag symptoms that should prompt medical evaluation rather than dietary experimentation:
Difficulty or pain when swallowing Unexplained weight loss alongside reflux symptoms Vomiting blood or black, tarry stools Chest pain that radiates to the arm, jaw, or back Symptoms that persist despite weeks of dietary and lifestyle changes New reflux symptoms after age 60
These are not onion problems. They are reasons to see a clinician.
Misconceptions worth correcting
The first misconception is that onions are "acid-forming" in a way that matters for reflux. The acid-ash hypothesis, which sorts foods by the residue they leave after metabolism, is about long-term bone and kidney load, not about immediate esophageal irritation. Onions leave an alkaline ash residue despite their mildly acidic pH, which is why they are sometimes listed as alkaline-forming. Neither classification predicts reflux symptoms. The relevant chemistry is local and immediate, not systemic.
The second misconception is that cooking "removes" acid. It does not, as the pH data show. What cooking removes is pungency. People who feel better after switching to cooked onions are likely responding to reduced sulfur volatiles, not to reduced acidity. That distinction matters because it points toward the right adjustment: cook longer, use less, or switch varieties, rather than assuming the acid is gone.
The third misconception is that sweet onions are safer. Sweet varieties like Vidalia and Walla Walla have lower pungency because they contain less of the precursor compounds that generate irritants, and they also tend to have lower fructan content. That combination can make them easier to tolerate for both sulfur-sensitive and fermentation-sensitive people. But they are still acidic and still contain fructans, so they are not a free pass.
A professional caveat deserves emphasis here. Dietary trigger research in reflux is methodologically difficult. Symptoms are subjective, placebo responses are large, and blinding is nearly impossible when the intervention is a visible food. Most studies are small, and results vary across populations. The honest position is that onions are a plausible trigger for some people and an irrelevant one for others, and that individual testing is more informative than population averages. Anyone claiming a definitive answer is overstating the evidence.
Practical steps and thresholds
The practical approach is empirical rather than doctrinal. Start by identifying whether onions are actually a trigger for you, rather than assuming they are because a list said so. Remove onions entirely for two weeks, then reintroduce them in a controlled sequence and track symptoms. This is the same logic used in elimination diets for food intolerance, and it is more reliable than guesswork.
When reintroducing, change one variable at a time. Try a small amount of cooked onion first, roughly one to two tablespoons, and observe for 24 hours. If that is tolerated, increase the portion before changing the preparation. If cooked onion is tolerated but raw is not, the trigger is likely sulfur volatiles and you can simply cook longer. If both provoke symptoms at small doses, the trigger may be fructans or a sphincter effect, and portion control becomes the main lever.
Cooking time is a usable threshold. Sautéing for 5 to 10 minutes reduces volatiles moderately. Cooking for 30 minutes or more, until the onion is soft and sweet, reduces them substantially. If you are sensitive to pungency, longer is better. If you are sensitive to fermentation, shorter cooking with smaller portions may be preferable, because long cooking concentrates fructans.
Pairing and timing matter. Onions eaten on an empty stomach are more likely to provoke symptoms than onions eaten as part of a mixed meal, because food buffers gastric acid and dilutes the onion's compounds. Eating onions close to bedtime increases the chance of nocturnal reflux, since lying down removes gravity's assistance in keeping stomach contents where they belong. A three-hour gap between the last onion-containing meal and lying down is a reasonable target.
Variety selection is a legitimate lever. Sweeter varieties have lower precursor content and lower fructan levels, and they are widely available for much of the year. Red onions tend to be higher in pungency and in quercetin, a flavonoid that is being studied for other health effects but is not relevant to reflux. Shallots and scallions are milder relatives and may be better tolerated, though scallions are notable for high fructan content in the white portion.
If symptoms persist despite these adjustments, the next step is not more dietary restriction but clinical evaluation. Reflux that does not respond to lifestyle measures may warrant assessment for erosive disease or other causes, and dietary elimination carried too far can compromise nutrition. Onions provide fiber, potassium, vitamin C, and beneficial sulfur compounds, and removing them permanently based on a list rather than personal experience is a poor trade.
What the evidence cannot settle
The central limitation is that no study has directly compared raw and cooked onion in a controlled trial with reflux symptoms as the primary outcome. The mechanistic reasoning is sound, the anecdotal reports are common, and the individual variables are measurable, but the specific question of whether cooking reduces reflux has not been answered with high-quality evidence. Anyone who tells you otherwise is extrapolating.
A second limitation is that reflux triggers are heterogeneous and unstable. A food that provokes symptoms during a flare may be tolerated during remission, and the same food may behave differently depending on meal size, timing, and stress. This variability makes population-level advice inherently imprecise, and it is why the practical steps above emphasize self-testing rather than universal rules.
A third limitation concerns the sulfur compounds themselves. The volatile profile of cooked onion is complex and varies with variety, cooking method, and temperature, and the specific compounds responsible for any sphincter effect have not been isolated in human studies. The mechanism is plausible but not pinned down, and the absence of a identified culprit compound means the advice to "cook longer" is a reasonable heuristic rather than a targeted intervention.
What can be said with confidence is narrower than the folklore and more useful than a blanket prohibition. Cooking onions reduces pungency and may reduce irritation for people whose trigger is sulfur volatiles. It does not reduce acidity, and it does not eliminate fructans, so people whose trigger is fermentation or sphincter relaxation may see little benefit or even worsening with certain preparations. The variable that matters most is the individual, and the most reliable way to find your own threshold is a structured elimination and reintroduction rather than a rule borrowed from a list.