The line between a good smell and a bad smell is far thinner than most people realize. Many odors that are “supposed” to be unpleasant can trigger pleasure, curiosity, or even craving, and the reasons range from molecular chemistry to deep wiring in your brain. Whether you secretly enjoy the smell of gasoline, find comfort in your own body odor, or can’t stop sniffing a pungent cheese, there are real biological and psychological explanations for why this happens.
The Same Molecule Can Smell Wonderful or Terrible
One of the most surprising facts about smell is that a single chemical compound can register as either pleasant or disgusting depending on its concentration. Indole, for example, is a molecule found in both jasmine flowers and human feces. At the trace levels present in flower petals and perfumes, it smells rich and floral. Concentrated in waste, it becomes the smell you’d expect. Researchers studying honey found that indole at levels between 132 and 414 micrograms per kilogram was responsible for what tasters described as a “fecal” aroma defect, while the same compound at lower concentrations contributed pleasant depth to floral scents.
A closely related compound called skatole follows the same pattern. It’s a primary source of the smell of manure, detectable at extraordinarily low concentrations in the air. Yet skatole also occurs naturally in jasmine and is deliberately used in perfumes and essential oils. So when you lean into a bouquet of jasmine and think it smells incredible, part of what you’re enjoying is, chemically speaking, the same substance that makes a barnyard smell like a barnyard. Your nose doesn’t inherently label these molecules as “good” or “bad.” It responds to them differently based on context and dose.
Your Genes Shape What Smells Good to You
Not everyone perceives the same molecule the same way. Androstenone, a compound found in sweat and cooked pork, is a striking example. Some people describe it as smelling like urine or stale sweat. Others perceive the exact same molecule as sweet, almost like vanilla. The difference comes down to a single smell receptor gene called OR7D4. People who carry two copies of the most common version of this gene are sensitive to androstenone and tend to find it unpleasant. People with at least one copy of a variant version, which contains two small mutations, have a diminished response to the compound and are far less bothered by it.
A more familiar example is cilantro. Anywhere from 3% to 21% of people perceive cilantro as tasting and smelling like soap, thanks to variations in a gene called OR6A2. For everyone else, it smells fresh and citrusy. These genetic differences mean that what counts as a “bad” smell is partly personal. A scent you find oddly appealing might genuinely register differently in your nose than it does in someone else’s.
Smell Has a Direct Line to Emotion and Memory
Your sense of smell is wired to your brain differently than any other sense. Signals from your nose travel to the olfactory bulb, which connects directly to two brain structures deeply involved in emotion and memory: the amygdala and the hippocampus. No other sense has such a short, direct pathway to these regions. Vision and hearing, by contrast, pass through several relay stations before reaching emotional processing areas.
This architecture is why a whiff of something can instantly transport you to a specific moment in your past, complete with the feelings you had at the time. It also explains why a smell that “should” be unpleasant can feel good if it’s linked to a positive memory. The smell of diesel exhaust might be comforting because it reminds you of riding on your grandfather’s tractor. The chemical smell of a swimming pool might feel exciting because it’s connected to childhood summers. Your brain isn’t evaluating the chemistry of the odor in isolation. It’s layering emotional history on top of the raw sensory signal, and the emotional layer often wins.
The Thrill of Controlled Disgust
Psychologist Paul Rozin coined the term “benign masochism” to describe a peculiar human tendency: we enjoy negative sensations when we know we’re safe. This is the same impulse that makes people seek out horror movies, painfully spicy food, and sour candy. With smell, it works the same way. Sniffing something foul on purpose, like a carton of milk you suspect has gone bad, produces a small spike of revulsion that your brain quickly recognizes as non-threatening. That gap between the body’s alarm response and the mind’s knowledge that nothing is actually wrong creates a form of pleasure. It’s a feeling of mastery, your mind overriding your body’s defensive reaction.
Rozin’s research found that for many people, the preferred intensity of these experiences sits just below the threshold of what they genuinely can’t tolerate. You’ll sniff the questionable milk, but you probably won’t drink it. You’ll take a second whiff of a strong cheese, but you’ll pull back before it becomes overwhelming. The enjoyment depends on the “protective frame” of knowing you’re in control and nothing bad is actually happening to you.
Why Gasoline and Markers Smell Appealing
Gasoline is one of the most commonly cited “bad” smells that people secretly enjoy. The pleasant quality comes partly from volatile organic compounds like toluene and xylene, which are aromatic hydrocarbons naturally present in gasoline blends. These compounds are rapidly absorbed through inhalation and interact with brain chemistry, affecting the production and breakdown of signaling chemicals including those in the same family as dopamine and serotonin. In other words, a brief whiff of gasoline can produce a subtle neurochemical shift that your brain interprets as mildly pleasant. This same mechanism is, unfortunately, what makes gasoline sniffing addictive in some populations, where it’s used as a cheap means of mood alteration. There’s a big difference between catching a pleasant whiff at the pump and deliberately inhaling fumes, which causes serious neurological damage.
Permanent markers, fresh paint, and nail polish remover tap into similar pathways. The solvents in these products are volatile enough to reach your brain quickly, producing a brief sensory experience that many people find oddly satisfying even though they’d describe the smell as “chemical” or “harsh.”
Body Odor and Biological Compatibility
Finding someone’s natural scent attractive, or finding your own body odor oddly satisfying, has a biological basis rooted in the immune system. Your body produces a unique scent signature influenced by a set of genes called the major histocompatibility complex (MHC). These genes control how your immune system identifies threats, and they also shape the mix of peptides released in your sweat, skin oils, and other bodily fluids.
These peptides can activate smell-processing neurons even at very low concentrations. Each individual neuron responds to one specific type of MHC peptide, and the brain processes these signals not as a detailed chemical analysis but as a broad sense of “self” versus “nonself.” Research in animals has shown that individuals tend to prefer the scent of others whose MHC genes are different from their own, which would theoretically produce offspring with more diverse, and therefore stronger, immune systems. In humans, the evidence is more nuanced, but the basic mechanism exists: your brain is quietly evaluating the immune compatibility of people around you through their smell, and “compatible” scents register as more attractive.
This is also part of why your own smell can be comforting rather than offensive. Your brain recognizes your own scent signature as “self,” which activates familiarity and safety signals rather than disgust.
When Pleasant Smells Turn Foul
The reverse phenomenon, where previously good smells suddenly become repulsive, also reveals how flexible smell perception really is. Parosmia, a condition most commonly triggered by viral infections including COVID-19, causes familiar pleasant odors to smell rotten, burnt, or chemical. Coffee is one of the most frequently reported triggers.
The leading explanation involves damage to olfactory neurons followed by imperfect regrowth. After a virus injures the nerve cells in your nose, they regenerate, but the new wiring doesn’t always match the original map. Axons that should connect to one set of targets in the brain end up projecting to the wrong ones, so an odor molecule that used to activate “pleasant coffee” pathways now activates “foul chemical” pathways instead. Researchers have also found that parosmia may involve incomplete detection: only certain volatile components of a complex smell like coffee are picked up, and without the balancing presence of other components, those isolated molecules smell terrible. Brain imaging of people with parosmia shows stronger activation in regions associated with disgust and heightened attention, confirming that the experience isn’t imagined. The brain is genuinely processing these familiar smells as threatening.
Parosmia illustrates the same core principle from the opposite direction. Whether a smell is “good” or “bad” isn’t an inherent property of the molecule. It’s constructed by your brain based on concentration, context, memory, genetics, and the physical integrity of your olfactory wiring.

