Science Reveals How Not to Spill Your Coffee When Walking

how to keep from spilling
(Image credit: H.C. Mayer and R. Krechetnikov)

Ever wondered why it's so hard to walk with a cup of coffee without spilling? It just so happens that the human stride has almost exactly the right frequency to drive the natural oscillations of coffee, when the fluid is in a typically sized coffee mug. New research shows that the properties of mugs, legs and liquid conspire to cause spills, most often at some point between your seventh and tenth step.

So says a pair of fluid physicists at the University of California at Santa Barbara (UCSB). They investigated the science of sloshing in a new study published in the journal Physical Review Letters E, and calculated the natural frequency at which coffee sloshes back and forth when held in mugs of a variety of sizes, from a dainty espresso cup to a cappuccino behemoth. They found that a normal human gait moves at nearly the same frequency, so each step amplifies the coffee's heave-ho motion. Stumbling or changing pace — common occurrences when you're low on caffeine — make matters worse by causing chaos in your cup, increasing the chance of a splash over the rim. 

Latest Videos From
Natalie Wolchover

Natalie Wolchover was a staff writer for Live Science from 2010 to 2012 and is currently a senior physics writer and editor for Quanta Magazine. She holds a bachelor's degree in physics from Tufts University and has studied physics at the University of California, Berkeley. Along with the staff of Quanta, Wolchover won the 2022 Pulitzer Prize for explanatory writing for her work on the building of the James Webb Space Telescope. Her work has also appeared in the The Best American Science and Nature Writing and The Best Writing on Mathematics, Nature, The New Yorker and Popular Science. She was the 2016 winner of the  Evert Clark/Seth Payne Award, an annual prize for young science journalists, as well as the winner of the 2017 Science Communication Award for the American Institute of Physics.