The short answer
Lactose intolerance vs dairy allergy comes down to two different systems: intolerance is a shortage of the lactase enzyme that digests milk sugar, causing gas, bloating, and diarrhea hours later, while a dairy allergy is an immune reaction to milk protein that can cause hives, swelling, or anaphylaxis within minutes.
Why "dairy bothers me" is ambiguous
"Dairy bothers me" is one of the most common things people say about their gut, and it hides two completely different problems. One is a digestive shortfall. The other is an immune response. They share the same trigger food, which is why people blur them together, but they involve different molecules in milk, different organs, and very different levels of risk.
The two molecules matter here. Milk contains lactose, a sugar, and it contains proteins, mainly casein and whey[3]. Lactose intolerance is a problem with the sugar. A dairy allergy is a problem with the protein. Knowing which molecule your body reacts to is the whole game, because the management splits from there.
Mechanism: enzyme shortfall vs immune reaction
Lactose intolerance happens when the small intestine does not make enough lactase, the enzyme that splits lactose into glucose and galactose so they can be absorbed. Without enough lactase, lactose passes undigested into the colon, where gut bacteria ferment it, pulling in water and producing gas[6]. Lactase production is high in infancy and declines in most people after early childhood, which is why intolerance tends to show up later in life[1].
A dairy allergy is a different machine entirely. The immune system misreads milk protein as a threat and, in the most common form, produces IgE antibodies against it. On the next exposure, those antibodies trigger the release of histamine and other chemicals from immune cells, which is what drives the allergic symptoms[2]. Casein and whey proteins are the usual targets, and casein in particular survives heat and digestion well, which is why baking does not reliably make milk safe for an allergic person[3].
There is also a slower, non-IgE form of milk allergy that does not involve those antibodies and can take up to 48 hours to show symptoms, which makes it easy to mistake for an intolerance[4].
Symptoms and timing: the fastest tell
Timing is the most useful clue you have at home. Lactose intolerance symptoms are confined to the gut and arrive a few hours after a dairy-heavy meal: bloating, gas, cramps, and diarrhea as the colon deals with the undigested sugar[6].
An IgE dairy allergy moves fast. Reactions usually begin within minutes of swallowing milk and can spread well beyond the gut to hives, swelling of the lips or throat, wheezing, and in severe cases anaphylaxis, a whole-body reaction that can be life-threatening[4].
That difference is the safety line. Lactose intolerance is uncomfortable but not dangerous. A dairy allergy can be. If dairy reliably gives you gas and loose stools a few hours later, that reads as intolerance. If even a small amount of milk causes your skin, breathing, or throat to react quickly, that reads as allergy and needs an allergist, not a diet experiment.
This timing logic applies across many food reactions beyond dairy. The same approach of mapping when symptoms hit relative to the meal is what bloating timing and broader food trigger identification rely on.
Who gets which, and when
The two conditions also tend to appear at different stages of life. Milk allergy is mostly a problem of infants and young children, and a large share outgrow it as the immune system matures[4]. Cow's milk protein allergy is among the most common food allergies in early childhood, then becomes less prevalent in adults[2].
Lactose intolerance runs the other direction. Because lactase activity falls after weaning in most of the world's population, intolerance commonly emerges in later childhood or adulthood, and the proportion of people affected varies widely by genetic ancestry[1]. So an adult who suddenly cannot handle milk is far more likely to have developing lactose intolerance than a new milk allergy, while a reacting infant is the reverse.
How to tell which one is yours
Start with three questions: how fast do symptoms come on, where in the body do they show up, and does the dose matter. Quick, beyond-the-gut symptoms after tiny amounts point to allergy. Gradual, gut-only symptoms that scale with how much dairy you ate point to intolerance.
Then confirm with the right test. Lactose intolerance is checked with a hydrogen breath test, where you drink a lactose dose and your breath is measured for the hydrogen that fermenting bacteria produce[5]. A dairy allergy is checked by an allergist with skin prick or milk-specific IgE blood testing, often followed by a supervised oral challenge, because skin and blood tests show sensitization rather than confirming the allergy on their own[2].
Keeping a written log of what you ate, how much dairy it contained, and exactly when symptoms started gives your clinician far more to work with than "dairy bothers me." That log can be on paper or automated through tools like Aloe AI or a generic symptom-tracking app, which line up meal composition against symptom timing so the gut-only-and-slow versus fast-and-everywhere pattern becomes obvious. The point is the pattern, not the tool. For a structured way to run this, see how to track food and feeling.
When to see a professional
See a doctor promptly if dairy ever causes hives, swelling of the lips, tongue, or throat, wheezing, difficulty breathing, vomiting, or faintness, especially within minutes of eating. These point toward a true allergy, which carries a risk of anaphylaxis and needs allergist evaluation and possibly an epinephrine prescription. Also get checked if a baby or young child reacts to milk, if you have unexplained weight loss, blood in the stool, or symptoms that do not fit either pattern. Lactose intolerance itself is not dangerous, but the symptoms overlap with celiac disease and inflammatory bowel disease, so persistent gut trouble deserves a proper workup rather than indefinite self-elimination.