What is a symmetric hexagon?
A symmetric hexagon, in the sense of this page, is made of two equal isosceles trapezoids joined along one of their parallel sides. The joint is the first diagonal d, which runs between the two corners where the slanted sides meet; the four slanted sides all have length a and the two outer parallel sides, the straight sides, have length b. The hexagon is mirror symmetric about d and about the height h, and point symmetric about their crossing. When d is longer than b it is convex; when d is shorter than b the trapezoids meet at their short sides and the hexagon is an hourglass, concave at the two ends of d; when d equals b it is a rectangle. For one trapezoid alone, use the isosceles trapezoid calculator.
How to use it
Type the slanted sides a, the straight sides b and the first diagonal d. The page tells you whether the hexagon is convex, an hourglass or a rectangle. 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
Each trapezoid has parallel sides b and d and legs a; each leg spans the horizontal distance (d − b)/2, so the height k of one trapezoid exists only when a is longer than |d − b|/2:
$$ k = \sqrt{a^{2} - \left(\frac{d - b}{2}\right)^{2}}, \qquad h = 2k $$
The two trapezoids give the area, and the outline is four slanted sides and two straight ones:
$$ A = 2 \cdot \frac{b + d}{2}\, k = (b + d)\, k, \qquad P = 4a + 2b $$
The second diagonal runs from a corner of one side b to the opposite corner of the other, through the centre; it is the diagonal of a b × h rectangle:
$$ e = \sqrt{b^{2} + h^{2}} $$
Each slanted side makes the angle θ = arctan(k / ((d − b)/2)) with d, taken above 90° when d is shorter than b. The angle at an end of d is twice that, and the angles at the ends of b follow from the angle sum of 720°:
$$ \alpha = 2\theta, \qquad \beta = 180^{\circ} - \theta $$
α is below 180° in the convex hexagon, above 180° (a reflex angle) in the hourglass and exactly 180° in the rectangle.
Worked example
The page opens with slanted sides a = 4, straight sides b = 5, first diagonal d = 9. Then area A ≈ 48.497423; second diagonal e (corner to opposite corner of the sides b) ≈ 8.544004; height h (between the sides b) ≈ 6.928203; angle α (at the ends of d) ≈ 120°; angle β (at the ends of the sides b) ≈ 120°. 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
How do I get the hourglass shape?
Type a diagonal d shorter than the straight sides b. The trapezoids are then joined along their short sides, the waist d lies inside the shape, and the angle α at its ends is a reflex angle.
Why is the diagonal d needed?
The sides a and b alone do not fix the shape: the trapezoids can be flattened or stretched. The first diagonal d sets how far apart the two side corners are.
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