• Practice
  • About 13 min
  • 5 practice questions

Decoding letter codes: undoing the rule

Recover the original word from a code by reversing shifts, using the mirror rule, reversing again, and undoing a two-step code in the opposite order.

If something looks wrong, please tell us.

Coding questions give you a word and a rule, and you work forward. Decoding questions give you the code and the rule, and you work backward. The ideas are the same, but one mistake is common: using the rule instead of undoing it. This lesson sets out how to undo each kind of rule.

How to undo each rule

Undoing a rule
Rule used to make the codeTo get back the word
Each letter moved forward by nMove each letter back by n
Each letter moved back by nMove each letter forward by n
Opposite letters (A with Z, B with Y ...)Use the opposite letters again
Word reversedReverse again
Alternating +1 and -1Alternate -1 and +1, starting with -1
Two steps: step 1 then step 2Undo step 2 first, then undo step 1

The opposite-letter rule and the reversal rule undo themselves. If you apply them twice, you return to the word you began with. That is why the same rule is used for coding and decoding.

Worked examples

Example 1. A word is coded by moving each letter forward by 2, and the code is LWOR. Move each letter back by 2: L to J, W to U, O to M, R to P. The word is JUMP.

Example 2. A word is coded by the opposite-letter rule, and the code is SVOK. Use the opposite letters: S to H, V to E, O to L, K to P. The word is HELP.

Example 3 (two steps). A word is coded by reversing it and then moving each letter forward by 1. The code is FTVPN. Undo the second step first: move each letter back by 1, giving E, S, U, O, M. Then undo the first step: reverse ESUOM to get MOUSE. The word is MOUSE.

Example 4 (alternating). A word is coded by moving the letters +1, -1, +1, -1, +1, and the code is QKBMU. Undo with -1, +1, -1, +1, -1: Q to P, K to L, B to A, M to N, U to T. The word is PLANT.

To decode, apply the opposite move. For two steps, undo the last one first.

— Rule to remember

Example 5 (a number code). A word is coded by subtracting 1 from the position of each letter, and the code is 1-14-24. Add 1 to each number: 2, 15, 25. These are the letters B, O, Y. The word is BOY. For number codes, the check is that each decoded number lies between 1 and 26.

Why the order of undoing matters

Putting on socks and then shoes needs the opposite order to undo: shoes off first, then socks. A two-step code works in the same way. If a word is reversed and then shifted, you must undo the shift before you undo the reversal. In some cases the two orders give the same word, but in many cases they do not, so keep to the rule.

Checking the answer

  • Apply the original rule to your decoded word. You should get the code back.
  • Check that the decoded word is a real word, if the question says it is.
  • Count the letters. The word and the code have the same length.

Key takeaways

  • Decoding means applying the opposite move.
  • Mirror and reversal rules undo themselves.
  • For two steps, undo the last one first, then the first one.

Check your understanding

  1. 1. Each letter was moved forward by 3. The code is IDUP. What is the word?

    1. FARM
    2. FAIR
    3. HARM
    4. FIRM
    Show answer

    Answer: A. Move each letter back by 3: I to F, D to A, U to R, P to M. The word is FARM.

  2. 2. A word was coded by the opposite-letter rule and the code is KOZMG. What is the word?

    1. PLANE
    2. PLATE
    3. PLANT
    4. PLAIN
    Show answer

    Answer: C. Use the opposite letters: K to P, O to L, Z to A, M to N, G to T. The word is PLANT.

  3. 3. A word was reversed and then each letter moved forward by 1. The code is IUQFE. What is the word?

    1. HTPED
    2. DEPTH
    3. DEPTS
    4. HTPDE
    Show answer

    Answer: B. Undo the shift: I to H, U to T, Q to P, F to E, E to D, giving HTPED. Then reverse it to get DEPTH.

  4. 4. The code UQBHO was made by +1, -1, +1, -1, +1. What is the word?

    1. TRAINS
    2. TRAIL
    3. BRAIN
    4. TRAIN
    Show answer

    Answer: D. Undo with -1, +1, -1, +1, -1: U to T, Q to R, B to A, H to I, O to N. The word is TRAIN.

  5. 5. In a code made by two steps, which step should you undo first?

    1. The step applied first
    2. The step that changes most letters
    3. The step applied last
    4. The step that is easiest
    Show answer

    Answer: C. You must undo the last step first, as you take off shoes before socks.

Privacy · Terms · Refunds · Delivery