Last updated on July 4th, 2025
Binary number system is a method used to define or represent numbers using only 0s and 1s. Since binary is the fundamental language understood by the computers, we need this number system to make computers work. We will now see more about the binary number system in this article.
The binary number system is a base 2 numeral system that uses only two digits: 0 and 1.
It is the foundation of digital computing and electronic systems, as computers process and store data in binary form.
Each binary digit (bit) represents a power of 2, with the rightmost bit being the least significant.
Binary is used in arithmetic operations, data encoding, logic circuits, and memory storage.
Binary numbers are always represented using a 4-bit format. The table given below gives the binary equivalent of base 10 numbers:
Decimal Number |
Binary Number |
Decimal Number |
Binary Number |
1 |
0001 |
11 |
1011 |
2 |
0010 |
12 |
1100 |
3 |
0011 |
13 |
1101 |
4 |
0100 |
14 |
1110 |
5 |
0101 |
15 |
1111 |
6 |
0110 |
16 |
10000 |
7 |
0111 |
17 |
10001 |
8 |
1000 |
18 |
10010 |
9 |
1001 |
19 |
10011 |
10 |
1010 |
20 |
10100 |
Binary to Decimal Conversion:
To convert a binary to a decimal number, multiply each binary digit by 1, 2, 4, 8, and so on from right to left, and then add the answers. You can also use a formula to get the conversion right. The formula used is:
D = (an-1 x 2n-1) +...+ (a3 x 23) + (a2 x 22) + (a1 x 21) + (a0 x 20)
For example, convert (10011)2 to a decimal number:
(10011)2 = (1 x 24) + (0 x 23) + (0 x 22) + (1 x 21) + (1 x 20)
= 16 + 0 + 0 + 2 + 1 = (19)10
Hence, the binary number (10011)2 is expressed as (19)10.
Decimal to Binary Conversion:
To convert a decimal number into binary, keep dividing the number by 2 until the quotient becomes 0. We need to ensure we note down all the remainders that we get during this process. When the quotient becomes 0, just write down the remainders (either 1 or 0) upside down to get the final answer.
For example, convert (28)10 into a binary number:
Using the above division method, we find that (28)10 = (11100)2
Basic mathematical operations like addition, subtraction, and multiplication are also applicable to the binary number system.
Let us see the operations we use for the binary number system:
Binary Addition:
In binary addition, we add each digit one by one, and carry over when needed. The table below shows the addition of two given numbers.
Binary Number 1 |
Binary Number 2 |
Addition |
Carry |
0 | 0 | 0 | 0 |
1 | 0 | 1 | 0 |
0 | 1 | 1 | 0 |
1 | 1 | 0 | 1 |
Binary Subtraction:
The binary numbers are subtracted digit by digit and the answer is obtained. The table below shows the subtraction of two given numbers.
Binary Number 1 |
Binary Number 2 |
Subtraction |
Carry |
0 | 0 | 0 | 0 |
1 | 0 | 1 | 0 |
0 | 1 | 1 | 1 |
1 | 1 | 0 | 0 |
Binary Multiplication:
The multiplication of two binary numbers is shown below:
Binary Number 1 |
Binary Number 2 |
Multiplication |
0 | 0 | 0 |
1 | 0 | 0 |
0 | 1 | 0 |
1 | 1 | 1 |
1’s complement and 2’s complement are simple methods to represent negative numbers in binary and help with binary subtraction. These methods are used widely in computers and digital devices. Let us now see the steps involved in finding the 1’s complement and 2’s complement .
Let’s look at the steps to find 1’s complement:
Step 1: We must write down the binary number for which we need the 1’s complement.
Step 2: Change all 0s to 1 and 1s to 0.
This is how we find 1’s complement of a given binary. Let’s understand this better with an example.
Let’s find the 1’s complement of 101010
Now, all we have to do is flip the bits. So, the 1’s complement of 101010 is 010101. As you can see, we have only interchanged the 1’s and 0’s in the binary.
Now, there is some vital information about 1’s complement that we need to know:
These are the steps to find the 2’s complement of a binary:
Step 1: First, find the 1’s complement.
Step 2: Just add 1 to the 1’s complement.
Here, let’s find the 2’s complement of 101010
To do that, let’s first find its complement.
So, 1’s complement of 101010 is 010101
Now adding 1 to the 1’s complement, we get, 010101 + 1 = 010110
Remember these points about 2’s complement:
There are numerous real life applications of the binary number system. Some of them are discussed below:
Students can make mistakes and it’s part of the learning process. However, some mistakes can be easily avoided if we take the right precautions. Here are some common mistakes that can be avoided:
Convert the binary number 1011 to its decimal equivalent.
11.
Write down the binary digits with their positional powers of 2 (rightmost digit is 2⁰):
1 × 2³ = 1 × 8 = 8
0 × 2² = 0 × 4 = 0
1 × 2¹ = 1 × 2 = 2
1 × 2⁰ = 1 × 1 = 1
Sum the results: 8 + 0 + 2 + 1 = 11
Convert the decimal number 13 into binary.
1101.
Divide 13 by 2:
13 ÷ 2 = 6 remainder 1
Divide 6 by 2:
6 ÷ 2 = 3 remainder 0
Divide 3 by 2:
3 ÷ 2 = 1 remainder 1
Divide 1 by 2:
1 ÷ 2 = 0 remainder 1
Write the remainders in reverse order: 1101
Add the binary numbers 1010 and 1101.
10111.
Rightmost column: 0 + 1 = 1
Next column: 1 + 0 = 1
Next column: 0 + 1 = 1
Leftmost column: 1 + 1 = 10 (write 0 and carry 1)
Since there’s a carry, place it at the next left position.
Final result: 10111
When adding bit by bit, remember to carry over any value exceeding 1.
Subtract 1100 from 10101.
1001
Start from right:
Column 1: 1 – 0 = 1
Column 2: 0 – 0 = 0
Column 3: 1 – 1 = 0
Column 4: 0 – 1 → borrow from left:
Borrowing: (10 in binary becomes 2 in decimal), so 10 – 1 = 1
Column 5: After borrow, 0 (which became 0) minus 0 = 0; but note the leftmost digit from 10101 was 1, so adjusting gives:
Alternatively, perform full subtraction:
10101
-01100
= 01001
Multiply the binary numbers 101 and 11.
1111.
Write the numbers:
Multiply by the rightmost digit (1):
101 × 1 = 101
Multiply by the next digit (1) and shift one position to the left:
101 × 1 = 101 becomes 1010
Add the partial products:
Hiralee Lalitkumar Makwana has almost two years of teaching experience. She is a number ninja as she loves numbers. Her interest in numbers can be seen in the way she cracks math puzzles and hidden patterns.
: She loves to read number jokes and games.