The gears are turning

Photo of rusty gears
The phrase the gears are turning means someone is thinking carefully or trying to solve a problem. People often use it when a person becomes quiet or thoughtful while working something out.

The expression comes from machines with gears that move together to make something work. In the idiom, the moving gears are compared to the mind working through ideas.

He stared at the puzzle for a moment, and you could almost see the gears turning.