Ranking and Order: formulas, shortcuts & solved examples
What it is
Ranking and order questions give a person's position from the top, bottom, left or right of a row or class list and ask for the total number of people, a position from the other end, or how many people stand between two persons. These questions are short, formula-based and common in campus placement and government exam reasoning sections.
Key formulas and rules
Total from two positions
If a person is p-th from one end and q-th from the other end, the total number of people is:
Total = p + q − 1
The person is counted twice, which is why we subtract 1.
Position from the other end
If a person is p-th from one end in a row of N people, their position from the other end is:
N − p + 1
People between two persons (no overlap)
If A is a-th from the left and B is b-th from the right, and A is to the left of B, then the number of people between them is:
N − (a + b)
People between two persons (with overlap)
If a + b is greater than N, their positions cross over. Then the number of people between them is:
a + b − N − 2
Conversion to one end
The cleanest method for any question is to convert every position to "from the left" (or "from the top"). Then the number of people between positions x and y is simply |x − y| − 1.
Shortcuts
Shortcut 1: Always convert to one end
Rather than remembering four separate formulas, change all positions to the same end using N − p + 1. Everything else becomes subtraction.
Shortcut 2: Swaps keep the other-end rank
When two people swap places, each takes the other's position. So the new rank of one person from one end equals the old rank of the other from that end. This links information from before and after the swap.
Shortcut 3: Check whether a + b exceeds N
Before choosing a formula for people between, compare a + b with N. If it is less, there is no overlap. If it is more, the persons have crossed.
Solved examples
Example 1: Total in a class
In a class, Kavya ranks 14th from the top and 23rd from the bottom. How many students are in the class?
Total = 14 + 23 − 1 = 36 students.
Example 2: People between, no overlap
In a row of 40 students, Ankit is 10th from the left and Neha is 15th from the right. How many students are between them?
10 + 15 = 25, which is less than 40, so there is no overlap. Between them = 40 − 25 = 15 students.
Check with one end: Neha is 40 − 15 + 1 = 26th from the left. Between 10 and 26 there are 26 − 10 − 1 = 15. Both methods agree.
Example 3: People between, with overlap
In a row of 30 people, Suresh is 18th from the left and Farhan is 20th from the right. How many people stand between them?
18 + 20 = 38, which is more than 30, so they overlap. Between = 38 − 30 − 2 = 6 people.
Check: Farhan is 30 − 20 + 1 = 11th from the left. Between positions 11 and 18 there are 18 − 11 − 1 = 6.
Example 4: Position swap
In a row, Asha is 12th from the left and Divya is 8th from the right. When they swap places, Asha becomes 20th from the left. How many people are in the row?
After the swap, Asha stands where Divya stood. So Divya's original place is 20th from the left and 8th from the right. Total = 20 + 8 − 1 = 27 people.
Common mistakes
- Forgetting to subtract 1. Adding both ranks without subtracting 1 counts the person twice.
- Using the no-overlap formula when positions cross. Always check whether a + b exceeds the total first.
- Mixing ends. Using a left position and a right position in a "between" calculation without converting gives wrong results.
- Misreading swaps. After a swap, the person takes the other person's place, not their rank number from the same end.
- Assuming a unique answer. Some questions, especially when the total is not given, allow more than one arrangement. Check whether the data truly fixes the answer.
Quick practice routine
For every practice question, convert all ranks to one end before doing anything else. After a little practice, this single habit handles almost every ranking question type, including swaps and overlaps, without memorising multiple formulas.
Practice now: https://www.testsworld.com/mocks