Intuition The one core idea
A number is not the marks you write — it is a count of things , and place-value is a clever recipe for packing that count into a short row of digits. Binary is just this same recipe using only two marks (0 and 1), because a computer's switches can only be OFF or ON.
Before you can convert, count, or even read a binary number, you must own every symbol the parent note quietly used. This page builds them one at a time, from absolute zero. Nothing here assumes you have seen the notation before.
A digit is a single written mark chosen from a fixed, small set of allowed marks. In everyday writing that set is { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 } — ten marks. In binary the set shrinks to just { 0 , 1 } — two marks.
A number is how many of something there are — a count. The digits are only the clothing we dress that count in; the count itself is the same no matter what clothing you use.
Look at the figure: the same pile of five dots can wear decimal clothing ("5") or binary clothing ("101"). Same pile, different marks.
Intuition Why this matters
If you believe "5" is the number, binary looks like witchcraft. Once you see "5" is just clothing for a pile of dots , binary is simply a different outfit. Everything else on this page is about the tailoring rules.
Definition Base (also called
radix )
The base b is simply how many different digits your system is allowed to use. Decimal has base b = 10 (ten digits). Binary has base b = 2 (two digits).
Plain-words picture: the base is the size of your box of stamps . Decimal gives you a box of 10 stamps; binary hands you a box of only 2. You must build every number using only stamps from your box.
Common mistake Expecting a "2" somewhere in binary
Why it feels right: every other number system you have met contains a 2.
Why it's wrong: the base-2 stamp box only holds 0 and 1. The moment you would write a "2", you instead carry to the next slot (we build carrying below).
Fix: whenever a slot reaches 2, reset it to 0 and add 1 to the slot on its left.
Definition Base subscript
A little number written after a bracket, like ( 101 ) 2 , tells you which stamp box the digits came from. ( 101 ) 2 means "read 101 as base 2". ( 101 ) 10 means "read 101 as base 10". Same marks, two different piles!
Worked example Same marks, different pile
( 101 ) 10 is one-hundred-and-one dots.
( 101 ) 2 is only five dots.
The subscript is the difference between a hundred and a handful — never drop it.
The parent note is full of things like 2 3 , 1 0 2 , 2 i . You cannot read the place-value formula without owning this symbol first.
Definition Exponent (power)
Writing b i means "multiply i copies of b together ". The big number b is the base , the small raised number i is the exponent and it just counts how many copies.
2 3 = 2 × 2 × 2 = 8 , 1 0 2 = 10 × 10 = 100
Intuition Why binary needs powers of 2
A number system's slots are worth b 0 , b 1 , b 2 , … — a ladder of powers of the base. For binary the ladder is 1 , 2 , 4 , 8 , 16 , … (each rung double the last). We use powers of two and not, say, powers of three, purely because the base is 2. The tool "exponent" is exactly the right tool because place-value scales by the same factor b at every step — and "the same factor repeated" is what an exponent means.
Definition Position index
The position i is a house-number for each slot, counted from the right, starting at 0 . The rightmost slot is position 0, its left neighbour is position 1, then 2, and so on.
Picture: the slots are houses on a street. The house nearest the "units end" is house 0. Its weight is b i = b 0 = 1 ; the next house is worth b 1 , then b 2 …
Common mistake Counting positions from 1
Why it feels right: we usually start counting at "one".
Why it's wrong: the rightmost weight must be b 0 = 1 , and b 0 needs the exponent to be 0 . If you start at position 1 the weights all shift and every conversion comes out wrong.
Fix: point at the rightmost digit and say "house zero ".
Plain-words picture: think of coins. In binary the coins are worth 1 , 2 , 4 , 8 , 16 , … each. A digit "1" in a slot means "I have one coin of that value"; a digit "0" means "I have none of that value".
The capital Greek "S", ∑ , scares people. It is just an instruction to add.
Definition Sigma / summation
i = 0 ∑ n ( stuff with i ) means: plug in i = 0 , then i = 1 , then i = 2 , … up to i = n , and add all the results . The letter below (i = 0 ) is where to start; the letter on top (n ) is where to stop.
Worked example Unrolling the sum for
( 1011 ) 2
Here the digits (right to left) are d 0 = 1 , d 1 = 1 , d 2 = 0 , d 3 = 1 , and b = 2 :
∑ i = 0 3 d i ⋅ 2 i = d 0 ⋅ 2 0 + d 1 ⋅ 2 1 + d 2 ⋅ 2 2 + d 3 ⋅ 2 3
= 1 ⋅ 1 + 1 ⋅ 2 + 0 ⋅ 4 + 1 ⋅ 8 = 1 + 2 + 0 + 8 = 11
Why it's just addition: the ∑ is shorthand so we don't have to write the "+ ⋯ + " by hand for a 64-bit number. It hides a long addition, nothing more.
The decimal→binary algorithm uses ⌊ N /2 ⌋ and "remainder". Both must be built.
Definition Floor (round down)
⌊ x ⌋ means "throw away any fraction and keep the whole part ". So ⌊ 6.5 ⌋ = 6 , ⌊ 3 ⌋ = 3 . Picture: it is the floor you land on when you can only stand on whole-number steps.
Definition Quotient and remainder
When you divide a whole number N by 2, the quotient is how many whole 2s fit inside (= ⌊ N /2 ⌋ ), and the remainder is what's left over — either 0 (even) or 1 (odd).
13 = 6 × 2 + 1 ⇒ quotient 6 , remainder 1
Intuition Why "remainder when dividing by 2" is the last bit
The only slot with an odd weight is the units slot (2 0 = 1 ); every other weight (2 , 4 , 8 , … ) is even. So whether N is odd or even is decided entirely by that units bit. Remainder 1 ⟺ N odd ⟺ units bit is 1. That is why peeling remainders peels off bits.
Now every symbol in ∑ i = 0 n d i ⋅ 2 i is owned:
d i — the digit (0 or 1) sitting in house i ,
2 i — the weight of house i (a coin value),
∑ — add up the coins you actually have,
the subscript 2 — reminder we are in the base-2 box.
With that, "convert binary to decimal" reads in plain English as: add the coin-values of every slot showing a 1. Nothing mystical remains.
Base b equals size of digit box
Allowed digits 0 to b minus 1
Place value value equals sum
Decimal to binary by division
A number is really a a count of things; the digits are just clothing for that count.
The base b means how many different digits (stamps) the system allows.
Allowed digits in base b satisfy 0 ≤ d < b ; so binary uses only 0 and 1, never a "2".
The subscript in ( 101 ) 2 tells you which base to read the digits in (here base 2).
b 0 equals1, for every base — this is why the rightmost slot is worth 1.
2 3 equals2 × 2 × 2 = 8 .
The rightmost slot is position 0, not 1; positions count from the right starting at 0.
The weight of the digit at position i is b i .
The symbol ∑ i = 0 n tells you to plug in i = 0 , 1 , … , n and add all the results.
⌊ 6.5 ⌋ equals6 (throw away the fraction, keep the whole part).
The remainder of N ÷ 2 is 0 if N is even, 1 if N is odd — it is the units bit.
Why "odd/even" fixes the last bit only the units weight 2 0 = 1 is odd, so it alone decides oddness.
Parent: Binary number system — these foundations feed directly into every conversion there.
Place-value and number bases — the general ∑ d i b i idea for any base b .
Hexadecimal and Octal — the same foundations with b = 16 and b = 8 .
Bits and Bytes — once you own "digit" and "2 n values", a byte is just 8 of these slots.
Logic gates and switches — the physical reason the digit box has exactly two stamps.
Binary addition and overflow — needs carrying, built from the "no digit 2" rule here.
Two's complement — reuses weights and position index to encode negatives.