GCSE Revision Aid: This resource is designed to support your revision and may contain errors. If you find a discrepancy with your class teaching, your teacher is correct โ€” please let us know at gcserevise@scott.scottrix.co.uk.

CS15: Number Bases

Foundation Higher AQAEdexcelOCREduqas

Understanding decimal (base 10), binary (base 2), and hexadecimal (base 16) number systems, and why computers use binary and humans use hex.

Fastmail

๐Ÿ“‹ What is a Number Base?

A number base (or radix) is the number of unique digits used to represent numbers in a positional numeral system. The position of each digit determines its value - this is called positional notation.
Number Base Name Digits Used Example
Base 10 Decimal / Denary 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 255
Base 2 Binary 0, 1 11111111
Base 16 Hexadecimal 0-9, A, B, C, D, E, F FF

๐Ÿ”Ÿ Decimal (Base 10)

Decimal is the number system we use every day. It has 10 digits (0-9). Each position represents a power of 10: units, tens, hundreds, thousands, etc.
Decimal Place Values:
Position: 4 3 2 1 0
Multiplier: 10000 1000 100 10 1

Example: 3754 = 3x1000 + 7x100 + 5x10 + 4x1
= 3000 + 700 + 50 + 4 = 3754
Why do humans use base 10? Most likely because we have 10 fingers! There is nothing mathematically special about base 10 - it is just what we are used to.

01๏ธโƒฃ Binary (Base 2)

Binary uses only two digits: 0 and 1. Each position represents a power of 2. Binary is the fundamental language of computers because electronic circuits have two states: on (1) and off (0).
Binary Place Values (8-bit):
Position: 7 6 5 4 3 2 1 0
Multiplier: 128 64 32 16 8 4 2 1

Example: 10110100
= 1x128 + 0x64 + 1x32 + 1x16 + 0x8 + 1x4 + 0x2 + 0x1
= 128 + 32 + 16 + 4 = 180
Binary Values
BinaryDecimal
000000000
000000011
0000101010
01100100100
11111111255

An 8-bit binary number can represent values from 0 to 255 (256 different values).

๐Ÿ’ป Why Computers Use Binary

Computers use binary because their hardware is built from billions of transistors, which are electronic switches with exactly two states: ON (electricity flowing) and OFF (no electricity flowing). These two states map perfectly to 1 and 0.

Reasons for Binary

Key point: If we tried to use more states (e.g. base 10 with 10 voltage levels), it would be much harder to distinguish between similar values, especially with electrical interference. Binary's two clear states make it incredibly reliable.

๐Ÿ”Ÿ๐Ÿ”ข Hexadecimal (Base 16)

Hexadecimal uses 16 digits: 0-9 and A-F (where A=10, B=11, C=12, D=13, E=14, F=15). Each position represents a power of 16. Hex is used as a shorthand for binary because it is much easier for humans to read.
Hex Digit Decimal Value Binary (4 bits)
000000
110001
220010
330011
440100
550101
660110
770111
881000
991001
A101010
B111011
C121100
D131101
E141110
F151111
Hex Place Values:
Position: 2 1 0
Multiplier: 256 16 1

Example: 3C4
= 3 x 256 + 12 x 16 + 4 x 1
= 768 + 192 + 4 = 964

๐Ÿค” Why Use Hexadecimal?

Hex is NOT used by the computer - the computer always uses binary internally. Hex is used by humans as a convenient shorthand for binary values. One hex digit represents exactly 4 binary digits (bits).
Hex as Binary Shorthand

Binary: 1101001111010110 (16 digits - hard to read!)

Hex: D3D6 (4 digits - much easier!)

Each hex digit maps to exactly 4 bits: D=1101, 3=0011, D=1101, 6=0110

Where Hex is Used

Representation Value Length Readability
Binary 1111111111111111 16 digits Hard to read
Decimal65535 5 digits Can't see bit patterns
Hex FFFF 4 digits Short and bit-aligned

โš ๏ธ Common Mistakes

Mistake Why It's Wrong How to Fix It
Saying computers use hex Computers only use binary; hex is for humans Computers use binary; hex is a human-readable shorthand
Counting binary positions from right as 1 Positions start at 0, not 1 Rightmost bit is position 0 (worth 1), next is position 1 (worth 2)
Forgetting hex digits go up to F A=10 through F=15, not just 0-9 Memorise A=10, B=11, C=12, D=13, E=14, F=15
Confusing digit count with value 8-bit binary is not the same as decimal 8 8 bits can store 0-255, which is 256 different values

