How to – Hexadecimal to Denary Conversion

Converting hexadecimal into decimal (denary) is very simple. All we need is to remember that hexadecimal is a base 16 number.  This means that each number column can contain 16 characters.  Hexadecimal goes from 0 to F:

Decimal NumberHexadecimal Number
00
11
22
33
44
55
66
77
88
99
10A
11B
12C
13D
14E
15F

EG

Using the table – 7 in hex is 7 in decimal.

Using the table – A in hex is 10 in decimal.


2 digit Hexadecimal to Denary Conversion

In GCSE computer science you will be expected to convert 2 digit hexadecimal into denary.  Again we need to remember that hexadecimal is a base 16 number and each number column can go from 0-9 and A-F. 


Example 1

Convert hexadecimal number A2 into Denary

Put the hexadecimal number into a table with a 16 on the top left and a 1 on the top right. 

161
A2

We need to convert our A into a decimal number.  Anytime there is a letter in either of the columns, we should convert it into its associated number. Using our table, A in hex is 10 in denary. 

161
A = 102

We now multiply the top column number (the 16 and the 1) by the number on the bottom for each column:

161
A = 102
16 x 101 x 2
= 160= 2

The final step is to add the 2 columns together

160 + 2 = 162

A2 = 162 in denary. 


Example 2

Convert hexadecimal number 28 into Denary

161
28
16 x 21 x 8
= 32= 8

32 + 8 = 40

28 = 40 in denary