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.
- Write the hex number and label each digit's position from right to left, starting at 0.
- 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.
- 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.
| Position | Power | Value |
|---|---|---|
| 0 | 160 | 1 |
| 1 | 161 | 16 |
| 2 | 162 | 256 |
| 3 | 163 | 4,096 |
| 4 | 164 | 65,536 |
| 5 | 165 | 1,048,576 |
| 6 | 166 | 16,777,216 |
| 7 | 167 | 268,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
= 687FF 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
= 2551000 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,096CAFE 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,966Horner'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 = 687For 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,966Horner'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?
What is hexadecimal to denary?
How do you convert hex to decimal without a calculator?
What does A through F mean in hex?
Why do positions start at 0 instead of 1?
What is the fastest way to convert hex by hand?
Related tools
- Hex to decimal converter — convert any hex value with the full digit breakdown
- Hex to decimal practice questions — test the method on timed exercises
- Hex to decimal table — lookup table for quick reference
- Signed hex to decimal — two's complement at any bit width