Reasoning · 18 min read

Coding-Decoding

Coding-Decoding is the topic candidates most often get wrong for a reason that has nothing to do with reasoning: they do not know the alphabet well enough. Every question in this chapter is a pattern hidden in letter positions, and if you have to count from A on your fingers, you will run out of time before you find it.

So this page starts with the alphabet table and the two mnemonics worth memorising, then works through every question shape that follows from it — simple shifts, opposite letters, number codes, message codes, the banking new-pattern set and conditional coding. The reasoning is easy. The recall is what you are actually being tested on.

Current affairs · 19 September 2026

Today’s current affairs, checked at the source

Every item is dated, read on the conducting body’s or ministry’s own site, and written with the question it becomes. Read today’s items, take the quiz, or download the month as a PDF.

19September 2026

Today’s poster

What to note today

  1. 01

    No charges on UPI payments up to ₹2,000 and on RuPay debit cards, by notification

    Economy and banking14 SeptemberMinistry of Finance notification of 14 September 2026

  2. 02

    Retail inflation rose to 4.82 per cent in August 2026

    Economy and banking14 SeptemberMoSPI CPI press release of 14 September 2026

  3. 03

    SEMICON India 2026 opened at Yashobhoomi on the theme “Silicon to Systems”

    Science and technology17–19 SeptemberPrime Minister’s Office note of 16 September 2026; inauguration confirmed by agreeing reports of 17 September

  4. 04

Why it matters

Coding-Decoding in the exam

Direct question counts move between cycles, so treat these as ranges rather than promises. Check the notification for the pattern you are sitting.
ExamExpected questionsHow it usually appears
SSC CGL / CHSL Tier 12–4 questionsLetter shifts and number codes, occasionally with a mirror-image twist.
Banking Prelims (IBPS / SBI)0–5 questionsEither absent or a full new-pattern set of five sentence-coding questions.
RRB NTPC / Group D3–4 questionsThe most predictable topic in the paper — direct shifts and substitution.
State Police & SI exams2–4 questionsStraight letter and number coding, rarely new-pattern.
CTET / Teaching exams1–2 questionsSimple shifts inside the general reasoning block.

Start here

The alphabet, in both directions

Before any technique, learn this table cold. Every coding question is a pattern in these numbers, and the candidates who solve them in fifteen seconds are simply the ones who do not have to count.

Letter positions from the front and from the back
LetterFrom AFrom ZOpposite letter
A126Z
E522V
J1017Q
M1314N
O1512L
T207G
Y252B
Z261A

Three facts that replace counting

  • Position from the back = 27 − position from the frontR is 18th from the front, so it is 27 − 18 = 9th from the back.
  • A letter and its opposite always sum to 27A↔Z, B↔Y, C↔X, D↔W … M↔N. This single fact solves every "opposite letter" code.
  • EJOTY: E = 5, J = 10, O = 15, T = 20, Y = 25Land on the nearest anchor and step. To find R: T is 20, step back two to 18.

Wrapping around the ends

When a shift runs past Z, continue from A — Y + 2 is A, not a dead end. Formally, add or subtract 26 to bring the position back into the 1–26 range. Half the wrong answers in this topic come from candidates who stop at Z instead of wrapping, and examiners deliberately place a Y or a Z in the word to catch exactly that.

The most common shape

Letter-to-letter coding

A word is coded as another word. Write the two words one above the other, mark the gap between each pair of letters, and the pattern is usually visible in the first three columns.

Constant shift
Every letter moves the same number of places. TEACHER → UFBDIFS is +1 throughout. Check at least three letters before you commit — a single matching letter proves nothing.
Alternate shift
Odd positions move one way, even positions the other. CAT → DZU is +1, −1, +1. Whenever the gaps refuse to be constant, test whether they alternate before you look for anything cleverer.
Shift by position
The first letter moves 1, the second 2, the third 3, and so on. ABC → BDF. Rare in SSC, common in state-level papers.
Opposite letters
Each letter is replaced by its partner from the other end of the alphabet: GUN → TFM, because 7↔20, 21↔6 and 14↔13. If the gaps look random and large, test the sum-to-27 rule immediately.
Reverse then shift
The word is written backwards and then shifted. MONKEY → XDJMNL: reverse to YEKNOM, then take each letter back one. Suspect this whenever the last letter of the word seems to be driving the first letter of the code.

