Hex to Decimal: Formula, Conversion and Table

Collegedunia Team logo

Collegedunia Team

Content Curator

Hexadecimal to decimal is a process of converting one number of a hexadecimal number system to another in a decimal number system. Representation of numbers continually using digits or other symbols is known as the number system. There is a total of four types of number systems: binary, octal, decimal, and hexadecimal

Each of these number systems has its unique base number that distinguishes between the systems. 

Also Read: Decimal Expansion of Rational Numbers

Key Terms: Number system, Hexadecimal, Decimal, Octal, Binary, Digits, Power


Hexadecimal Number System

[Click Here for Sample Questions]

The number system with 16 as its base or where each digit weights power 16, is the hexadecimal number system. In this number system, each digit is 16 times more powerful than the last one.

There are a total of 16 symbols involved in this system of which ten are digits while the rest six are alphabets. The symbols are given as follows.

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F

Here, A, B, C, D, E, F are considered to be as equivalent to 11, 12, 13, 14, 15, and 16 respectively.

Also Read:


Decimal Number System

[Click Here for Sample Questions]

The number system that has 10 as its base or the system where each digit has a place value of power 10, is the decimal number system. In this number system, the digit at the tens places is 10 times greater than the digit at the unit place. 

The decimal system has 10 symbols and all of them are digits ranging from 0 to 9. The decimal number system is given below. 

0, 1, 2, 3, 4, 5, 6, 7, 8, 9

Also Read: Binary Operations


Conversion Hex to Decimal

[Click Here for Sample Questions]

Hexadecimal can be converted to decimals by using the base number 16. The conversion takes place in the following steps.

  • Find the decimal equivalent of hexadecimal from the conversion table.
  • Multiply each digit with the power of 16 starting at 0 from the right.
  • Add all the numbers together for conversion to complete.

The hexadecimal table is given below for easy conversion.

The Conversion Table

The Conversion Table

Let us take an example for better understanding.

Example: Convert (20)16 to its decimal equivalent.

Solution: Here, following the above-mentioned steps

(20)16 = 2 x 161 + 0 x 160

(20)16 = 32 + 0 = 32

(20)16 = (32)10

Also Read: Exponents


Hex to Decimal Formula

[Click Here for Sample Questions]

The formula to convert hexadecimal to decimal is given below.

dn-1….d1d0(Hexadecimal) = dn-1 x 16 n-1+..…+ d1 x 161 + d0 x 160(Decimal)

Let us take an example to understand better.

Example: Convert (12)16 to its decimal form.

Solution: Using the above-mentioned formula

(12)16 = 1 x 161 + 2 x 160 = 16 + 2 = (18)10

Also Read: Greatest Integer Function


Hex to Decimal Table

[Click Here for Sample Questions]

Hexadecimal to decimal conversion table is given below:

Hexadecimal Decimal 
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
A 10
B 11
C 12
D 13
E 14
F 15

Also Read: Arithmetic Operations


Things to Remember

  • Hexadecimal number system has 16 as its base.
  • Decimal number system has 10 as base and each digit has a place value of power 10.
  • The hexadecimal number system has 16 symbols where 9 are digits while 6 are alphabets.
  • The formula to convert hexadecimal to decimal is 

dn-1….d1d0(Hexadecimal) = dn-1 x 16 n-1+..…+ d1 x 161 + d0 x 160(Decimal)


Sample Questions

Ques: Convert (1DA6)16 to decimal. [3 marks]

Ans: (1DA6)16

Here,

1 = 1

D = 13

A = 10

6 = 6

Thus,

(1DA6)16 = (1 × 163) + (13 × 162) + (10 × 161) + (6 × 160)

= (1 × 4096) + (13 × 256) + (10 × 16) + (6 × 1)

= 4096 + 3328 + 160 + 6

= 7590

Therefore, (1DA6)16 = (7590)10

Ques: Convert (E8B)16 to decimal. [3 marks]

Ans: (E8B)16

Here,

E = 14

8 = 8

B = 11

Thus,

(E8B)16= (14 × 162) + (8 × 161) + (11 × 160)

= (14 × 256) + (8 × 16) + (11 × 1)

= 3584 + 128 + 11

= 3723

Therefore, (E8B)16 = (3723)10

Ques: Evaluate (234)16 into its decimal form. [2 marks]

Ans: (234)16 = 2 x 162 + 3 x 161 + 4 x 160

(234)16 = 2 x 256 + 48 + 4 = 512 + 48 = (560)10

Ques: What is a decimal number system? [2 marks]

Ans: The decimal number system has 10 as base and each digit has a place value of power 10. Its symbols are 9 natural numbers, ranging from 0 to 9.

Ques: Convert (32C)16 into decimal. [2 marks]

Ans: Here C = 12

So, (32C)16 = 3 x 162 + 2 x 161 + 12 x 160

(32C)16 = 768 + 32 + 12 = (812)10

(32C)16 = (812)10

Ques: How to convert hexadecimal to decimal? [3 marks]

Ans: Hexadecimal can be converted to decimal by following the steps which are given below.

  • Find the decimal equivalent of hexadecimal from the conversion table.
  • Multiply each digit with the power of 16 starting at 0 from the right.
  • Add all the numbers together for conversion to complete.

Ques: Convert (12D)16 to its decimal equivalent. [2 marks]

Ans: Here D = 13

(12D)16 = 12 x 161 + 13 x 160

(12D)16 = 192 + 13 = 205

Ques: Convert (14C)16 to its decimal equivalent. [2 marks]

Ans: Here, C = 12

(14C)16 = 14 x 161 + 12 x 160

(14D)16 = 224 + 12 = 236

Check-Out:

Comments


No Comments To Show