How does the rubber pencil illusion work?

How can a solid pencil look like rubber?

Rubber pencil illusion gif
Does this pencil look rubbery to you?
(Image credit: Live Science)

If you want to see a rigid pencil turn to rubber, just ask an elementary-school student. In a favorite playground trick, an amateur magician picks up a pencil near the tip and lightly jiggles the whole thing up and down. When the illusion is performed correctly, the straight line turns into a wiggling wave. 

So, how does the rubber pencil illusion work?

Inside Your Brain: $22.99 at Magazines Direct
$22.99 at Magazines Direct

Inside Your Brain: $22.99 at Magazines Direct

What does it really mean to be conscious? Why do we have cognitive biases when the facts contradict us? And why do some people see the world in a totally different way? In "Inside Your Brain", you’ll explore the answers, chart the life of a pioneering neurosurgeon and relive some of the most bizarre experiments ever conducted in the endless quest to understand the brain.

Isobel Whitcomb
Live Science Contributor

Isobel Whitcomb is a contributing writer for Live Science who covers the environment, animals and health. Her work has appeared in the New York Times, Fatherly, Atlas Obscura, Hakai Magazine and Scholastic's Science World Magazine. Isobel's roots are in science. She studied biology at Scripps College in Claremont, California, while working in two different labs and completing a fellowship at Crater Lake National Park. She completed her master's degree in journalism at NYU's Science, Health, and Environmental Reporting Program. She currently lives in Portland, Oregon.