If MONKEY is coded as XDJMNL, how is DONKEY coded?

  1. The code is the same length, so line them up: M→X, O→D, N→J, K→M, E→N, Y→L. The gaps are wild, so a simple shift is out.
  2. Try reversing first: MONKEY reversed is YEKNOM.
  3. Compare with XDJMNL: Y→X, E→D, K→J, N→M, O→N, M→L — a clean −1.
  4. Apply the same rule to DONKEY: reversed it is YEKNOD, and −1 on each letter gives X, D, J, M, N, C.

Answer: XDJMNC.

Check the length first

If the code has the same number of characters as the word, you are looking at a letter-by-letter rule. If it is shorter — a single number, say — you are looking at a sum or a count, and lining letters up is wasted effort. This one glance decides which half of the chapter applies.

Arithmetic on positions

Number coding

A word becomes a number or a string of digits. There are only a handful of things examiners do to alphabet positions, and you should test them in this order.

What to try, in order

  • Sum of the letter positionsSUN = 19 + 21 + 14 = 54. The single most common number code, and always worth ten seconds first.
  • Sum × or ÷ a constant, or sum ± the number of lettersIf the sum is close to the code but not equal, look at the gap — it is usually the letter count or a small multiple.
  • Each position written out, sometimes ± 1CAT = 3-1-20, or 4-2-21 if the rule adds one before writing.
  • Each position doubled, halved or squaredBOY = 4, 30, 50 is simply each position × 2.
  • A fixed digit per letter (substitution)When two words share letters and share digits in the same places, it is a substitution table — build the table rather than hunt for arithmetic.

If DELHI is coded as 73541 and CALCUTTA as 82589662, how is CALICUT coded?

  1. Both codes have exactly as many digits as their words have letters, and L appears in both words. In DELHI, L is the third letter and the third digit is 5; in CALCUTTA, L is the third letter and the third digit is 5. Substitution confirmed.
  2. Read off the table: D=7, E=3, L=5, H=4, I=1, C=8, A=2, U=9, T=6.
  3. Spell CALICUT with it: C=8, A=2, L=5, I=1, C=8, U=9, T=6.

Answer: 8251896.

Coded sentences

Message coding

Three or four coded sentences are given, and you must find the code for one word. The words inside each sentence are deliberately scrambled, so position tells you nothing — only overlap does.

The method never changes. Take two sentences at a time. Find the words they share in English and the codes they share in the code language. If exactly one word is shared and exactly one code is shared, those two are a pair — and you can strike both out of every other line.

In a certain language, 'pit na som' means 'bring me water', 'na jo dip' means 'water is life', and 'som dip lo' means 'give me life'. Which word means 'me'?

  1. Compare lines 1 and 2. Shared English word: water. Shared code: na. So na = water.
  2. Compare lines 2 and 3. Shared English word: life. Shared code: dip. So dip = life.
  3. Compare lines 1 and 3. Shared English word: me. Shared code: som. So som = me.
  4. The leftovers confirm it: pit = bring, jo = is, lo = give.

Answer: 'som' means 'me'.

When two words are shared at once

If a pair of sentences shares two English words and two codes, you cannot split them yet — record the pair as a set, such as {clear, doubt} = {ma, pi}, and move on. A third sentence almost always contains one of them and resolves it. Guessing which is which is how a whole five-question set goes wrong.

IBPS and SBI

New-pattern banking coding

Banking papers rarely ask one coding question — they ask five off a single block of three or four coded sentences. That changes the economics: the setup costs you two minutes and then each answer costs seconds.

Sentence-based new pattern
Three or four coded sentences, then five questions asking for the code of a particular word or the meaning of a particular code. Solve the whole mapping once, on paper, before reading any question.
Letter-and-number hybrid
Each word is coded as a letter plus a number — the letter usually from the first or last character of the word, the number from its length, its position in the sentence, or the alphabet position of a letter in it. Test length first; it is the most common.
Position-in-sentence coding
The code depends on where the word sits in the sentence, so the same English word may be coded differently in two lines. If a word appears twice with different codes, stop looking for a substitution table — this is the rule in play.
Symbol-and-digit coding
Words map to a symbol chosen by whether the first letter is a vowel or a consonant, and a digit taken from the word length. Read the condition list carefully; the exceptions are where the marks are.

