S4Success4Sure
Reasoning · Topic guide

Order and Ranking Questions: Formulas and Tricky Cases

Order and ranking is a short, formula-friendly topic that SSC CGL, CHSL and MTS ask in almost every paper, and that IBPS and SBI clerk prelims use for one or two quick questions or as part of a comparison puzzle (who is the tallest, the third heaviest and so on). It rewards a clear head about counting: whether a person is counted from both ends, and whether 'between' includes the two people named. Most questions take under 30 seconds once these rules are second nature.

Last updated 26 November 2026 · By the Success4Sure editorial team · Free

Position from both ends

If a person is p-th from the left and q-th from the right, the person is counted twice, so the total is p + q − 1. The same works for rank from top and bottom in a class. Rearranging gives the position from the other end: right = total − left + 1.

Total = left position + right position − 1

People between two persons

Convert both positions to the same end, subtract and then subtract one more. If A is 8th from the left and B is 19th from the left, 19 − 8 − 1 = 10 people sit between them. If the positions overlap (A's position from the left is larger than B's), the persons are counted in the reverse order and the same subtraction applies.

Interchange questions

When A and B swap places, A takes B's old position. So A's new position from the left is B's old position from the left. Combine that with B's known position from the right to find the total.

Comparison ranking

Statements like 'P is taller than Q but shorter than S' build a chain. Write tallest to shortest in a vertical line and add each person as their position is fixed. Questions ask for the second tallest, the shortest and so on.

Shortcuts and tricks

  • Left + right − 1 = total. 9th from the left and 14th from the right in a row means 22 people.
  • Position from the other end = total − position + 1. In a queue of 40, the 11th from the front is 30th from the back.
  • If a question says 'at least' or 'minimum number of people', test the overlapping case where the two people's positions cross over.
  • For interchange questions, write two lines: before and after. The person who moved inherits the other person's old number.
  • In comparison chains, a person 'taller than only one person' is second from the bottom.

Worked examples

Example 1

In a row, Rohit is 9th from the left end and 14th from the right end. How many people are in the row?

Solution

Rohit is counted in both positions, so total = 9 + 14 − 1 = 22.

Example 2

In a row, A is 10th from the left and B is 15th from the right. When they interchange positions, A becomes 18th from the left. How many people are in the row?

Solution

After the swap A occupies B's old seat, so B was 18th from the left. B was also 15th from the right. Total = 18 + 15 − 1 = 32.

Example 3

In a row of 30 students, P is 8th from the left and Q is 12th from the right. How many students sit between them?

Solution

Q from the left = 30 − 12 + 1 = 19. Students between = 19 − 8 − 1 = 10.

Example 4

In a queue, A is 7th from the front and B is 5th from the back. Exactly three people stand between A and B. What is the minimum number of people in the queue?

Solution

If A is ahead of B, the total is 7 + 3 + 5 = 15. But if B is ahead of A, B is at position 7 − 4 = 3 from the front. Being 5th from the back, the queue has 3 + 5 − 1 = 7 people, with A last. So the minimum is 7.

Practice questions

Question 1

Meera ranks 15th from the top and 21st from the bottom in her class. How many students are in the class?

  1. 36
  2. 34
  3. 35
  4. 37
Show answer & explanation

Answer: C. 35

Meera is counted in both ranks, so the class strength is 15 + 21 − 1 = 35 students.

Question 2

In a row of 50 people, X is 20th from the left and Y is 18th from the right. How many people stand between X and Y?

  1. 13
  2. 11
  3. 14
  4. 12
Show answer & explanation

Answer: D. 12

Y's position from the left is 50 − 18 + 1 = 33. The number between them is 33 − 20 − 1 = 12.

Question 3

Among P, Q, R, S and T, R is the tallest and T is the shortest. Q is taller than only T. P is shorter than S. Who is the third tallest?

  1. P
  2. S
  3. Q
  4. R
Show answer & explanation

Answer: A. P

Tallest to shortest: R first, T last, Q fourth because it is taller only than T. S is taller than P, so S is second and P is third.

Question 4

In a row, M is 12th from the left and N is 9th from the right. They interchange places, and M becomes 20th from the left. How many people are in the row?

  1. 27
  2. 28
  3. 29
  4. 30
Show answer & explanation

Answer: B. 28

After the swap M is in N's old seat, so N was 20th from the left and 9th from the right. Total is 20 + 9 − 1 = 28.

Question 5

Neeraj is 11th from the front in a queue of 40 people. What is his position from the back?

  1. 29th
  2. 31st
  3. 30th
  4. 28th
Show answer & explanation

Answer: C. 30th

Position from the back equals total minus position from the front plus one, so 40 − 11 + 1 = 30th.

FAQs

Why do we subtract one when adding positions from both ends?

Because the person is counted in both numbers. If Rohit is 9th from the left, he is included in those nine; if he is 14th from the right, he is included again. Adding 9 and 14 counts him twice, so we subtract one to get the true total of 22.

How do I handle 'at least how many people' questions?

Look for the arrangement where the two named people overlap, meaning the second person's position from the front comes before the first person's. That usually gives a much smaller total. Check both arrangements, and pick the smaller total only if every condition still holds.

Practise for these exams

More Reasoning topics