4 in Binary — What is 4 in Binary?

4 in binary is 100. 4 = 2^2, so its binary form is a 1 followed by 2 zero(s). In octal 4 is 4 and in hexadecimal it is 4. The bit pattern uses 3 bits and fits in 1 byte....

4 IN ALL BASES

4 IN BINARY

100

3 bits · 1 byte · 1 one

Binary (base 2)

100

Octal (base 8)

4

Decimal (base 10)

4

Hexadecimal (base 16)

4

BCD

0100

Bit length

3

Byte count

1

Count of 1s

1

Count of 0s

2

Is power of 2

Yes ✓

Nearest 2ⁿ

2^2

HOW TO CONVERT 4 TO BINARY

Method: divide by 2, collect remainders

1

4 ÷ 2 = 2 remainder 0

2

2 ÷ 2 = 1 remainder 0

3

1 ÷ 2 = 0 remainder 1

Read remainders bottom to top: 100

VERIFY: BINARY BACK TO DECIMAL

1×2^2 + 0×2^1 + 0×2^0

= 4 = 4

FUN FACT

4 = 2 squared is the smallest composite number and the smallest perfect square. In binary, 4 = 100. Every time you square 2, you add a zero to the binary representation.

BIT VISUALIZER

BIT PATTERN

Byte 1

0
7
0
6
0
5
0
4
0
3
1
2
0
1
0
0

POWERS OF 2 REFERENCE

n2ⁿBinaryHex
0111
12102
241004
3810008
4161000010
53210000020
664100000040
71281000000080
8256100000000100
95121000000000200
10102410000000000400
153276810000000000000008000
16655361000000000000000010000
Created with❤️byeaglecalculator.com

HOW TO CONVERT

  1. 1

    Divide 4 by 2 repeatedly, collecting remainders. 4 div 2 = 2 remainder 0 -> 2 div 2 = 1 remainder 0 -> 1 div 2 = 0 remainder 1. Read remainders bottom to top: 100.

  2. 2

    Verify: 1*2^2 + 0*2^1 + 0*2^0 = 4 = 4. Each bit position represents a power of 2, starting at 2^0 = 1 on the right.

  3. 3

    4 in other bases: octal = 4, hexadecimal = 4. 4 = 2^2, so its binary form is a 1 followed by 2 zero(s).

  4. 4

    The bit pattern uses 3 bits and fits in 1 byte. When stored as a full byte: 00000100.

WORKED EXAMPLE

4 decimal to binary: 4 div 2 = 2 remainder 0 -> 2 div 2 = 1 remainder 0 -> 1 div 2 = 0 remainder 1 -> read bottom to top: 100. Verify: 1*2^2 + 0*2^1 + 0*2^0 = 4. Octal: 4, Hex: 4.

FREQUENTLY ASKED QUESTIONS

RELATED

MORE NUMBER THEORY CALCULATORS

Was this calculator helpful?

Last updated: April 29, 2026 · Formula verified by EagleCalculator team · Eagle-eyed accuracy for every calculation.