• Foundation
  • About 12 min
  • 5 practice questions

Position from the top and the bottom

Learn the key formula linking a person's rank from the top, rank from the bottom and the total number of people.

If something looks wrong, please tell us.

Ranking questions ask where a person stands in a line, a class or a list. The same person can be 5th from the top and 26th from the bottom, depending on which end you count from. One simple formula connects the two counts, and it solves a large share of the questions in this topic.

The key formula

If a person is at position T from one end and position B from the other end, the person is counted twice, so: Total = T + B - 1. Rearranged: B = Total - T + 1, and T = Total - B + 1.

Total = T + B - 1

  • Find the total Total = T + B - 1
  • Find the position from the bottom B = Total - T + 1
  • Find the position from the top T = Total - B + 1

Why the minus 1?

In a line of 10 people, the person who is 3rd from the left has 2 people to the left and 7 to the right, so is 8th from the right. T + B = 3 + 8 = 11, which is one more than 10 because the person himself was counted in both rankings.

Worked examples

Example 1. Rahul ranks 7th from the top in a class of 30. What is his rank from the bottom? B = 30 - 7 + 1 = 24th.

Example 2. Meena is 12th from the top and 20th from the bottom. How many students are in the class? Total = 12 + 20 - 1 = 31.

Example 3. In a row, Raj is 10th from the left and 15th from the right. How many people are in the row? Total = 10 + 15 - 1 = 24.

Example 4. In a row of 40 people, Sita is 14th from the front. What is her position from the back? B = 40 - 14 + 1 = 27th.

Total = (position from one end) + (position from the other end) - 1.

— Formula to remember

Key takeaways

  • Total = T + B - 1.
  • From-the-other-end position = Total - position + 1.
  • A person with equal positions from both ends is in the exact middle of an odd-sized row.

Check your understanding

  1. 1. In a class of 42, Rahul ranks 11th from the top. What is his rank from the bottom?

    1. 32nd
    2. 31st
    3. 33rd
    4. 30th
    Show answer

    Answer: A. From the bottom = Total - position + 1 = 42 - 11 + 1 = 32.

  2. 2. In a row, Kabir is 13th from the left and 19th from the right. How many people are in the row?

    1. 32
    2. 30
    3. 31
    4. 33
    Show answer

    Answer: C. Total = 13 + 19 - 1 = 31. Kabir is counted in both positions, so 1 is subtracted.

  3. 3. In a queue, Dev is 8th from the front and 8th from the back. How many people are in the queue?

    1. 16
    2. 15
    3. 14
    4. 17
    Show answer

    Answer: B. Total = 8 + 8 - 1 = 15. With equal positions from both ends, Dev is exactly in the middle of the queue.

  4. 4. In a row of 27 people, Ajay is 27th from the left. What is his position from the right?

    1. 27th
    2. 26th
    3. 2nd
    4. 1st
    Show answer

    Answer: D. From the right = 27 - 27 + 1 = 1. The last person from the left end is the first from the right end.

  5. 5. Why does the formula Total = T + B - 1 subtract 1?

    1. Because the person is counted in both positions
    2. Because counting starts from zero
    3. Because one person is always left out of the line
    4. Because the first position is not counted
    Show answer

    Answer: A. Position T counts the person from one end and position B counts the same person again from the other end, so adding them counts that person twice. Subtracting 1 removes the double count.

Sign in to keep track of the lessons you finish.

Next lesson → People between two positions

Privacy · Terms · Refunds · Delivery