Why do computers use binary, and how do place value and hexadecimal help us read those binary patterns?
Explain why computers use binary, describe place value in binary and hexadecimal, and state why hexadecimal is used as shorthand for binary
A focused answer to the O-Level Computing point on number systems. Why computers use binary, place value in binary and hexadecimal, the meaning of bits and bytes, and why hexadecimal is a compact shorthand for binary.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this dot point is asking
SEAB wants you to explain why computers use the binary number system, to describe place value in binary (base 2) and hexadecimal (base 16), and to say why hexadecimal is used as a shorthand for binary. The central idea is that a computer is built from switches with only two states, so two digits are enough, and that hexadecimal simply groups those binary digits into a more readable form.
The answer
Why computers use binary
A computer is made of millions of tiny electronic switches called transistors. Each switch is either on or off, with no reliable in-between state. The binary number system has exactly two digits, and , so we can let mean off and mean on. Every piece of data, whether a number, a letter, a sound or an image, is ultimately stored as a pattern of these two values.
Using only two states makes the hardware simple and reliable: it is easy to tell apart a high voltage from a low voltage, even with a little electrical noise.
Bits and bytes
A single binary digit is called a bit. A group of bits is called a byte. One byte can store different patterns, from to , which is enough to represent one text character or a number from to .
Place value in binary
Binary uses positional place value, exactly like denary, but each column is a power of two instead of a power of ten:
So the 4-bit number has bits in the , and columns:
Place value in hexadecimal
Hexadecimal uses base 16, so each column is a power of sixteen, and it needs sixteen digits. The digits run to and then for the values ten to fifteen:
| Hex | A | B | C | D | E | F |
|---|---|---|---|---|---|---|
| Denary | 10 | 11 | 12 | 13 | 14 | 15 |
Why hexadecimal is shorthand for binary
Because , one hexadecimal digit represents exactly four binary bits, called a nibble. This makes hex a compact way to write binary: an 8-bit byte that needs eight binary digits needs only two hex digits.
binary: 1010 1111
hex: A F -> AF
Examples in context
Example 1. Web colours. A colour on a web page such as #FF8800 is three pairs of hex digits for the red, green and blue intensities. Each pair is one byte, so FF is (full intensity) and 00 is (none). Designers read these directly because hex packs each byte into two digits.
Example 2. File sizes. When a phone reports a photo as taking up several megabytes, it is counting bytes, and each byte is eight bits. Understanding that a byte holds patterns is the first step to understanding why a higher-quality image, with more bits per pixel, takes more storage.
Try this
Q1. State what a bit and a byte are, and how they are related. [2 marks]
- Cue. A bit is a single binary digit ( or ); a byte is a group of eight bits.
Q2. Give the denary value of . [2 marks]
- Cue. Place values , so .
Q3. Explain why one hexadecimal digit can represent any 4-bit binary value. [2 marks]
- Cue. Four bits give patterns, and hexadecimal has exactly digits ( to ), so each pattern maps to one hex digit.
Exam-style practice questions
Practice questions written in the style of SEAB exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
Original4 marks(a) State why computers store and process all data in binary. (b) The binary number uses place values. State the place value of each of its four bits, then give the denary value of .Show worked answer →
(a) A computer is built from electronic switches (transistors) that have only two stable states, on and off. Binary has exactly two digits, and , so each digit maps directly to one switch state. This makes storage and processing reliable and simple to build.
(b) The place values of a 4-bit number from left to right are (powers of two: ). For :
8 4 2 1
1 0 1 1
So in denary.
Markers reward linking two binary digits to two switch states, the correct place values , and the denary total .
Original3 marksA programmer writes a colour as the hexadecimal value . (a) State how many binary bits one hexadecimal digit represents. (b) Explain one reason programmers prefer hexadecimal to long binary strings.Show worked answer →
(a) One hexadecimal digit represents exactly binary bits (a nibble), because .
(b) A long binary string is hard to read and easy to copy wrongly. Hexadecimal packs every four bits into a single digit, so an 8-bit byte becomes just two hex digits. This makes values such as colours, memory addresses and machine codes far shorter and less error-prone to write.
Markers reward one hex digit equals four bits, and a clear reason such as compactness or fewer transcription errors.
Related dot points
- Convert whole numbers between denary, binary and hexadecimal using place value, repeated division and nibble grouping
A focused answer to the O-Level Computing point on number base conversion. Converting between denary, binary and hexadecimal using place value, repeated division by two, and grouping binary into nibbles.
- Perform binary addition showing carries, and explain overflow when a result exceeds the fixed width of a register
A focused answer to the O-Level Computing point on binary addition. Adding binary numbers column by column with carries, checking the result against denary, and understanding overflow in a fixed-width register.
- Explain how text (ASCII), sound (sampling) and images (pixels and colour depth) are represented as binary in a computer
A focused answer to the O-Level Computing point on representing data. How text uses character codes such as ASCII, how sound is sampled, and how images are stored as pixels with a colour depth, all as binary.
- Use units of storage from bit to terabyte, and explain lossless and lossy compression and why files are compressed
A focused answer to the O-Level Computing point on data measurement. Units from bit and byte up to terabyte, calculating file sizes, and the difference between lossless and lossy compression and why files are compressed.
- Declare and use Python variables, identify the core data types (int, float, str, bool), and convert between them
A focused answer to the O-Level Computing point on Python variables. Assigning variables, the core data types int, float, str and bool, reading input as a string, and converting between types with int(), float() and str().