Antihistamines are medications that block the effects of histamine, a chemical your body produces during allergic reactions and other immune responses. They’re one of the most widely used over-the-counter drug classes in the world, treating everything from seasonal allergies and hives to acid reflux and motion sickness. The term covers two distinct families of drugs that work on different parts of the body, which is why the same word applies to both your allergy pill and your heartburn tablet.
How Histamine Works in Your Body
Histamine is a signaling molecule stored mainly in immune cells called mast cells. When your body detects something it perceives as a threat (pollen, pet dander, certain foods), these cells release histamine into surrounding tissue. Histamine then latches onto receptors on nearby cells, triggering the cascade of symptoms you recognize as an allergic reaction: swelling, itching, a runny nose, watery eyes.
Two receptor types matter most. H1 receptors are found throughout your airways, skin, and blood vessels. When histamine hits these receptors, it causes smooth muscles in your airways to tighten, blood vessels to widen and leak fluid, and nerve endings to itch. This is what produces sneezing, congestion, hives, and swelling. H2 receptors are concentrated in the lining of your stomach, where histamine signals cells to pump out gastric acid. That’s a normal digestive function, but when it goes into overdrive, you get heartburn and ulcers.
The Two Types of Antihistamines
Because H1 and H2 receptors do very different jobs, antihistamines that target them are used for completely different conditions.
H1 Antihistamines (for Allergies)
These are the drugs most people picture when they hear “antihistamine.” They block H1 receptors to relieve allergy symptoms like sneezing, itchy eyes, runny nose, and hives. The FDA has approved them for hay fever, allergic pink eye, allergic skin rashes, sinus infections, hives, motion sickness, and nausea.
H2 Blockers (for Stomach Acid)
H2 blockers target the receptors in your stomach lining that trigger acid production. After you eat, your body releases histamine that binds to H2 receptors and tells your stomach to make acid. H2 blockers interrupt that signal. They’re used for acid reflux, stomach ulcers, duodenal ulcers, and rare conditions like Zollinger-Ellison syndrome where tumors cause extreme acid overproduction. These are the medications you’d reach for when you have heartburn, not when you’re sneezing.
First-Generation vs. Second-Generation Allergy Antihistamines
Within the H1 category, there’s an important split. First-generation antihistamines (like diphenhydramine, the active ingredient in Benadryl) were developed decades ago. They work well against allergy symptoms, but they cross the blood-brain barrier, a protective layer that normally keeps drugs out of your brain. Once inside, they block histamine receptors in the hypothalamus, a brain region that helps regulate wakefulness. The result: drowsiness, sometimes significant enough that some of these drugs are marketed as sleep aids.
First-generation antihistamines also block a second type of chemical messenger beyond histamine, called muscarinic receptors. This is what causes the “drying” side effects: dry mouth, constipation, blurred vision, and difficulty urinating. At higher doses, they can cause dizziness, ringing in the ears, and even delirium.
Second-generation antihistamines (like cetirizine, loratadine, and fexofenadine) were designed to stay out of the brain. They don’t cross the blood-brain barrier, so they cause minimal drowsiness. They also focus more narrowly on histamine receptors without the extra muscarinic blocking, which means far fewer side effects overall. For most people with seasonal or year-round allergies, second-generation options provide the same symptom relief without the mental fog.
Common Uses Beyond Allergies
Antihistamines treat a surprisingly wide range of conditions. The allergy applications are straightforward: hay fever, allergic skin reactions like eczema flares, hives, and swelling from allergic reactions (angioedema). But they extend well beyond that.
First-generation antihistamines are effective for motion sickness and nausea because of their action in the brain. Their sedating properties have made them popular as over-the-counter sleep aids, though this is generally a short-term solution rather than a treatment for chronic insomnia. Some are also used to manage itching from non-allergic causes, like certain skin conditions or insect bites, since histamine plays a role in the itch signal regardless of whether an allergy is involved.
On the stomach acid side, H2 blockers serve as a step between antacids (which neutralize acid already present) and proton pump inhibitors (which shut down acid production more aggressively). They’re often recommended for occasional heartburn or as maintenance therapy to prevent ulcers from returning.
Side Effects to Be Aware Of
Second-generation antihistamines are well tolerated by most people. Some users experience mild drowsiness with cetirizine, but it’s far less pronounced than with first-generation drugs.
First-generation antihistamines carry a heavier side-effect profile. Sedation and cognitive impairment are the most common complaints. The anticholinergic effects (dry mouth, constipation, blurred vision, urinary retention) can range from mildly annoying to genuinely problematic depending on the dose and the person. These effects are particularly concerning for older adults, where first-generation antihistamines increase the risk of falls, confusion, and cognitive decline. Many geriatric prescribing guidelines now recommend avoiding diphenhydramine and similar drugs in people over 65.
People with narrow-angle glaucoma or a predisposition to it should be cautious with first-generation antihistamines. The anticholinergic properties of these drugs can trigger a sudden spike in eye pressure by causing the pupil to dilate or the lens to swell, potentially leading to an acute glaucoma attack. Risk factors for this include advanced age, female sex, family history, farsightedness, and Asian or Inuit ethnicity. If you’ve been told you have narrow angles in your eyes, flag this before taking any first-generation antihistamine.
Choosing the Right Antihistamine
For everyday allergy relief, second-generation antihistamines are the standard recommendation. They last 24 hours per dose, don’t impair your thinking, and are available without a prescription. The three most common options, cetirizine, loratadine, and fexofenadine, are broadly similar in effectiveness, though individual responses vary. If one doesn’t control your symptoms well, it’s reasonable to try another.
First-generation antihistamines still have a role when sedation is actually desirable (like managing itching that keeps you awake at night) or for motion sickness, where the brain-level action is part of the benefit. They typically work faster but wear off in four to six hours, requiring multiple doses throughout the day.
For heartburn or stomach ulcers, H2 blockers like famotidine are the relevant choice. They work within an hour and last up to 12 hours. They’re a different drug class entirely from allergy antihistamines, even though both technically block histamine, so taking an allergy pill won’t help your acid reflux and vice versa.