Menelaus' Theorem Calculator
Check if three points on the sides of a triangle are collinear, or solve for a missing segment.
What it does
Menelaus' theorem is a test for collinearity. Choose one point on each side of a triangle, or on the lines that extend those sides. If the three points lie on one straight line, a product of three ratios has a fixed value. The converse also holds, so the same product can decide whether a chosen trio of points is collinear.
The ratios run around the triangle. Take BX over XC, then CY over YA, then AZ over ZB. Using ordinary positive lengths, the product is 1 when a single transversal cuts the triangle. Stony Brook's course page points out that one of the three points lies beyond a vertex in this configuration, which is why directed lengths turn the product into minus 1.
The theorem is the close cousin of Ceva's theorem. Both multiply three ratios taken around a triangle. Ceva tests whether three cevians meet at one point, while Menelaus tests whether three points lie on one line. Ohio State's handout shows that the two statements differ only in where the points sit on the sidelines.
This page does both jobs. In check mode it reports the three ratios, their product and a collinear verdict. In find mode you leave one of the six segments as zero and the tool solves for the value that makes the product 1.
All lengths are unitless. Each ratio compares two pieces of the same line, so the two values in a pair must use the same unit.
How to use
- Draw a triangle ABC and mark the transversal that cuts the three sidelines at X, Y and Z.
- Measure BX and XC, then enter them in that order. X normally lies outside the segment BC.
- Measure CY and YA on the second sideline and enter them.
- Measure AZ and ZB on the third sideline and enter them.
- Keep the default check mode to read the product and the collinear verdict.
- Switch to find mode, set exactly one segment to 0, and read the value that restores a product of 1.
Formula
- X
- The point where the transversal meets the line BC.
- Y
- The point where the transversal meets the line CA.
- Z
- The point where the transversal meets the line AB.
- BX, XC
- The two lengths measured on the line BC.
- CY, YA
- The two lengths measured on the line CA.
- AZ, ZB
- The two lengths measured on the line AB.
The unsigned form assumes the usual Menelaus picture, where one of the three points falls outside the triangle and the other two fall inside. In that case exactly one ratio is negative when directions are tracked, so the signed product is the negative of the unsigned product. Find mode solves one missing length by setting the product to 1; it does not verify that the resulting triangle satisfies the triangle inequality.
Worked example
Example: a 14, 9, 12 triangle cut by one line
Defaults in check mode: BX = 12, XC = 4, CY = 6, YA = 3, AZ = 2 and ZB = 12. The triangle sides are BC = 8, CA = 9 and AB = 14.
- First ratio: BX over XC = 12 / 4 = 3.
- Second ratio: CY over YA = 6 / 3 = 2.
- Third ratio: AZ over ZB = 2 / 12 = 0.166667.
- Multiply the first two ratios: 3 x 2 = 6.
- Multiply by the third: 6 x 0.166667 = 1.
- The product is 1, so the three points lie on one line. The signed product is minus 1, and the tool reports Yes.
- The same numbers solve the reverse problem: in find mode with AZ set to 0, the tool returns AZ = 2.
Reference table
| BX/XC | CY/YA | AZ/ZB | Product | Collinear |
|---|---|---|---|---|
| 3 | 2 | 1/6 | 1 | Yes |
| 4 | 3 | 1/12 | 1 | Yes |
| 3 | 2 | 1/4 | 1.5 | No |
| 2 | 2 | 2 | 8 | No |
Limits
- The positive-length form assumes one point outside the triangle and the other two inside. Other sign patterns need directed lengths entered by hand.
- Find mode solves a ratio condition only. It does not check that the six segments come from a valid triangle.
- A transversal parallel to a side meets that side at infinity, which this segment based tool cannot represent.
- Caps each entered segment at 10,000,000 units to keep the products within a stable range.
Common mistakes
- Taking all three ratios in the same direction along the sides instead of cycling around the triangle.
- Forgetting that the point on the extended side gives a negative directed ratio, so the signed product is negative.
- Entering the whole side where a single segment is required, such as BC instead of BX.
- Leaving more than one segment at zero in find mode, which gives no unique answer.
- Treating a product of 1 with all three points inside the triangle as a valid transversal, which cannot happen geometrically.
Try it yourself
Quick checks. Answers sit tucked under each question.
Check BX = 9, XC = 3, CY = 6, YA = 3, AZ = 2 and ZB = 12. Are the points collinear?
The ratios are 3, 2 and 0.166667, and their product is 1, so yes. The signed product is minus 1.
In find mode, BX = 12, XC = 4, CY = 6, YA = 3 and ZB = 12 with AZ = 0. What is AZ?
AZ equals ZB times XC times YA divided by BX times CY, so AZ = 12 x 4 x 3 / (12 x 6) = 2.
Ratios 3, 2 and 1/4 have what product, and does a transversal exist?
The product is 3 x 2 x 0.25 = 1.5, which is not 1, so the three points are not collinear.
Questions
What is Menelaus' theorem used for?
It decides whether three points placed on the sides of a triangle are collinear, using only ratios of the lengths cut off on those sides.
How is it different from Ceva's theorem?
Ceva checks whether three cevians meet at one point. Menelaus checks whether three points on the sidelines lie on one line. Both use a product of three side ratios.
Why is the signed product minus 1?
A straight transversal crosses one side of the triangle outside the segment, so one directed ratio is negative while the other two are positive.
Can all three points lie inside their sides?
No. A straight line that crosses all three sides of a triangle must leave through an extension of one of them.
What does find mode actually solve?
It sets the ratio product to 1 and solves the one missing segment algebraically. The other five values must be supplied as positive numbers.
Do I need to convert to a common unit?
Only within each pair. The two lengths that form a ratio must share a unit, but separate pairs may use different scales if they are converted consistently.
Sources
- Stony Brook University: The Theorems of Menelaus and Ceva
- Ohio State University: The Theorems of Ceva and Menelaus
- MacTutor History of Mathematics, University of St Andrews: Menelaus's theorem