What is a stretched hexagon?
A stretched hexagon is a convex hexagon whose six interior angles are all 120°, with two opposite parallel sides of length b and four sides of length a. It is what a regular hexagon becomes when it is pulled apart (or pushed together) along one pair of opposite sides; it is an equiangular hexagon and a special parallelogon, with two mirror axes and point symmetry. For the regular hexagon use the hexagon calculator.
How to use it
Type the side a (the four equal sides) and the stretched side b (the two parallel sides). b may be shorter than a, and 0 is accepted as the limit case. 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
Cut the hexagon along the two sides b into a rectangle b × √3·a and two isosceles end triangles with angles 30°, 30° and 120° and sides a, a and √3·a (each half of a rhombus of side a with angles 60° and 120°):
$$ A = \sqrt{3}\, a b + \frac{\sqrt{3}}{2} a^{2}, \qquad P = 4a + 2b $$
The height between the sides b is √3·a, and the length from the left corner to the right corner is b plus two projections a/2:
$$ h = \sqrt{3}\, a, \qquad l = a + b $$
With one corner of a side b at the origin, the diagonal that skips one corner across a side b and a side a ends at (b + a/2, √3a/2), and the one to the far corner of the other side b ends at (b, √3a):
$$ d_1 = \sqrt{a^{2} + a b + b^{2}}, \qquad d_2 = \sqrt{b^{2} + 3a^{2}} $$
The other diagonal that skips one corner, across two sides a, joins the two corners next to a pointed end and equals the height h = √3·a; d1 is longer than it when b is longer than a and shorter when b is shorter than a.
Worked example
The page opens with side a (the four slanted sides) = 3, stretched side b = 5. Then area A ≈ 33.774991; length l (corner to opposite corner along the stretch) ≈ 8; height h (between the sides b) ≈ 5.196152; diagonal from a corner of b to the far corner of the other b ≈ 7.211103. 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
Can b be shorter than a?
Yes. All angles stay 120°, the hexagon is just squeezed along the stretch. At b equal to 0 the two sides b vanish and a 60°/120° rhombus of side a remains.
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