Hex to Decimal

How to convert hex to decimal by hand

Type any hex number and step through the method to change hex to decimal, also called denary in GCSE courses. Each step does one digit, the same way you would on paper. Below: the method, four worked examples, Horner's shortcut, calculator-free tricks and the mistakes that catch most beginners.

The method in three steps

Number the digits, multiply each by its power of 16, then add. The whole conversion is three operations repeated for every digit.

  1. Write the hex number and label each digit's position from right to left, starting at 0.
  2. Replace every letter with its decimal value: A = 10, B = 11, C = 12, D = 13, E = 14, F = 15. Multiply each digit by 16 raised to the power of its position.
  3. Add all the products. The total is the decimal (denary) result.

As a formula: decimal = dₙ × 16ⁿ + … + d₁ × 16¹ + d₀ × 16⁰. The first eight powers of 16 are 1, 16, 256, 4,096, 65,536, 1,048,576, 16,777,216 and 268,435,456.

PositionPowerValue
01601
116116
2162256
31634,096
416465,536
51651,048,576
616616,777,216
7167268,435,456

Worked examples

2AF to decimal

Hex 2AF has three digits. Position 2 holds 2, position 1 holds A (10) and position 0 holds F (15).

2AF = 2 × 16² + A × 16¹ + F × 16⁰
    = 2 × 256 + 10 × 16 + 15 × 1
    = 512 + 160 + 15
    = 687

FF to decimal

FF uses only the first two positions. Both digits are F (15), and the result is the largest value one byte can hold.

FF = F × 16¹ + F × 16⁰
   = 15 × 16 + 15 × 1
   = 240 + 15
   = 255

1000 to decimal

The three zeros contribute nothing, but they push the 1 into position 3, where the place value is 4,096.

1000 = 1 × 16³ + 0 × 16² + 0 × 16¹ + 0 × 16⁰
     = 1 × 4,096 + 0 + 0 + 0
     = 4,096

CAFE to decimal

A four-digit, all-letter hex number. C = 12, A = 10, F = 15, E = 14.

CAFE = C × 16³ + A × 16² + F × 16¹ + E × 16⁰
     = 12 × 4,096 + 10 × 256 + 15 × 16 + 14 × 1
     = 49,152 + 2,560 + 240 + 14
     = 51,966

Horner's method for long numbers

Start with 0, then for each digit from left to right, multiply the running total by 16 and add the digit's value. This avoids large powers entirely and keeps every intermediate number small.

For 2AF:

Start:  0
Digit 2:  0 × 16 + 2  = 2
Digit A:  2 × 16 + 10 = 42
Digit F:  42 × 16 + 15 = 687

For CAFE:

Start:   0
Digit C:  0 × 16 + 12   = 12
Digit A:  12 × 16 + 10  = 202
Digit F:  202 × 16 + 15 = 3,247
Digit E:  3,247 × 16 + 14 = 51,966

Horner's method gives the same result as the positional method. It is faster on paper because the largest multiplication is always "previous total × 16". In hex, multiplying by 16 simply shifts every digit one place left, the way multiplying by 10 does in decimal.

Practise with the hex to decimal practice questions, and check any answer with the hex to decimal converter.

Convert without a calculator

Three shortcuts speed up the conversion when you have no calculator.

Multiply by 16 in small steps. Double the number four times, or multiply by 4 twice, instead of multiplying by 16 in one go. For 42 × 16, double 42 to 84, then 168, then 336, then 672.

Learn the six letter products. Digits 0 to 9 times 16 are easy to work out. Memorise the rest: A × 16 = 160, B = 176, C = 192, D = 208, E = 224 and F = 240.

Split long numbers into byte pairs. Each pair of hex digits is one byte (0 to 255). Convert each pair separately, then combine them: the left pair's value × 256 plus the right pair's value. For CAFE, CA = 202 and FE = 254, so CAFE = 202 × 256 + 254 = 51,712 + 254 = 51,966.

Doubling for ×16

The picture shows the first shortcut on any number. Four doublings equal one multiplication by 16.

Mistakes to avoid

Four errors account for most wrong answers in hand conversion.

  • Numbering positions from the left. Position 0 is always the rightmost digit, not the leftmost. Starting from the left makes every place value wrong.
  • Reading A through F as 1 through 6. A is 10 and F is 15, not 1 and 6. This mistake shrinks the value of every letter digit.
  • Starting at 16¹ instead of 16⁰. The rightmost digit sits at position 0, and 16⁰ equals 1, so that digit counts as itself.
  • Treating hex 10 as ten. Hex 10 is 1 × 16 + 0 = 16 in decimal, not 10. Any hex number that looks like a familiar decimal value can mislead.

Frequently asked questions

How do you convert hex to decimal step by step?
Write the hex digits, label positions from 0 on the right, multiply each digit by 16 raised to its position, and add the products. For 2AF: 2 × 256 + 10 × 16 + 15 × 1 = 687.
What is hexadecimal to denary?
Denary is the UK and GCSE name for decimal (base 10). Hex to denary and hex to decimal mean the same conversion: multiply each hex digit by its power of 16 and add.
How do you convert hex to decimal without a calculator?
Use Horner's method: start at 0, then multiply by 16 and add each digit from left to right. This keeps the numbers small and avoids large powers of 16.
What does A through F mean in hex?
A = 10, B = 11, C = 12, D = 13, E = 14, F = 15. Base 16 needs six extra symbols beyond 0 to 9, so it borrows the first six letters.
Why do positions start at 0 instead of 1?
Position 0 gives the place value 16⁰ = 1, which means the rightmost digit counts as itself. Starting at 1 would make the rightmost place worth 16, and every answer would be 16 times too large.
What is the fastest way to convert hex by hand?
Horner's method, which replaces powers of 16 with repeated "multiply by 16 and add." It is faster on paper because the multiplier never grows beyond 16.