How to convert hexadecimal number to decimal

Hexadecimal Number

Hexadecimal number system uses 16 different symbols to represent a numeric value. It uses numbers 0 to 9 and alphabets A to F for representation. . The place value of each digits of an hexadecimal number varies as the whole number powers of 16 starting from the right (Least Significant Digit). The first single digit number in hexadecimal system is 0 and the last is F. Similarly, the first two digit hexadecimal number is 10 and the last is FF and so on. It is used as an alternative for binary numbers by developers and programmers.

Decimal Number

Whole number, a decimal point and a fractional value combines to form a decimal number. The decimal point separates the whole number part from the fractional part of the number. Each digit of a decimal number can be any number from 0 to 9. Any value less than 1 is written to the right of decimal point. Decimal numbers are also known as base-10 number or counting numbers. Place value of decimal number varies as the whole number powers of 10 starting from the left of decimal point. Similarly, the place value of digits left to decimal point varies as the division of power of tens.

Steps to convert Hexadecimal to decimal

Step 1:

To convert hexadecimal number to a decimal number, first of all, we have to list down each digit one below the other starting from the left.

Step 2:

Count the digit from the top to bottom. The count must start from 0.

Step 3:

Multiply each digit by 16 to the power of its position count.

Step 4:

Add all the values you calculated in the previous step. The sum gives the decimal value corresponding to the hexadecimal value.
In-short:
Hexadecimal number can be converted into decimal number using the following formula:

Decimal Number = (Dn X 16n + …………… + D2 X 162 + D1 X 161 + D0 X 160).

Examples for hexadecimal to decimal conversion

Example 1:

Convert 56516 to decimal

Decimal number = 5 X 162 + 6 X 161 + 5 X 160
= 5 X 256 + 6 X 16 + 5 =384 + 48 + 5 = 139210

Example 2:

Convert FF16 to decimal

Decimal number = 15 X 161 + 15 X 160
= 15 X 16 + 15 X 1 = 448 + 56 + 7 = 25510

Hexadecimal to Decimal conversion table

HexadecimalDecimal
00
11
22
33
44
55
66
77
88
99
A10
B11
C12
D13
E14
F15
1016

Leave a Reply