How does a combination lock work?

Technology Information
13 followers
8 Video Views·Dec 10, 2025
Sponsor: "Keep exploring at https://brilliant.org/3DPrinterAcademy. Get started for free, and hurry—the first 200 people get 20% off an annual premium subscription."
This design is now available on Patreon: www.patreon.com/3dprinteracademy
This video explains how a combination lock works using a 3D printed model. The video shows how the dial interacts with the internal discs and white pegs to align the slots and unlock the lock. The video also demonstrates how to change the combination code by moving the white pegs.
This is a 3D printed model of a combination lock.
It's essentially a bigger version of this.
And chances are you've used one of these locks before.
But how exactly does it work?
Right now the contraption is in its locked position.
The only way for it to unlock is when all three slots are aligned.
So how do we get it to unlock with a dial and a specific code?
With the combination code set with the white pegs,
let's take a look and see exactly how it works.
The dial is only connected to the first red disc.
However, I can rotate the other red discs with the white pegs.
See how when I rotate the dial, only the first wheel spins.
Unless the white pegs collide.
And if I keep spinning the dial counterclockwise, I can rotate all of the wheels.
At this point we have one slot lined up.
And it looks like the dial at this position is at seven and a half.
Now when we rotate the dial the other direction,
you can see the white peg goes all the way around until it collides again with the middle wheel.
You can see the middle slot aligns at about six and a half.
Right about here.
And now finally we rotate the dial back the other direction until it unlocks.
So in this case, the code for this combination lock is seven and a half, six and a half, and three.
And if you spin it three times counterclockwise, you're able to input the code again.
So here we have seven and a half.
Then we rotate it around the other way until we hit six and a half.
And then back to three and it unlocks.
I designed this combination box in a way that allows you to change the code by moving the white pegs.
So while a combination lock may seem complicated and impossible to understand,
it's actually surprisingly simple and ingenious.
It's just a few simple parts arranged in a very clever way.
I'd like to thank my friends over at Brilliant for sponsoring this video.
Brilliant is a great way to interactively learn math,
science, physics, logic, computer science, and more.
There are over 70 courses with thousands of lessons to choose from.
I've been working through the advanced logic course myself.
To get started for free, visit brilliant.org slash 3DPrinterAcademy
or click the link in the description.
The first 200 of you will get 20% off Brilliant's annual premium subscription.
My name is Steven.
Thanks for watching and happy printing.
you
