How Many Lines, Planes and Regions a Handful of Points Can Determine
Count the lines and planes through a set of points and the regions that lines cut out, with formulas, reasons, worked cases and one famous trap.
Key takeaways
- With no three points collinear, n points determine one line for each pair, which is n(n − 1) ÷ 2 lines.
- A group of k collinear points contributes only one line where k(k − 1) ÷ 2 pairs were counted.
- In general position, n lines cut the plane into 1 + n(n + 1) ÷ 2 regions.
- A pattern that holds for several small cases can still fail, as the regions inside a circle with joined points show.
If you have n points and no three of them are on one line, they determine n(n − 1) ÷ 2 lines. If, in space, no four lie in one plane and no three on one line, they determine n(n − 1)(n − 2) ÷ 6 planes. When some points line up or share a plane, the counts drop, and you can work out exactly by how much.
Regions are the pieces left when you cut along the lines. They follow their own rules, which depend on how the lines cross. This article builds each count from a short argument, so you can rebuild it if you forget the formula.
Counting lines through points
Two distinct points determine exactly one line. So to count lines, count pairs, provided no line gets counted twice.
With n points, each can partner with n − 1 others, giving n(n − 1) ordered choices. The pair A, B is the same as B, A, so divide by 2.
| Points | 2 | 3 | 4 | 5 | 6 | 10 |
|---|---|---|---|---|---|---|
| Lines (no three collinear) | 1 | 3 | 6 | 10 | 15 | 45 |
There is a second way to see it. Add points one at a time. The new point creates one new line to each earlier point. So the totals grow by 1, then 2, then 3, and the count for n points is 1 + 2 + ... + (n − 1).
The condition "no three collinear" matters. It guarantees that different pairs give different lines. Testing that condition is the subject of checking for collinear points.
When some points line up
Suppose k of the n points lie on one line. The formula counts that line k(k − 1) ÷ 2 times, once for every pair among the k points. Remove all those counts, then put the single line back.
lines = n(n − 1)/2 − k(k − 1)/2 + 1
7 points with 4 on one line:
all pairs 7·6/2 = 21
pairs on the line 4·3/2 = 6
lines 21 − 6 + 1 = 16 If there are several such groups, correct each one separately. This is valid because two different lines share at most one point, so no pair belongs to two groups.
Consider a 3 by 3 grid of nine points. Pairs number 36. There are 8 lines holding three points each: three rows, three columns and two diagonals. Each such line was counted 3 times where it should count once, so subtract 2 for each. The total is 36 − 16 = 20 distinct lines.
At the extreme, all n points on one line give 1 line, and the formula agrees when k = n.
Segments, rays and triangles from the same points
The same points give different totals for different objects, so read the question's noun carefully. A segment is fixed by its two endpoints, so n distinct points give n(n − 1) ÷ 2 segments whether or not any of them line up. Collinear points reduce the number of lines but never the number of segments.
Triangles need three points that are not collinear. With no three collinear, n points give n(n − 1)(n − 2) ÷ 6 triangles. With 4 of 7 points on a line, there are 35 trios in all, and the 4 trios taken entirely from that line are flat. That leaves 31 triangles.
Rays depend on order. If no three points are collinear, each ordered pair gives its own ray: ray AB starts at A and ray BA starts at B. So n points give n(n − 1) rays through a second point, twice the number of lines.
The differences come straight from the definitions of lines, segments and rays. A useful habit is to list the objects for three or four points by hand and confirm that your formula reproduces the list.
The reverse question
You can also work backward. If 45 lines are determined by points with no three collinear, then n(n − 1) = 90, and n = 10. If someone reports 20 such lines, something is wrong: no whole number satisfies n(n − 1) = 40, since 6 · 5 is 30 and 7 · 6 is 42.
When groups of collinear points are allowed, other totals become possible. Five points can give 10, 8, 6, 5 or 1 lines.
no three collinear 10
exactly one line of 3 10 − 3 + 1 = 8
two lines of 3 sharing a point 10 − 2 − 2 = 6
one line of 4 10 − 6 + 1 = 5
all 5 on one line 1 No arrangement of five points gives 9 or 7. Each kind of lined-up group removes a fixed number of lines, and only these combinations fit among five points.
Planes in space
Three noncollinear points determine exactly one plane. If no three of the n points are collinear and no four are coplanar, every trio gives its own plane. The number of trios is n(n − 1)(n − 2) ÷ 6.
For 3 points that is 1 plane. For 4 points it is 4, the faces of a tetrahedron. For 5 it is 10, and for 6 it is 20.
Now let k points share a plane, still with no three collinear. All their trios give that one plane.
6 points, 4 of them in one plane:
all trios 6·5·4/6 = 20
trios inside that plane 4·3·2/6 = 4
distinct planes 20 − 4 + 1 = 17 Collinear trios need separate care. Three points on a line determine no single plane, since infinitely many planes pass through that line. Such a trio should simply be skipped, and the other trios checked for repeats.
Lines cutting the plane into regions
Draw n lines in general position, meaning no two are parallel and no three pass through one point. How many regions appear?
Start with the empty plane: 1 region. Add the lines one at a time. The new line crosses each earlier line once, at separate points. Those n − 1 crossings chop the new line into n pieces. Each piece slices one existing region into two. So the nth line adds exactly n regions.
lines 0 1 2 3 4 5
added 1 2 3 4 5
regions 1 2 4 7 11 16
formula: regions = 1 + n(n + 1)/2 Of these regions, some are bounded and some stretch off forever. With n lines in general position, 2n regions are unbounded, and the remaining (n − 1)(n − 2) ÷ 2 are bounded. For 3 lines that gives 6 unbounded regions and 1 bounded one, the triangle.
Regions from the lines through your points
Combine the two ideas. Take four points with no three collinear, draw all six lines, and count regions. These lines are not in general position, because three of them meet at each of the four points. Assume also that no two of the six lines are parallel and that there are no other coincidences.
A handy rule for any arrangement: start with 1, add 1 for each line, then add (m − 1) for each crossing point where m lines meet.
at each of the 4 given points m = 3, contributes 2, total 8
other crossings 3 points (the opposite-line pairs)
m = 2, contributes 1, total 3
regions = 1 + 6 + 8 + 3 = 18 You can check the crossings: six lines form 15 pairs. At each given point, 3 pairs meet, accounting for 12. The other 3 pairs cross at three further points.
Six lines in general position would give 22 regions. Forcing lines through common points costs four of them.
A warning from the circle
Place n points on a circle, join every pair with a chord, and make sure no three chords pass through one inside point. Count the regions of the disk.
For n = 1 to 5 the counts are 1, 2, 4, 8, 16. Doubling seems obvious. But for six points the answer is 31, not 32.
The correct formula is 1 + C(n, 2) + C(n, 4), where C(n, k) is the number of ways to choose k items from n. The first term is the starting disk, the second counts chords, and the third counts inside crossings, since any four points on the circle give exactly one crossing pair of chords.
n = 4: 1 + 6 + 1 = 8
n = 5: 1 + 10 + 5 = 16
n = 6: 1 + 15 + 15 = 31 The lesson is general. A table of small cases suggests a formula, and only an argument establishes it. The same caution applies to reading any figure, as discussed in how diagrams can mislead.
Mistakes that spoil a count
Most wrong answers come from one of a few habits. Forgetting to divide by 2 doubles the number of lines. Subtracting a collinear group's pairs without adding the line back leaves the total one short. Treating a "general position" formula as if it held for every drawing gives too many regions whenever lines are parallel. Three parallel lines, for example, make only 4 regions, and three lines through one point make 6, while three lines in general position make 7.
A quick check is to test your method on a tiny case you can draw completely. If it fails for three points, it will not recover for thirty.
One dimension up, and where to go next
Planes cutting space follow the same pattern. With n planes in general position (every three meet in one point, no four share a point, and no intersection lines are parallel), the number of regions is (n³ + 5n + 6) ÷ 6. That gives 2, 4, 8, 15 and 26 for one through five planes. Three planes make 8 pieces, like the octants around a corner. A fourth makes 15, not 16.
The argument mirrors the one for lines. The new plane is crossed by the earlier planes in lines. Those lines divide the new plane into regions, and each of those regions splits one piece of space. So the fourth plane adds 7, exactly the number of regions made by three lines in a plane.
These counts rest only on the basic postulates and careful bookkeeping. To practice, try finding the number of lines through the 8 corners of a cube. No three corners are collinear, so there are 28: 12 edges, 12 face diagonals and 4 space diagonals.