Despite lacking ears, the nematode C. elegans senses airborne sound and engages in phonotaxis behavior, enabling it to locate and avoid sound sources.1 How worms sense sound, however, is not well understood. Here, we report an interesting observation that worms respond only to sounds emitted by small but not large speakers, indicating that they preferentially respond to localized sound sources. Notably, sounds emitted by small speakers form a sharp sound pressure gradient across the worm body, while sounds from large speakers do not, suggesting that worms sense sound pressure gradients rather than absolute sound pressure. Analysis of phonotaxis behavior, sound-evoked skin vibration, and sound-sensitive neuron activities further support this model. We suggest that the ability to sense sound pressure gradients provides a potential mechanism for worms to distinguish sounds generated by their predators, which are typically small animals, from those produced by large animals or background noise. As vertebrate cochlea and some insect ears can also detect sound pressure gradients, our results reveal that sensing of sound pressure gradients may represent a common mechanism in auditory sensation across animal phyla.