# How Many Possible Codes Are There For a 4 Digit Lock?

Posted on

Have you ever wondered how many possible codes there are for a 4 digit lock? The answer may surprise you – there are a staggering 10,000 possible combinations! In this article, we’ll look at the mathematics behind this impressive figure.

## How Many Possible Codes Are There For a 4 Digit Lock?

A 4-digit code is made up of four numbers, each of which can be between 0-9. This means that for the first number you have 10 possible combinations (0, 1, 2, 3, 4, 5, 6, 7, 8, 9). For the second number, you also have 10 possible combinations as the numbers can’t repeat. This means that for the first two numbers, you have 100 possible combinations (10 x 10).

For the third number, you have nine possible combinations as you can’t use the same number as the first or second. For the fourth number, you have eight possible combinations as you can’t use the same number as the first, second or third. This means that for the last two numbers, you have 72 possible combinations (9 x 8).