Skip to content
Matheminate
TopicsProgressWorksheetsGamesLabToolsAbout
Home/OlympiadMath Olympiad Practice/Counting Handshakes
Logic and PatternsIntermediate

Counting Handshakes

Skill: counting a quantity twice on purpose, then correcting for it

Problem

Six people meet at a maths club. Each person shakes hands with each of the others exactly once.

1. How many handshakes happen in total?

2. Each person counts how many hands they shook. The six counts add up to 30. Explain why that total must be exactly twice the number of handshakes.

Hints

Hint 1

Pick one person. How many hands do they shake?

Hint 2

If all six people shake 5 hands, then 6 × 5 = 30 sounds like the answer. What has gone wrong?

Hint 3

Take a single handshake between two people. How many times did you count it in that 30?

Solution

  1. 1

    Count from one person's side.

    Each of the six people shakes hands with the other five, so counting everyone's handshakes gives 6 × 5 = 30. That 30 counts handshakes as seen by people, not handshakes as events.

  2. 2

    Find the double count.

    Look at the handshake between A and B. It appears once in A's five handshakes and once in B's five. No handshake is missed, and every handshake is counted exactly twice. So 30 is twice the number of actual handshakes.

  3. 3

    Correct it.

    30 ÷ 2 = 15 handshakes.

  4. 4

    Check by ordered counting.

    Line the people up. The first shakes 5 hands. The second has already shaken the first, so adds 4 new handshakes. Then 3, then 2, then 1, then 0 for the last person. The total 5 + 4 + 3 + 2 + 1 = 15 agrees with the halved count.

  5. 5

    Part 2.

    The six personal counts are exactly the 30 from step 1. Each handshake adds 1 to two different people's counts, so the sum of all the counts is always twice the number of handshakes: 2 × 15 = 30. Nothing special about six people is needed here; the sum is even for any group.

Answer: 15 handshakes, and the counts sum to 30 because each handshake is counted by both people involved.

Why this works

Counting the same set in two different ways is one of the most useful moves in mathematics. Here it also supplies the correction: counting from every person's side counts each handshake twice, so divide by two.

Every handshake adds 1 to two different people's counts, so the sum of all counts is even. This is called the handshake lemma. One consequence is that the number of people who shook an odd number of hands must be even, since an odd sum could not otherwise be avoided.

Try a related problem

Ten people each shake hands with each of the others exactly once. How many handshakes?

45. Each of the 10 people shakes 9 hands, giving 10 × 9 = 90 counts. Every handshake is counted twice, so 90 ÷ 2 = 45. The ordered count agrees: 9 + 8 + 7 + 6 + 5 + 4 + 3 + 2 + 1 = 45. In general, n people give n(n−1)/2 handshakes.

← All Olympiad problems

Matheminate

Free math practice for Grades 4–12.

© 2026 Matheminate. All rights reserved.

Practice

  • Topics
  • Interactive Lab
  • Math Articles
  • Olympiad Practice

Site

  • About
  • Contact
  • Support
  • Privacy
  • Terms

Follow

  • Instagram
  • X