not to match you — to match each other
Ask how many people a room needs before two of them probably share a birthday, and most guesses land somewhere near 183 — half of 365, as if the question were about matching one particular day. It is not. Nobody's birthday has to match yours, or any named day at all. Any two people in the room, matching each other, count. And pairs multiply much faster than people do: 23 people make 253 pairs, and every pair is its own small chance.
The arithmetic counts the opposite event, because it is the easier one to build. Give the people birthdays one at a time and ask that each new birthday avoid every one already taken: the first person is free (365 days out of 365), the second must miss one day (364 out of 365), the third must miss two, and so on. Multiply those fractions and subtract from one, and you get the chance of at least one shared birthday. At 23 people the product crosses below a half: the chance of a match is 50.73% — better than even, in a room smaller than most classrooms.
The curve is drawn from this page's own formula, not traced from a picture of one. The dashed line is an even chance; the dot marks 23 people, where the curve crosses it.
With 23 people (253 pairs), the chance that at least two share a birthday is 50.73%.
The intuition that fails here is a quiet substitution: we answer the question we can picture — someone matching me — instead of the one asked — anyone matching anyone. To have an even chance of someone matching your own birthday specifically, you really would need about 253 people in the room. The coincidence is not a coincidence: 253 is exactly the number of pairs 23 people make, and it is the pairs, not the people, that the odds are spent on.
Checked before shipping, by executing this page's own formula: 10 people give 11.69%; 20 give 41.14%; 22 give 47.57% and 23 give 50.73% — the crossing sits between those two, nowhere else; 30 give 70.63%; 50 give 97.04%; 70 give 99.92%. One honesty note: the formula assumes 365 equally likely birthdays, no leap day, and no season to births. Real birthdays are slightly uneven across the year, and unevenness only helps matches happen — so a real room is, if anything, a touch more likely to share one than this page says.