In a code, 'clear the doubt now' is 'ma pi ru jo', 'doubt is very clear' is 'pi la ka ma', and 'the very best now' is 'ru za la jo'. What is the code for 'best'?

  1. Lines 1 and 2 share clear and doubt, and share ma and pi. Record {clear, doubt} = {ma, pi} without splitting it.
  2. Lines 1 and 3 share the and now, and share ru and jo. Record {the, now} = {ru, jo}.
  3. Lines 2 and 3 share only very, and share only la. So la = very.
  4. Line 3 is ru za la jo for the very best now. Remove ru and jo (the/now) and la (very), and one word and one code are left.

Answer: 'za' is the code for 'best'.

Do the mapping before you read the questions

The temptation in an exam is to read question one and hunt for just that word. It is a false economy — the mapping is what takes the time, and once it exists all five questions are lookups. Candidates who work question by question typically finish three of the five and leave marks behind.

Word-level rules

Substitution and reversal

Some codes leave the letters alone and rearrange them instead, or swap one everyday word for another. Both are quick marks once you recognise them.

Whole-word reversal
ORANGE → EGNARO. The giveaway is that the code contains exactly the same letters as the word.
Group reversal
The word is cut into blocks — usually of three — and each block is reversed in place. SYSTEM → SYS|MET, NEARER → AEN|RER. Count the letters and try blocks of three first.
Halves swapped
The first half and second half trade places: PENCIL → CILPEN. Test this whenever the code contains the same letters but reversal alone does not fit.
Word substitution
A dictionary question rather than a pattern one: "if sky is called sea, sea is called water and water is called air, where do fish live?" Follow the chain to whatever the real answer has been renamed to — fish live in water, and water is called air.

If SYSTEM is coded as SYSMET and NEARER as AENRER, how is FRACTION coded?

  1. Both codes use the same letters as their words, so nothing is shifted — only moved.
  2. Split into threes: SYS|TEM becomes SYS|MET, and NEA|RER becomes AEN|RER. Each block of three is reversed.
  3. FRACTION has eight letters: FRA|CTI|ON.
  4. Reverse each block: ARF, ITC, NO.

Answer: ARFITCNO.

SSC and insurance exams

Conditional coding

A table of letters and their codes is given, followed by two or three conditions that override the table in special cases. The reasoning is trivial; the discipline is not.

A typical condition set reads: (i) if the first letter is a vowel and the last a consonant, both are coded as the code for the last letter; (ii) if both the first and last letters are consonants, both are coded as ×; (iii) if the first letter is a consonant and the last a vowel, their codes are interchanged. Only one condition can apply to a given group, and a question always includes at least one group where none applies.

How to work a conditional set

  • Step 1 — write the plain code from the table firstIgnore the conditions completely on the first pass. You now have something to correct rather than something to invent.
  • Step 2 — check only the first and last elementsEvery condition in this format is triggered by the ends of the group, never by the middle.
  • Step 3 — apply at most one conditionThe conditions are written to be mutually exclusive. If two seem to apply, you have misread one.
  • Step 4 — compare options at the ends, not the middleThe four options usually differ only in the first and last characters, so those are the only ones worth checking twice.

The condition that catches everyone

Read "interchanged" carefully. Interchanging the codes of the first and last letters is not the same as coding both with the same symbol, and examiners offer both as options. Underline the verb in each condition before you start — it is the single highest-value ten seconds in this question type.

Error log

Where marks are lost

Four mistakes account for almost every wrong answer in this chapter, and none of them is a reasoning failure.

Confirming the pattern on one letter
A +1 shift and a "reverse then +1" rule agree on plenty of individual letters. Verify on three letters, including the last one, before you apply a rule to the answer word.
Not wrapping past Z
Y + 3 is B. Examiners put Y and Z in the target word precisely because candidates freeze there. Add 26 whenever a position falls below 1, and subtract 26 whenever it climbs above 26.
Coding the wrong word
The question gives you a coded example and then asks about a different word. Circle the word you are actually being asked to code before you write anything down.
Assuming word order in message coding
The codes in a coded sentence are scrambled on purpose. The third code is not the third word. Only overlap between sentences carries information.

Solved examples

Worked line by line

Read the steps rather than the answer. The method is what transfers to the next question.

If TEACHER is coded as UFBDIFS, how is STUDENT coded?

  1. T→U, E→F, A→B — a constant +1.
  2. Check the last letter too: R→S. Confirmed.
  3. Apply +1 to every letter of STUDENT.

