Skip to main content
KBY Technologies Logo
Knowledge organiserGCSE and Key stage 4Years 10 and 11

Binary, denary and hexadecimal: converting, adding and shifting

Every number from 0 to 255 fits in 8 bits. Learn the place values and you can convert to denary or hex, add, and shift.

4 min read For pupils Checked 2 December 2026

By the end you can

  • Convert any number from 0 to 255 between binary, denary and hexadecimal
  • Name the most significant bit and the least significant bit
  • Add two 8-bit binary numbers and explain an overflow error
  • Carry out a binary shift left or right and say what it does to the number

Key words

Bit
A single binary digit, either 0 or 1.
Binary
Base 2: a number system that uses only the digits 0 and 1.
Denary
Base 10: the everyday number system, with the digits 0 to 9.
Hexadecimal
Base 16: uses 0 to 9 and then A to F for the values 10 to 15.
All 9 key words

A computer stores every number as a pattern of bits. Once you can read that pattern, conversion, addition and shift questions become quick, reliable marks.

Why computers count in binary

Inside a computer, data is held by switches that are either on or off. One switch can therefore hold one binary digit, a bit, which is 0 or 1. Binary is base 2, so it uses only those two digits. Denary is base 10, the system you use every day, with the digits 0 to 9.

At GCSE you work with numbers of up to 8 bits. The smallest is 00000000, which is 0, and the largest is 11111111, which is 255. A binary number can also have fewer than 8 bits, so 11010 is the same number as 00011010.

Place values in an 8-bit number

Each column in binary is worth double the column to its right. Learn this row by heart, because every other method in this topic uses it:

Swipe the table sideways to see every column →

1286432168421
01101101

To turn binary into denary, add up the place values that have a 1 under them. Here that is 64 + 32 + 8 + 4 + 1, which makes 109. The left-most bit is the most significant bit, worth 128. The right-most bit is the least significant bit, worth 1.

Converting denary to binary

Work from the biggest place value down to the smallest. If the place value fits into what is left of your number, write a 1 and take it away. If it does not fit, write a 0 and move on. Here is 200 worked through:

  1. 128 fits into 200, so write 1. That leaves 72.
  2. 64 fits into 72, so write 1. That leaves 8.
  3. 32 and 16 do not fit into 8, so write 0 and 0.
  4. 8 fits into 8, so write 1. That leaves 0.
  5. 4, 2 and 1 do not fit into 0, so write 0, 0 and 0.

Following along on your device? Tap a step’s number to tick it off.

So 200 in binary is 11001000. Check it by adding the place values back up: 128 + 64 + 8 is 200.

Hexadecimal is binary in shorthand

Hexadecimal, or hex, is base 16. After the digits 0 to 9 it uses letters, from A for 10 up to F for 15. One hex digit stands for exactly four bits, called a nibble. That is why an 8-bit number always fits in two hex digits, from 00 to FF.

People use hex because it is shorter than binary, so it is easier to read and copy without mistakes. You will see it in web colour codes, such as #FF0000 for red.

To go from binary to hex, split the 8 bits into two nibbles and convert each one on its own. For 11001000, the nibbles are 1100 and 1000. 1100 is 12, which is C, and 1000 is 8, so the answer is C8.

To go from hex to denary, multiply the first digit by 16 and add the second. For 3F, that is 3 × 16 = 48, plus 15 for the F, which makes 63. To go from denary to hex, divide by 16. 200 ÷ 16 is 12 remainder 8, so 200 is C8.

Adding binary numbers

Binary addition works in columns from right to left, like denary addition, but you carry as soon as a column reaches 2. These four rules cover every column:

  • 0 + 0 = 0
  • 0 + 1 = 1
  • 1 + 1 = 10, so write 0 and carry 1
  • 1 + 1 + 1 = 11, so write 1 and carry 1

Adding 01101101 (109) and 00110110 (54) gives 10100011. Check it in denary: 128 + 32 + 2 + 1 is 163, and 109 + 54 is also 163.

