digiwleeaLearn
Open the lab →

A bit is a number and a truth value

The bridge from counting to logic

3 min read

A bit is both a binary digit and a truth value: the same `0` and `1` that spell a number in binary also stand for false and true, so the algebra of logic and the digits of arithmetic operate on the exact same wires.

You have met 0 and 1 in two places that can feel unrelated: in binary they are the digits that count (101 is the number five), and in Boolean algebra they are truth values (1 is true, 0 is false). This short bridge shows they are the *same thing on the same wire*, so nothing new has to be learned to move between them.
Here is the jump that can feel big. In one lesson a wire carrying 1 means "the count in this column is one". In the next, a wire carrying 1 means "this statement is true". It sounds like the 1 changed meaning. It did not. A wire only ever holds a physical value: high (1) or low (0). Whether you *read* that value as a digit or as a truth value is a choice you make, not a change in the wire.
The one insight that makes the jump small: a bit is a single yes/no, and yes/no serves double duty. As a digit it answers "is this power of two present?". As a truth value it answers "is this statement true?". Both are the same one-bit answer. That is why the very same AND gate can be read as "both statements are true" *and* as "this carry bit is set only when both addend bits are 1". The gate does not know or care which story you tell about its inputs.
A concrete analogy: a light switch. Called "on/off" it feels like a state; called "1/0" it feels like a number; called "true/false" it feels like logic. It is one switch the whole time. Digital circuits exploit exactly this: the adder you will build treats bits as numbers, the comparator treats them as truth values, and both are wired from the identical gates because underneath there is only the one physical 0-or-1.
Do not assume the *width* carries over. A single bit is both a digit and a truth value, but a multi-bit number like 101 is one number (five), not three separate truth values. Boolean logic acts on each wire independently; arithmetic ties the wires together through carries. Same bits, different rules for how the columns interact.
Check yourself
A single wire reads 1. Give two correct but different meanings for that reading, and name what decides which one applies.

Frequently asked

Is a bit a number or a truth value?

Both. A bit is a single 0 or 1. Read as a binary digit it is a number; read as a truth value it is false or true. The physical wire is identical; only your interpretation differs.

Why do the same gates work for arithmetic and logic?

Because both operate on the same 0/1 wires. An AND gate outputs 1 only when both inputs are 1, which you can read as "both statements true" or as "the carry bit is set". The gate is unchanged; the meaning is a label you apply.

Does binary use the same 0 and 1 as boolean logic?

Yes. There is one set of values, 0 and 1, shared by binary numbers and Boolean logic. That shared alphabet is what lets a single circuit both count and reason.
With bits doing double duty, you are ready to specify *any* logic completely with a truth table and then simplify it, on the way to building real gates.

Every lesson here builds toward one thing: a working CPU, from the transistor up.

Open the free lab →
Found this useful? Share itShare on X