The largest number n bits can hold
The biggest whole number n bits can hold. Counting starts at 0, so n bits give 2^n values and the largest is one less. Example: 4 bits hold 0 to 15 and 8 bits hold 0 to 255.
Understanding The largest number n bits can hold in ACARA Digital Technologies Years 7–8
What it does: 2^4 is 16 values (0 to 15), so the biggest number is 16 - 1 = 15. Zero uses up one of the 2^n patterns, so the top number is 2^n - 1. 4 bits give 2^4 = 16 values, but counting starts at 0, so the biggest is 16 - 1 = 15 (1111). 3 bits hold 2^3 = 8 values. They are 0, 1, 2, 3, 4, 5, 6, 7, so the largest is 7 (111). The biggest value has every bit set to 1. 1111 is 15, while 1000 is only 8. 2^8 = 256 different values, because 0 counts as a value. The largest of them is 255.
Common mistakes: The number of values n bits can store is 2 to the power of n, written 2 ** bits. Multiplying (2 * bits) gives 8 instead of 16 values. The base is 2 and the number of bits is the power, so 8 bits give 2 ** 8 = 256 values. 8 ** 2 swaps them and gives 64.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 173–188) and word search (Modules 153–188).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
2^n - 1Fill in the Blanks
Spot the Error
Student with a class code? Join your class →