What is a triangle segment?
A triangle segment, in the sense of this page, is the part of an isosceles triangle (base a, legs b) that lies in a strip between two cuts perpendicular to the base: the left cut is the distance m from the left base corner, the right cut the distance n from the right one, and the top corner of the triangle lies between them. What remains is a convex pentagon with two right angles at the base, two obtuse angles above them and the top angle of the triangle. It is not symmetric unless m equals n. For the whole triangle, use the isosceles triangle calculator.
How to use it
Type the triangle base a, the legs b and the missing lengths m (cut off on the left) and n (cut off on the right); 0 means that corner is not cut. The length unit is only a label: lengths come out in that unit and areas in its square. Each length you type must be from 0.000001 to 1,000,000,000 (a box that allows 0 also accepts 0), each area from 0.000000000001 to 1,000,000,000,000,000,000 and each angle greater than 0° and less than 180°; anything else, including text, is refused with a sentence that says why, and so is a set of values that cannot form the shape.
Derivation of the formulas
The height of the isosceles triangle stands on the middle of the base; it exists only when b is longer than a/2:
$$ h = \sqrt{b^{2} - \frac{a^{2}}{4}} $$
A cut at the distance m from a base corner meets the leg at the height that grows in proportion along the half base a/2 (similar triangles), and it cuts off the part o of the leg in the same ratio:
$$ d = \frac{2 h m}{a}, \quad o = \frac{2 b m}{a}, \qquad e = \frac{2 h n}{a}, \quad p = \frac{2 b n}{a} $$
The pentagon keeps the base c and the remaining slopes f and g; each cut-off corner is a right triangle with legs m and d (or n and e):
$$ c = a - m - n, \quad f = b - o, \quad g = b - p, \qquad A = \frac{a h}{2} - \frac{m d}{2} - \frac{n e}{2} = \frac{a h}{2} - \frac{h\,(m^{2} + n^{2})}{a} $$
The perimeter is P = c + d + e + f + g. Both cuts must stay on their side of the top corner, so m and n are each shorter than a/2.
Worked example
The page opens with triangle base a = 10, triangle legs b = 8, missing length left m = 2, missing length right n = 3. Then area A ≈ 23.106493; perimeter P ≈ 19.244998; pentagon base c ≈ 5; left vertical side d ≈ 2.497999; right vertical side e ≈ 3.746999; height h ≈ 6.244998. Values are shown with up to six decimals; a value below 0.0000005 or of 10¹⁵ and more is shown as its plain 12-digit number instead.
Frequently asked questions
Why must m and n be shorter than half the base?
The top corner of the triangle sits above the middle of the base. A cut at a/2 or beyond would remove the top corner too, and the remaining shape would no longer be this pentagon.
What happens when m or n is 0?
That base corner is kept: the vertical side there has length 0 and the shape is a quadrilateral. With both 0 nothing is cut off.
Why does the unit not change the numbers?
The calculator does not convert between units. Every length is read in the unit you chose, so the unit only labels the results; areas come out in that unit squared.
How accurate are the results?
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.
References
H. S. M. Coxeter, Introduction to Geometry, 2nd edition, Wiley, 1969
D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulas, 33rd edition, CRC Press, 2018