Binary to Decimal

A binary-to-decimal conversion is done to convert a binary number (base 2) to its equivalent decimal number (base 10) for simplicity in mathematical calculations.

Formula

The general formula for converting a binary into a decimal number in positional notation form can be written as:

In the positional notation method, the value of a digit in a number is determined by the weight of its position.

Steps

Now, let us convert a binary number (11001)2 to its corresponding decimal step by step.

Step 1: While converting, we consider each digit in the binary number (also known as a bit) from right to left. Here, (11001)2 has 1 as its rightmost digit, then continues with 0, 0, 1, and 1 as we move left.

Step 2: Then, we multiply each binary digit with increasing powers of 2 from right to left, such that the rightmost digit is multiplied by the greatest power of 2.

⇒ 1 × 2 4 , 1 × 2 3 , 0 × 2 2 , 0 × 2 1 , and 1 × 2 0 .

Step 3: On simplifying, 1 × 2 4 + 1 × 2 3 + 0 × 2 2 + 0 × 2 1 + 1 × 2 0 , we get,

⇒ 16 + 8 + 0 + 0 + 1 = 25

For Fractional Binary Numbers

To convert a decimal binary number to its corresponding decimal, we follow the same steps for its integral part, while the fractional part is multiplied by negative powers of 2.

For example, on converting (0.0001)2 into its equivalent decimal, we get

⇒ 0 × 2 0 + 0 × 2 -1 + 0 × 2 -2 + 0 × 2 -3 + 1 × 2 -4 = 0 + 0.0625 = 0.0625

Find the decimal values of (1001)2 and (1111)2 using the positional notation method.

(1001)2 = 1 × 2 3 + 0 × 2 2 + 0 × 2 1 + 1 × 2 0 = 8 + 1 = 9
(1111)2 = 1 × 2 3 + 1 × 2 2 + 1 × 2 1 + 1 × 2 0 = 8 + 4 + 2 + 1 = 15
Thus, (1001)2 = (9)10 and (1111)2 = (15)10.

Find the decimal value of (11.01)2.

(11.01)2 = 1 × 2 1 + 1 × 2 0 + 0 × 2 -1 + 1 × 2 -2 = 2 + 1 + 0 + 0.25 = 3.25
Thus, (11.01)2 = 3.25

Chart

Some binary numbers and their equivalent decimal numbers are in the following table:

Binary to Decimal

BinaryDecimal
00
11
102
113
1004
1015
1106
1117
10008
10019
101010
101111
110012
110113
111014
111115
1000016
1000117
1001018
1001119
1010020

Alternative Method (By Doubling)

Using this method, let us consider the previous binary number (11001)2 and convert it into a decimal.

Step 1: Unlike the first method, we consider each digit of the binary number from left to right. Here, (11001)2 has 1 at the leftmost.

Step 2: Now, we multiply 0 by 2 and add the leftmost digit of the binary number.

Step 3: Using the above result and multiplying it by 2, we get 1 × 2 = 2

On adding 2 and the second leftmost digit, we get 2 + 1 = 3

Step 4: Again, we repeat the above step until no digit is left.

On multiplying 3 by 2 and adding the third leftmost digit of (11001)2, we get

On multiplying 6 by 2 and adding the next digit of (11001)2, we get

On multiplying 12 by 2 and adding the next digit of (11001)2, we get

Now, no digit is left, and we have a result of 25, the converted decimal number. Thus, (11001)2 = (25)10.

Convert the binary number (101)2 into decimal using the doubling method.

(101)2 has 1 at the leftmost, then 0, and 1.
Here, 0 × 2 + 1 = 1
1 × 2 + 0 = 2
2 × 2 + 1 = 5
Now, the final result is 5 for the binary number 101. Thus, (101)2 = (5)10.

Last modified on April 25th, 2024