Calculate the number of line segments formed by n points on a straight line using the formula n×(n-1)÷2
🧮Segment Calculator
Enter the number of points to calculate total line segments
Enter a number between 2 and 1000
Formula Explanation
The Formula:
n × (n - 1) ÷ 2
Why it works:
•Each point connects to every other point
•From n points, each connects to (n-1) others
•This gives n×(n-1) connections
•Divide by 2 since each segment is counted twice
Quick Reference
Points
Segments
2
1
3
3
4
6
5
10
6
15
10
45
20
190
100
4,950
Applications
Mathematical:
• Combinatorics problems
• Graph theory
• Probability calculations
Real-world:
• Network connections
• Transportation routes
• Tournament scheduling
Related Calculators
Mathematical Note: This formula represents the combination C(n,2) = n!/(2!(n-2)!), which calculates how many ways you can choose 2 points from n points to form a line segment.