Key takeaway: Coffee spills because the rhythm of your steps rocks the mug close to the natural sloshing rhythm of the liquid inside, so each step pumps the wave higher. Physicists found it often spills within 7 to 10 steps. Filling less, starting slowly, watching your cup and holding it from the top all help.
You pour a perfect cup, take a few confident steps toward your desk, and there it goes: a brown splash over the rim, onto your hand, your sleeve, the floor. It feels like bad luck. It's actually physics.
Real scientists have filmed people walking with coffee, measured how the liquid moves and worked out why mugs are so good at spilling. They've also studied why foamy drinks slosh less and why a spilled drop dries into that dark little ring. Let's walk through it (carefully).
Why does coffee spill when you walk?
Because your walk and your mug are accidentally in sync.
In 2012, fluid dynamicists Hans Mayer and Rouslan Krechetnikov at UC Santa Barbara filmed a volunteer walking with a cup of coffee at different speeds and fill levels, with a sensor marking the exact moment of each spill (Mayer and Krechetnikov, 2012). Here's what they found:
- Liquid in a mug has its own rhythm. Like a playground swing, coffee rocks back and forth at a natural frequency set by the cup's size. For common cups, from espresso to cappuccino size, they calculated about 2.6 to 4.3 sloshes per second (Hz).
- Your steps shake the cup at a similar rhythm. The cup moved back and forth at almost exactly the pace of the walker's steps, about 1 to 2.5 Hz. That's below the sloshing rhythm, but close enough to cause trouble.
- Every step adds a little push. The forward motion and the tilting of your hand line up with that main back-and-forth slosh. Small pushes at the right time build a big wave, just like pushing a swing.
- The first steps matter most. Speeding up from a standstill tilts the surface right away, then each step amplifies that starting wave.
Their summary of the result is wonderfully relatable: coffee most often spilled after 4 to 5 meters (about 13 to 16 feet), or 7 to 10 steps of walking. That's roughly the trip from the coffee maker to the next room.
Why do mugs spill more than wine glasses?
Shape matters a lot.
A 2016 study by Jiwon Han, a student researcher at the Korean Minjok Leadership Academy, opened with a fun comparison: shake a half-full wine glass sideways at 4 Hz and the wine ripples calmly, but shake a cylindrical mug the same way and the liquid soon splashes and spills (Han, 2016).
Han measured how a hand-held mug actually moves and found the motion isn't one clean rhythm. It carries harmonics, faster "echo" vibrations layered on top of the main one. Even though the main walking rhythm sits away from the danger zone, the study found the second harmonic of the push that the cup exerts on the coffee was what set off the biggest spills.
Mayer and Krechetnikov saw something similar. Jittery, uneven motion (they called it "noise") carries faster vibrations that make spilling worse and can even start the coffee swirling (Mayer and Krechetnikov, 2012).
Does a fuller cup spill sooner?
Yes. In the UC Santa Barbara experiments, higher coffee levels spilled in fewer steps (Mayer and Krechetnikov, 2012). Less room between the surface and the rim means a smaller wave is enough to get over the top.
Walking speed mattered too. The faster the volunteer walked (the study tested about 0.5 to 2.5 meters per second), the bigger the starting acceleration and the sooner the spill. A hard start could spill coffee almost instantly.
| What the studies changed | What happened | Study |
|---|---|---|
| Fuller cup | Spilled in fewer steps | Mayer and Krechetnikov 2012 |
| Faster walking, bigger starting push | Spilled sooner; a hard start could spill almost at once | Mayer and Krechetnikov 2012 |
| Focusing on not spilling | More steps before a spill, with smoother cup motion | Mayer and Krechetnikov 2012 |
| Wine glass vs mug, shaken at 4 Hz | Wine rippled calmly; the mug's liquid splashed and spilled | Han 2016 |
| Holding the mug from the top | Suppressed the faster vibrations that drive sloshing | Han 2016 |
| A few layers of foam on top | Sloshing dropped sharply (about 10 times smaller waves in a lab cell) | Sauret 2015 |
Each study used its own setup, cups and liquids, so treat these as patterns, not guarantees.
Does watching your coffee help?
It does. When the volunteer walked "focused," trying not to spill, it took more steps before the coffee spilled than when walking "unfocused" (Mayer and Krechetnikov, 2012).
The researchers traced that to two things: focused walking had a lower starting acceleration, and the cup's motion had less jittery noise. Your regular stride didn't change much. You just smoothed out the extra wobble. They described walking with coffee as a "control problem," which is a very scientific way of saying your brain is quietly steering your mug.
What's the best way to hold a coffee mug?
According to Han's study, from the top. Instead of holding the handle, the paper tested gripping the mug from above, fingers spread around the rim in what it called a "claw-hand" posture (Han, 2016).
The idea: changing how your arm and hand hold the cup changes how motion travels into it. The top grip damped the faster vibrations that feed the sloshing wave, so the coffee stayed calmer. It looks a little odd, and it only makes sense when the mug isn't too hot to touch near the rim, but the physics is sound.
Why does foam stop coffee from sloshing?
If your latte seems calmer than your black coffee, there may be a reason.
Princeton engineers noticed that beer doesn't slosh as easily as water and decided to test foam in the lab. In a small shaken container, without foam the waves reached about 1 cm. Add just 5 layers of bubbles on top and the biggest waves shrank to about 1 mm, roughly a tenfold drop (Sauret et al., 2015). The bubbles rubbing along the container walls soak up the energy of the wave.
The study used a lab foam, not milk foam, so we can't promise your cappuccino is spill-proof. But it's the same principle, and it's one more reason to love a good foamy top. If you're curious about the foam on espresso, read what crema is made of.
Why do coffee spills dry into a ring?
So the coffee spilled. Now comes the second physics lesson: that dark ring it leaves behind.
University of Chicago physicists explained it in a 1997 Nature paper that literally starts with a spilled drop of coffee. As a drop dries, its edge gets stuck (pinned) to the surface. The edge evaporates fastest, so liquid flows outward from the middle to replace it, and that flow carries virtually all the coffee particles to the edge, where they pile up into a ring (Deegan et al., 1997). Their photo showed a 2-cm drop of coffee with 1% solids dried into a crisp ring.
Scientists now call this the coffee-ring effect, and it matters far beyond kitchen counters, in printing inks, coatings and lab tests. Later work showed how to beat it:
- Particle shape: Penn physicists found stretched, egg-shaped particles deposited evenly instead of forming a ring (Yunker et al., 2011).
- Surface tension flows: Michigan researchers showed rings also need inward flows driven by surface tension, called Marangoni flows, to be suppressed. In simple organic liquids, deposits gathered in the center instead (Hu and Larson, 2006).
- Whisky: Princeton researchers noticed a dried drop of whisky leaves a fairly even film, not a ring. They traced it to mixing flows from its alcohol-water blend and natural surface-active compounds, plus molecules that help particles stick to the glass (Kim et al., 2016).
| Drying drop | Typical pattern | Why | Study |
|---|---|---|---|
| Coffee | Dark ring at the edge | Pinned edge plus outward flow | Deegan 1997 |
| Water with egg-shaped particles | Even spread | Particles link up at the surface before reaching the edge | Yunker 2011 |
| Simple organic liquids | Deposit in the center | Inward Marangoni flow | Hu and Larson 2006 |
| Whisky | Fairly even film | Mixing flows plus particles that stick to the glass | Kim 2016 |
How do I carry coffee without spilling?
Here's a study-inspired game plan:
- Leave some room at the top. Fuller cups spilled in fewer steps, so stop pouring a little lower.
- Start slowly. The first push off sets the size of the wave. Ease into your walk instead of launching.
- Look at your cup. Focused walking smoothed out jitter and bought more steps before a spill.
- Try the top grip. Holding the mug from the rim calmed the sloshing in Han's tests, as long as the cup is comfortable to touch.
- Keep it steady and short. Spills most often happened after 7 to 10 steps, so for long trips a lid or a travel mug is your friend.
- Let it cool a bit first. A spill is far less dramatic when the coffee isn't scalding. Our guide to the best temperature to drink coffee found most people prefer about 140°F (60°C) anyway.
And if a drop does land on the counter, wipe it while it's wet, before the coffee-ring effect has time to do its thing.
What's in a cup of Edge?
I started Edge in St. Paul in 2020 because I wanted a coffee I could drink every day and feel good about. Pure Health Coffee is a Peruvian single-origin Arabica, medium roasted for notes of chocolate, caramel and roasted nuts. Worth every careful step from the kitchen to your desk. (If it still smells amazing on the way, here's why coffee smells so good.)
Every lot is tested by Eurofins, and our posted sample reports showed no detectable mycotoxins, including ochratoxin A below 1 ppb. You can read them on our lab results page and see what we test for on our mold-free coffee page. Results apply to the samples tested. Shipping is free on every order, always.
FAQ
Why does coffee spill when you walk? Your steps rock the mug at a rhythm close to the natural sloshing rhythm of the coffee inside, so each step pushes the wave a little higher. A UC Santa Barbara study found coffee most often spilled within 7 to 10 steps.
How do you carry coffee without spilling it? Fill the cup a bit less, start walking slowly, keep your eyes on the cup and walk smoothly. In experiments, fuller cups and faster starts spilled sooner, while focused walking delayed spills.
What is the best way to hold a coffee mug when walking? A 2016 study found that holding the mug from the top, fingers around the rim, damped the faster vibrations that drive sloshing better than the usual handle grip. Only try it when the rim is comfortable to touch.
Why does a latte slosh less than black coffee? Foam on top can damp sloshing. In a Princeton lab study, just 5 layers of bubbles cut the biggest waves about tenfold. That study used lab foam, not milk foam, but the principle is the same.
Why does spilled coffee dry into a ring? As a drop dries, its edge stays pinned and evaporates fastest. Liquid flows outward to replace it and carries the coffee particles to the edge, leaving a ring. Physicists call this the coffee-ring effect.
Does walking faster make coffee spill sooner? Yes. In the UC Santa Barbara experiments, faster walking and bigger starting accelerations led to spills in fewer steps, and a very hard start could spill coffee almost immediately.
This article is general information about coffee and fluid physics research. Results from individual studies apply to the cups, liquids, people and conditions they tested.
Sources
- Mayer HC, Krechetnikov R. Walking with coffee: why does it spill? Phys Rev E Stat Nonlin Soft Matter Phys. 2012;85(4 Pt 2):046117. PMID: 22680548. DOI: 10.1103/PhysRevE.85.046117. https://pubmed.ncbi.nlm.nih.gov/22680548/
- Han J. A study on the coffee spilling phenomena in the low impulse regime. Achievements in the Life Sciences. 2016;10(1):87-101. DOI: 10.1016/j.als.2016.05.009. https://doi.org/10.1016/j.als.2016.05.009
- Sauret A, Boulogne F, Cappello J, Dressaire E, Stone HA. Damping of liquid sloshing by foams. Phys Fluids. 2015;27(2):022103. DOI: 10.1063/1.4907048. https://doi.org/10.1063/1.4907048 (preprint: arXiv:1411.6542)
- Deegan RD, Bakajin O, Dupont TF, Huber G, Nagel SR, Witten TA. Capillary flow as the cause of ring stains from dried liquid drops. Nature. 1997;389(6653):827-829. DOI: 10.1038/39827. https://doi.org/10.1038/39827
- Yunker PJ, Still T, Lohr MA, Yodh AG. Suppression of the coffee-ring effect by shape-dependent capillary interactions. Nature. 2011;476(7360):308-311. PMID: 21850105. https://pubmed.ncbi.nlm.nih.gov/21850105/
- Hu H, Larson RG. Marangoni effect reverses coffee-ring depositions. J Phys Chem B. 2006;110(14):7090-7094. PMID: 16599468. https://pubmed.ncbi.nlm.nih.gov/16599468/
- Kim H, Boulogne F, Um E, Jacobi I, Button E, Stone HA. Controlled uniform coating from the interplay of Marangoni flows and surface-adsorbed macromolecules. Phys Rev Lett. 2016;116(12):124501. PMID: 27058080. https://pubmed.ncbi.nlm.nih.gov/27058080/
- Edge Coffee sample Eurofins report AR-24-JF-015481-01 (Pure Health Coffee green beans, Mar 2024), via /pages/lab-results
