How come we can hear the sound of the ocean in a big seashell?

How come we can hear the sound of the ocean in a big seashell?

When you hold a large seashell to your ear, you can hear a distant roaring sound. It’s as if the great rumble and crash of the ocean waves is somehow trapped within the shell. So when you bring a seashell home from the beach, it keeps the memory of the sea alive.  But even if you don’t have a seashell handy, and it’s too cold to go to the beach, you can always hear the ocean. Just pick up an empty coffee mug, and hold it to your ear, tilted slightly away. Ah, there it is—the gentle, echoing roar of the waves.
quanswer.com