HumanDebugminigames & tests

Your streak

How it works

The site has a new address

We're now at humandebug.eu. We've brought over the progress saved in your browser.

If you had an account, sign in again: your leaderboards, records and streak are waiting for you, nothing has been lost.

Sign in

How many triangles are there? A method that never misses

By Luigi Federico · updated

A triangle with a few lines inside, and the question: how many triangles are there? Almost everyone answers too low. It isn't carelessness: it's the way the brain groups lines. With a method, though, you get the right number every time.

Play How Many Triangles?3 min, new every day, free

How the game works

Every day 5 figures, from easiest to hardest: triangles cut by rays and crossbars, triangular grids, squares with diagonals, stars. Type how many triangles you see, of every size.

After you answer, the triangles light up one at a time, so you see which ones you missed. The exact number scores full points, off by one scores half.

Why we see fewer

The brain immediately groups lines into the simplest shapes: the small triangles. Once a line has been "used" for one triangle, it struggles to see it as the side of a bigger one too. Psychologists study this with hidden figures, where a simple shape is buried inside a complex one.

That's why counting "by eye" stops at the single pieces and misses the triangles made of two, three or more pieces.

The method for counting them

Count in groups, never at random. First the triangles made of a single piece, then those made of two neighbouring pieces, then three, and so on up to the whole triangle. Write down the partial counts and add them up at the end.

In fan-shaped triangles (rays from the top and horizontal lines) there's a shortcut: every triangle comes from two rays and one horizontal line. With 5 rays (sides included) there are 10 pairs of rays; with 2 horizontal lines (base included) there are 10 × 2 = 20 triangles. With 6 rays and 3 lines: 15 × 3 = 45.

Other handy results: a square with both diagonals has 8 triangles; a five-pointed star has 10, and 35 with a pentagon around it; a triangle split into 4 rows of small triangles has 27.

The triangular grid formula

A triangle split into n rows of small triangles (like a pyramid of bowling pins) contains n × (n + 2) × (2n + 1) ÷ 8 triangles, rounded down. With 2 rows that's 5, with 3 it's 13, with 4 it's 27, with 5 it's 48, with 6 it's 78.

The number grows fast because besides the triangles pointing up there are upside-down ones, which from the third row on start to be bigger than a single piece.

The vertex method, for odd figures

When there's no formula, give a letter to every point where lines meet. Then start from one point, take a pair of lines coming out of it and count the lines that cut across both: each one closes a triangle. Move on to the next pair, then the next point.

This way every triangle gets counted three times, once per corner: either divide the total by 3, or only count triangles whose starting corner has the earliest letter. It's the same check the game's program does, just slower.

Frequently asked questions

Do upside-down triangles count?
Yes: count every triangle, facing any way and of any size, as long as all three sides are drawn lines.
Who decides the right number?
The program works it out by trying every set of three points in the figure: no answers written by hand.
Are the figures the same for everyone?
Yes, the daily challenge is the same for everyone. In practice mode the figures are always new.
How many figures are there each day?
Five, each harder than the last: they're worth 100 to 300 points each.
Is there a time limit?
No, but if the number is exact and you answer quickly you get up to 20% more points.
Can I see the answer?
Yes: after each answer the triangles light up one at a time. You can skip the animation and see the total straight away.
Is it free? Do I need to sign up?
Yes, it's free and you play in your phone or computer browser, with no app and no sign-up. An account is only needed to join the leaderboard and keep your results across devices.
When does the challenge change?
Every day at midnight, Italian time. The challenge is the same for everyone, and you can replay the previous 7 days or practise with ever-new games that don't count for the leaderboard.

Source: H. A. Witkin, Individual differences in ease of perception of embedded figures (1950).

Educational content, not medical or psychological advice.

More guides