โ“ Practice Questions

Q1: What is the decimal value of binary 10110?

Q2: What is the decimal value of hex 2F?

Q3: Why do computers use binary instead of decimal?

Q4: Why is hexadecimal used instead of binary when humans read computer data?

Q5: What decimal number does the hex digit C represent?

โœ… Answers

  1. 1x16 + 0x8 + 1x4 + 1x2 + 0x1 = 16 + 4 + 2 = 22
  2. 2 x 16 + 15 x 1 = 32 + 15 = 47
  3. Computers use binary because their hardware consists of transistors that have only two states: on (1) and off (0). This makes binary the natural representation for electronic circuits. Using only two states also makes it reliable and easy to distinguish between values even with electrical noise.
  4. Hexadecimal is used because one hex digit represents exactly 4 binary bits, making it a compact and easy-to-read shorthand for binary. A 16-digit binary number like 1111111111111111 becomes just FFFF in hex. It is much easier for humans to read and less error-prone than long binary strings.
  5. C = 12 in decimal.

๐ŸŽฏ Exam Tips

โš ๏ธ Common Errors

โœ— Thinking binary digits can be 0, 1, or 2 โœ“ Binary (base 2) only uses digits 0 and 1. The digit 2 is invalid in binary โ€” 2 in decimal is 10 in binary.

โœ— Confusing the place values of different number bases โœ“ Binary place values are powers of 2 (1, 2, 4, 8, 16...), hexadecimal uses powers of 16 (1, 16, 256...), and decimal uses powers of 10 (1, 10, 100...).

โœ— Thinking hexadecimal is a different number system from binary in terms of storage โœ“ Hexadecimal is a shorthand representation of binary for human readability. Each hex digit represents 4 binary bits; the computer still stores binary.

โœ— Believing that 10 in binary equals 10 in decimal โœ“ 10 in binary equals 2 in decimal. 10 in hexadecimal equals 16 in decimal. Always check which base is being used.

โœ๏ธ Model Answer

Full-Mark Response

Convert the decimal number 156 to binary and to hexadecimal. Show your working for each conversion. [4 marks]

Decimal to Binary (divide by 2, record remainders): 156 รท 2 = 78 r 0 78 รท 2 = 39 r 0 39 รท 2 = 19 r 1 19 รท 2 = 9 r 1 9 รท 2 = 4 r 1 4 รท 2 = 2 r 0 2 รท 2 = 1 r 0 1 รท 2 = 0 r 1 Read remainders bottom-up: 10011100 Decimal to Hexadecimal (divide by 16): 156 รท 16 = 9 remainder 12 9 รท 16 = 0 remainder 9 12 = C in hex Read remainders bottom-up: 9C So 156โ‚โ‚€ = 10011100โ‚‚ = 9Cโ‚โ‚†

๐Ÿ“Š AO Deep Dive

Assessment Objective Analysis

AO1 (Computational Thinking โ€” 40%): Demonstrate knowledge and understanding of the principles and concepts of computer science, including number bases: binary, decimal and hexadecimal for AQA 8525, OCR J277 & Edexcel 1CP2.

AO2 (Application โ€” 40%): Apply knowledge and understanding of computer science, including number bases: binary, decimal and hexadecimal to analyse problems in computational terms and to design, write and evaluate solutions.

AO3 (Evaluation โ€” 20%): Evaluate the effectiveness, correctness and efficiency of computational solutions, including number bases: binary, decimal and hexadecimal, and make reasoned judgements about trade-offs.

๐Ÿ“ Exam Technique

GCSE Computer Science Exam Tips:
Binary โ†’ Decimal: multiply each bit by its place value (powers of 2) and sum. Decimal โ†’ Binary: repeated division by 2, read remainders bottom-up. Hex โ†’ Binary: convert each hex digit to 4 binary bits. Binary โ†’ Hex: group bits in fours from right, convert each group. Always show your working step by step. Label the base of your answer (โ‚‚, โ‚โ‚€, โ‚โ‚†).

๐Ÿ“ Exam Questions by Topic

๐ŸŽฌ Video Resources

Share this page

Ready to ace your GCSE Computer Science exams?

Get the best revision books and guides to boost your grades.