Frequency analysis of ciphertext
Counting how often each letter appears in ciphertext. The most common letter probably stands for E, so an attacker can work out the key.
Understanding Frequency analysis of ciphertext in ACARA Digital Technologies Years 7–8
What it does: Counting letter frequencies is the first step of frequency analysis. It gives a tally that can be compared with English. E is the most common letter in English, so the most common ciphertext letter probably stands for E. E appears more often than any other letter in typical English text. Q is one of the rarest. If plaintext E was shifted to H, you move forward 3 letters (E, F, G, H). So the key is 3. Longer messages give more letters to count. The pattern of common letters shows up clearly, so the guess is more reliable. Once the attacker guesses E, they can work out the shift and test it. If the result is readable English, the guess was right.
Common mistakes: Counting letter frequencies means adding 1 to a letter's count each time it appears. It should be += 1, not -= 1. The attacker wants the most common ciphertext letter, because it probably stands for E. It should be max count, not min count.
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 674–695) and word search (Modules 635–695).
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
frequency analysisFill in the Blanks
Spot the Error
Student with a class code? Join your class →