Answer: TUVEFOU.

If GUN is coded as TFM, how is BOX coded?

  1. G is 7 and T is 20; 7 + 20 = 27. U is 21 and F is 6; again 27. These are opposite letters.
  2. B is 2, so its partner is 27 − 2 = 25 = Y.
  3. O is 15 → 12 = L. X is 24 → 3 = C.

Answer: YLC.

If PAPER is coded as 56, how is PENCIL coded?

  1. P + A + P + E + R = 16 + 1 + 16 + 5 + 18 = 56. It is a plain sum of positions.
  2. PENCIL = 16 + 5 + 14 + 3 + 9 + 12.

Answer: 59.

If CAT is 24 and DOG is 26, what is BAT?

  1. C + A + T = 3 + 1 + 20 = 24, and D + O + G = 4 + 15 + 7 = 26. Sum of positions.
  2. B + A + T = 2 + 1 + 20.

Answer: 23.

If BOY is written as 4, 30, 50, how is GIRL written?

  1. B is 2 and the code is 4; O is 15 and the code is 30. Each position is doubled.
  2. G = 7 → 14, I = 9 → 18, R = 18 → 36, L = 12 → 24.

Answer: 14, 18, 36, 24.

If RAIN is coded as OXFK, how is HAIL coded?

  1. R (18) → O (15) is −3, and A (1) → X (24) is −3 after wrapping past A.
  2. I (9) → F (6) and N (14) → K (11) confirm it.
  3. H → E, A → X, I → F, L → I.

Answer: EXFI.

If MANGO is coded as OCPIQ, how is PAPAYA coded?

  1. M→O, A→C, N→P: a constant +2.
  2. P→R, A→C, P→R, A→C.
  3. Y is 25, and 25 + 2 = 27, which wraps to 1 = A. Then A→C.

Answer: RCRCAC.

If ABC is coded as BDF, how is DEF coded?

  1. A→B is +1, B→D is +2, C→F is +3. The shift equals the position of the letter in the word.
  2. D + 1 = E, E + 2 = G, F + 3 = I.

Answer: EGI.

In a code, 'ka bi pu' means 'he is good', 'bi lo re' means 'good and bad', and 'pu re na' means 'is bad now'. What is the code for 'bad'?

  1. Lines 1 and 2 share only good, and share only bi. So bi = good.
  2. Lines 1 and 3 share only is, and share only pu. So pu = is.
  3. Lines 2 and 3 share only bad, and share only re.

Answer: 're' means 'bad'.

If PENCIL is coded as MBKZFI, how is PAPER coded?

  1. P (16) → M (13) is −3, E (5) → B (2) is −3, N (14) → K (11) is −3.
  2. C (3) → Z: 3 − 3 = 0, which wraps to 26 = Z. The rule holds.
  3. P → M, A → X, P → M, E → B, R → O.

Answer: MXMBO.

Practice

16 questions on Coding-Decoding

Work each one out before you reveal the answer — the explanation is where the marks are.

  1. Q1In a certain code, CHAIR is written as DIBJS. How is TABLE written?

    • AUBCFM
    • BSZAKD
    • CUBCMF
    • DUCBMF
  2. Q2If RAIN is coded as OXFK, how is HAIL coded?

    • AEXFJ
    • BEXFI
    • CFYGJ
    • DEWFI
  3. Q3If MANGO is coded as OCPIQ, how is PAPAYA coded?

    • ARCRCCA
    • BRCRCAC
    • CRCRCAA
    • DQBQBZB
  4. Q4If LIGHT is coded as ORTSG, how is DARK coded?

    • AWZJP
    • BXZIP
    • CWYIP
    • DWZIP
  5. Q5In a certain code, SUN is written as 54. What is MOON?

    • A54
    • B55
    • C57
    • D60
  6. Q6If DELHI is coded as 73541 and CALCUTTA as 82589662, how is CALICUT coded?

    • A8215896
    • B8251986
    • C8251896
    • D8521896
  7. Q7In a language, 'ka bi pu' means 'he is good', 'bi lo re' means 'good and bad', and 'pu re na' means 'is bad now'. Which word means 'bad'?

    • Abi
    • Bpu
    • Cre
    • Dna
  8. Q8If MONKEY is coded as XDJMNL, how is TIGER coded?

    • AQDFHS
    • BSDFHQ
    • CQDFGS
    • DQCFHS
  9. Q9If SYSTEM is coded as SYSMET and NEARER as AENRER, how is FRACTION coded?

    • AARFTICON
    • BARFITCON
    • CFARITCNO
    • DARFITCNO
  10. Q10If BOY is written as 4, 30, 50, how is CAT written?

    • A3, 1, 20
    • B6, 2, 20
    • C6, 2, 40
    • D9, 1, 40
  11. Q11If PENCIL is coded as MBKZFI, how is PAPER coded?

    • AMXMBO
    • BMXMBP
    • CNXNBO
    • DMWMBO
  12. Q12If CAT is coded as DZU, how is DOG coded?

    • AEPH
    • BENH
    • CCNF
    • DENF
  13. Q13If HOUSE is coded as 68, what is CHAIR?

    • A39
    • B41
    • C37
    • D43
  14. Q14If ORANGE is coded as EGNARO, how is BANANA coded?

    • ABANANA
    • BANABAN
    • CNABANA
    • DANANAB
  15. Q15In a code, 'clear the doubt now' is 'ma pi ru jo', 'doubt is very clear' is 'pi la ka ma', and 'the very best now' is 'ru za la jo'. What is the code for 'best'?

    • Ala
    • Bka
    • Cru
    • Dza
  16. Q16If ABC is coded as BDF, how is DEF coded?

    • AEFG
    • BEGI
    • CEGH
    • DFGI

