Example 1: Easy Difficulty
Convert decimal 10 to binary.
Solution:
10 ÷ 2 = 5 remainder 05 ÷ 2 = 2 remainder 12 ÷ 2 = 1 remainder 01 ÷ 2 = 0 remainder 1Binary number (read bottom to top): 1010Answer: \(10_{10} = 1010_2\) Introduction to Number Systems
Before learning how to convert decimal numbers to binary, it is essential to understand the two number systems involved:
Why Convert Decimal to Binary?
Computers operate using binary numbers because digital circuits have two states: ON (1) and OFF (0). Hence, understanding how to convert decimal numbers (human-friendly) to binary numbers (machine-friendly) is fundamental in computer science and digital electronics.
Conversion Method: Division by 2
The most common and straightforward method to convert a decimal number to binary is the Division by 2 Method. This method involves repeatedly dividing the decimal number by 2 and recording the remainders.
Procedure:
Example Diagram:
Decimal Number: 13Step 1: 13 ÷ 2 = 6 remainder 1Step 2: 6 ÷ 2 = 3 remainder 0Step 3: 3 ÷ 2 = 1 remainder 1Step 4: 1 ÷ 2 = 0 remainder 1Reading remainders from bottom to top: 1101Therefore, 13 in decimal = 1101 in binary.
Mathematical Explanation
Any decimal number \(N\) can be expressed in binary as:
\[N = b_k \times 2^k + b_{k-1} \times 2^{k-1} + \cdots + b_1 \times 2^1 + b_0 \times 2^0\]where each \(b_i\) is either 0 or 1.
The division by 2 method essentially finds the coefficients \(b_i\) by repeatedly dividing \(N\) by 2 and taking the remainder as \(b_0, b_1, \ldots\).
Example of Conversion for a Larger Number
Convert decimal 156 to binary:
156 ÷ 2 = 78 remainder 078 ÷ 2 = 39 remainder 039 ÷ 2 = 19 remainder 119 ÷ 2 = 9 remainder 19 ÷ 2 = 4 remainder 14 ÷ 2 = 2 remainder 02 ÷ 2 = 1 remainder 01 ÷ 2 = 0 remainder 1Binary number (read bottom to top): 10011100
So, \(156_{10} = 10011100_2\).
Other Conversion Methods (Brief Overview)
However, the division method is the easiest and most systematic for all decimal numbers.
Applications of Decimal to Binary Conversion
Common Mistakes to Avoid
To convert any decimal number to binary:
This method is reliable, easy to perform manually, and forms the basis for understanding binary representation in computers.
Convert decimal 10 to binary.
Solution:
10 ÷ 2 = 5 remainder 05 ÷ 2 = 2 remainder 12 ÷ 2 = 1 remainder 01 ÷ 2 = 0 remainder 1Binary number (read bottom to top): 1010Answer: \(10_{10} = 1010_2\) Convert decimal 45 to binary.
Solution:
45 ÷ 2 = 22 remainder 122 ÷ 2 = 11 remainder 011 ÷ 2 = 5 remainder 15 ÷ 2 = 2 remainder 12 ÷ 2 = 1 remainder 01 ÷ 2 = 0 remainder 1Binary number: 101101Answer: \(45_{10} = 101101_2\) Convert decimal 100 to binary.
Solution:
100 ÷ 2 = 50 remainder 050 ÷ 2 = 25 remainder 025 ÷ 2 = 12 remainder 112 ÷ 2 = 6 remainder 06 ÷ 2 = 3 remainder 03 ÷ 2 = 1 remainder 11 ÷ 2 = 0 remainder 1Binary number: 1100100Answer: \(100_{10} = 1100100_2\) Convert decimal 255 to binary.
Solution:
255 ÷ 2 = 127 remainder 1127 ÷ 2 = 63 remainder 163 ÷ 2 = 31 remainder 131 ÷ 2 = 15 remainder 115 ÷ 2 = 7 remainder 17 ÷ 2 = 3 remainder 13 ÷ 2 = 1 remainder 11 ÷ 2 = 0 remainder 1Binary number: 11111111Answer: \(255_{10} = 11111111_2\) Convert decimal 156 to binary.
Solution:
156 ÷ 2 = 78 remainder 078 ÷ 2 = 39 remainder 039 ÷ 2 = 19 remainder 119 ÷ 2 = 9 remainder 19 ÷ 2 = 4 remainder 14 ÷ 2 = 2 remainder 02 ÷ 2 = 1 remainder 01 ÷ 2 = 0 remainder 1Binary number: 10011100Answer: \(156_{10} = 10011100_2\) Progress tracking is paywalled — subscribe to mark subtopics as understood and save your streak.
Go to practice →