Josh Méndez was slicing through his tenth burned pickle when he realized science still didn’t know why the thing was glowing. At Portland State University, the electrical engineering professor had launched a one-man quest to solve a decades-old classroom mystery: why does a pickle, when plugged into an electrical circuit, light up at one end with a bright orange flame?

It’s a classic science demo—simple, dramatic, and a little dangerous. Stick two metal forks into a pickle, connect them to a power source, and within seconds, one end bursts into a vivid orange glow. For years, teachers have used it to show how electricity can produce light. But no one fully understood the physics behind it—until now.

Pickles are soaked in salty brine, making them excellent conductors of electricity. When current flows through, the liquid heats up, boils, and forms gas pockets. These pockets interrupt the current, causing the pickle to cool and the brine to rush back toward the electrode. That’s when a tiny spark jumps across—a zap like touching a doorknob after walking on carpet. Some scientists thought this spark alone caused the glow. But that didn’t explain why only one end lights up.

Another theory suggested hydrogen gas might be to blame. Water in the brine splits into hydrogen and oxygen through electrolysis. Hydrogen forms only at the negative electrode, which could explain the one-sided glow. The idea was that trapped hydrogen ignited from the heat, causing mini explosions inside the pickle. But Méndez found the real answer is a mix of both: the spark, not the heat, ignites the hydrogen gas.

“It’s just like why you don’t light a cigarette at a gas station,” Méndez said. “You’re producing a spark that ignites the gas.” That spark sets off tiny hydrogen bursts, creating the bright flash. And the color? That’s pure chemistry. The orange light comes from excited sodium ions in the salt—same reason street lamps glow orange. Use a different salt, like potassium chloride, and the glow would shift to purple or pink.

After testing more than 100 pickles, Méndez and his team are closing in on a full explanation. Their work blends physics, chemistry, and a dash of culinary curiosity. It’s not a high-tech discovery, but it solves a quirky mystery that’s puzzled classrooms for generations.

And now, every time a pickle lights up in a science lab, it’s not just a demo—it’s a tiny explosion powered by sparks, hydrogen, and the enduring joy of asking, “Wait, why does that happen?”