Questions

Coding-Decoding — FAQs

What is coding-decoding in reasoning?

Coding-decoding gives you a word alongside the code it has been turned into, and asks you to find the rule and apply it to a second word. The rule is almost always an operation on alphabet positions — a shift, a reversal, a sum or a substitution — so the topic is really a test of how well you know the alphabet as numbers.

What is the fastest way to find alphabet positions?

Memorise the EJOTY anchors — E is 5, J is 10, O is 15, T is 20, Y is 25 — and count at most two steps from the nearest one. For positions from the back, subtract from 27 rather than counting: R is 18th from the front, so it is the 9th from the back.

What is the sum-to-27 rule?

Every letter and its opposite from the other end of the alphabet add up to 27: A with Z, B with Y, C with X, and so on to M with N. Whenever the gaps between a word and its code look large and irregular, test this rule before anything else — it explains a large share of SSC coding questions.

How do I solve message or "Chinese" coding questions?

Compare the coded sentences two at a time. If a pair shares exactly one English word and exactly one code, that is a confirmed pair — strike it out everywhere. If a pair shares two words and two codes, record them as an unsplit set and let a third sentence resolve which is which. Position within a sentence tells you nothing, because the codes are deliberately scrambled.

What is new-pattern coding-decoding in bank exams?

Banking papers give three or four coded sentences and then ask five questions from that one block. The efficient approach is to build the entire word-to-code mapping first and then treat the five questions as lookups — solving them one at a time repeats the hardest work five times over.

How many coding-decoding questions come in SSC CGL?

Expect roughly two to four questions in Tier 1, mostly letter shifts and number codes. RRB NTPC is more generous at three to four, and banking prelims is all-or-nothing — either the topic is absent or a full five-question new-pattern set appears.

What do I do when a shift runs past Z?

Wrap around to A and keep going, which is the same as subtracting 26 from the position. Y + 2 is A, and C − 3 is Z. Examiners place Y and Z in the target word specifically to catch candidates who stop at the end of the alphabet.

How do I know whether a code is a shift or a substitution?

Look for a repeated letter. If the same letter produces the same code character everywhere it appears, and different letters produce unrelated characters, it is a substitution table — build the table. If the gap between letter and code is consistent instead, it is a shift.

How do I attempt conditional coding questions?

Write the plain code from the given table first, ignoring every condition. Then check only the first and last elements of the group, apply at most one condition, and compare the options at their ends — that is where they differ. Reading the verb in each condition carefully matters more than any shortcut.

How much time should a coding-decoding question take?

A direct SSC-style question should take twenty to thirty seconds; if a minute has gone and no pattern has appeared, move on and return later. A banking new-pattern block is different — budget two minutes for the mapping and then roughly fifteen seconds for each of the five questions.

Reading it is not the same as knowing it

Attempt a timed mock while the formulas are fresh — that is what tells you which of them actually stuck.

Already practising? Create Free Account to track your preparation.

Explore ExamsTake Free Mock Test