• Practice
  • About 12 min
  • 5 practice questions

The total formula: top and bottom ranks

Use the rank-from-top and rank-from-bottom relation to find the total number of people or a missing rank.

If something looks wrong, please tell us.

Ranking questions place people in a line or a class list. The same person has two positions, counted from the two ends. Linking them with one formula solves most basic questions.

The formula

For one person, the rank from the top plus the rank from the bottom equals the total number of people plus 1. So total = top rank + bottom rank - 1. The same holds for left and right in a row.

Why it works

The person is counted in both ranks. Adding the two counts includes the person twice, so we subtract 1.

Worked example 1

Rahul is 7th from the top and 18th from the bottom. Total = 7 + 18 - 1 = 24.

Worked example 2

In a class of 40, Mohan is 15th from the bottom. His rank from the top is 40 - 15 + 1 = 26.

Total = rank from one end + rank from the other end - 1.

— Formula to remember

Key takeaways: top rank plus bottom rank minus 1 gives the total; the bottom rank is total minus top rank plus 1.

Check your understanding

  1. 1. Anu is 23rd from the top and 15th from the bottom. How many students are in the class?

    1. 37
    2. 38
    3. 36
    4. 8
    Show answer

    Answer: A. Total = 23 + 15 - 1 = 37. (8 is the difference of the ranks, which means nothing here.)

  2. 2. In a class of 60, a girl is 25th from the top. What is her rank from the bottom?

    1. 35th
    2. 37th
    3. 36th
    4. 34th
    Show answer

    Answer: C. From the bottom = 60 - 25 + 1 = 36.

  3. 3. In a class of 31, Ramesh is exactly in the middle. What is his rank from the top?

    1. 15th
    2. 16th
    3. 17th
    4. 31st
    Show answer

    Answer: B. The middle of 31 is (31 + 1) / 2 = 16, so he is 16th from the top and from the bottom. Check: 16 + 16 - 1 = 31.

  4. 4. In a class of 40, Mohan is 28th from the bottom. What is his rank from the top?

    1. 12th
    2. 14th
    3. 11th
    4. 13th
    Show answer

    Answer: D. From the top = 40 - 28 + 1 = 13.

  5. 5. Rohit is 14th from the top and also 14th from the bottom. How many students are in the class?

    1. 27
    2. 28
    3. 26
    4. 29
    Show answer

    Answer: A. Total = 14 + 14 - 1 = 27, with Rohit exactly in the middle.

Sign in to keep track of the lessons you finish.

Next lesson → People between two positions

Privacy · Terms · Refunds · Delivery