## Learn Binary

Binary numbers can seem complex and weird, but they’re actually really simple. You can learn how to read binary numbers and count in binary in just a couple of minutes, which will make you an even more awesome person than you already are.

### Boxes and acorns

Imagine that you have eight small boxes. They look like this:

Each box can either be empty or it can hold an acorn. Try clicking a box above to drop an acorn into it. You can also click an acorn to remove it. Fun!

### The boxes count

Our eight boxes may look identical, but each one represents a unique value—they count for something.

Notice the pattern here—it goes from right to left. The box on the far right counts for 1, and then each box to the left counts for twice as much as the one before it.

When we put an acorn in a box, we’re activating that box’s value. As soon as the acorn is dropped in there, the value counts! But no acorn, no value. Try putting some acorns in the boxes above and see how the values light up for each.

### Add it up

So, we’ve got boxes, acorns, and values. All that’s left to do is to add our values together. The boxes below have some acorns in them already so you can see how this works (but you can go ahead and change them if you’d like).

### What about the 1s and 0s?

You may have been wondering where the 1s and 0s have been hiding during this lesson. They’ve actually been here all along, represented by an acorn (which is a 1) and the lack of an acorn (which, as you can probably guess, is a 0).

The 1s and 0s are called **bits** in binary. And our boxes are called **cells**. A whole collection of cells is called a **register**. But those terms don’t matter as much as the fact that you can now read and count in binary!

### Why does this even matter

At their most fundamental mode of operation, computers are just throwing electricity around. The simplest representation of data, at the physical circuit board level, is whether or not current is flowing—a 1 or a 0. Machines need a way to quickly convert that raw state of on/off into usable information, and binary is a wonderfully efficient way to do that (for a computer, anyway). With just eight on/off sequences, a machine can count from 0 to 255.

Binary is the building block of all computation, and it’s a really cool thing.