An overflow error happens when the answer is too big for 8 bits. Adding 11001000 (200) and 01100100 (100) should give 300, which needs a ninth bit. With only 8 bits, that carry is lost, and the stored answer is 00101100, which is 44.

Binary shifts

A binary shift moves every bit left or right, and the gaps are filled with 0s. A shift of one place to the left multiplies the number by 2, and two places multiply it by 4. A shift of one place to the right divides it by 2.

Take 00001101, which is 13. Shifted two places left, it becomes 00110100, which is 52, or 13 × 4. Shifted one place right, it becomes 00000110, which is 6. The answer should be 6.5, but the 1 that fell off the right-hand end is lost.

Bits can fall off the left-hand end too. Shift 11000000 (192) one place left and you get 10000000 (128), not 384. Whenever a 1 falls off either end, the answer is no longer exact.

Mistakes that cost marks

Most lost marks in this topic come from a handful of slips, so check your answer against each one:

  • Writing the place values the wrong way round. The 128 column is always on the left.
  • Forgetting to carry when a column adds up to 2 or 3.
  • Mixing up 10 in binary (which is 2) with 10 in denary.
  • Converting hex without splitting into nibbles first.
  • Saying a right shift gives an exact half when a 1 has been lost.

You can practise every method here with the binary converter. Set the bits yourself, then let the tool check your answer.

Check your understanding

Have a go first, then open each answer to check.

  1. 1.What is 10110100 in denary?

    Show the answer

    180. The 1s are under 128, 32, 16 and 4, and 128 + 32 + 16 + 4 = 180.

  2. 2.What is 75 in 8-bit binary?

    Show the answer

    01001011. 64 fits, leaving 11; then 8, leaving 3; then 2 and 1. So 64 + 8 + 2 + 1 = 75.

  3. 3.Convert 2B from hexadecimal to denary.

    Show the answer

    43. 2 × 16 = 32, and B is 11, so 32 + 11 = 43.

  4. 4.Convert 11110010 to hexadecimal.

    Show the answer

    F2. The nibbles are 1111, which is 15 or F, and 0010, which is 2.

  5. 5.Add 01011010 and 00101111. Is there an overflow?

    Show the answer

    10001001, which is 137. There is no overflow, because 90 + 47 = 137 fits in 8 bits.

  6. 6.What is 00010110 after a shift of two places to the left, and what has happened to the number?

    Show the answer

    01011000, which is 88. The number was 22, and a two-place left shift multiplies it by 4.

  7. 7.Why does adding 10000000 and 10000000 in 8 bits give 0?

    Show the answer

    The true answer is 256, which needs a ninth bit. The carry out of the left-most column is lost, so 8 bits are left holding 00000000. This is an overflow error.

Key words

Bit
A single binary digit, either 0 or 1.
Binary
Base 2: a number system that uses only the digits 0 and 1.
Denary
Base 10: the everyday number system, with the digits 0 to 9.
Hexadecimal
Base 16: uses 0 to 9 and then A to F for the values 10 to 15.
Nibble
Four bits. One hex digit stands for exactly one nibble.
Most significant bit
The left-most bit, with the biggest place value (128 in an 8-bit number).
Least significant bit
The right-most bit, with the smallest place value (1).
Overflow
When a result needs more bits than there are to store it, so the extra bit is lost.
Binary shift
Moving every bit left or right a number of places, filling the gaps with 0s.

Sources

The curriculum statements and specification points on this page come from these documents, read on 2 December 2026. Specifications are updated from time to time, so check your exam board's current version.

  1. GCSE (9-1) Computer Science J277 specification, Version 3.1 (May 2026) (OCR)
  2. GCSE Computer Science 8525 specification, For first teaching in September 2025 (AQA)

Spotted something wrong or out of date? Tell us and we will correct it.

More for GCSE and Key stage 4

All GCSE and Key stage 4 resources