Ever tried to picture a rectangle snug inside a regular hexagon?
So it’s the kind of puzzle that pops up on a test, in a design brief, or even as a doodle while you’re waiting for coffee. The moment you see those six equal sides and a perfectly straight box tucked inside, a question spikes: *How does that even work?
If you’ve ever stared at that diagram and wondered about the angles, the side ratios, or why the rectangle looks a little “off‑center,” you’re in the right place. Below we’ll break down the shape, why it matters, the math that makes it click, the typical slip‑ups, and a handful of tips you can actually use—whether you’re a student, an architect, or just a curious mind.
What Is a Rectangle Inside a Regular Hexagon
Think of a regular hexagon as a honeycomb cell—six sides, all the same length, all interior angles 120°. Now drop a rectangle inside it so that each of the rectangle’s four corners touches a side of the hexagon. The rectangle isn’t forced to be centered; it can slide up, down, left, or right, as long as each corner stays on a different side of the hexagon.
In practice there are two common configurations:
- Horizontal rectangle – the long sides run parallel to two opposite hexagon sides.
- Vertical rectangle – the long sides line up with the other pair of opposite sides.
Both configurations are mirror images; the math works the same way, just swapped axes. When people talk about “the rectangle inside a regular hexagon,” they usually mean the largest possible rectangle that fits without crossing any edges.
The key pieces
- Side length of the hexagon (s) – the distance from one vertex to the next.
- Rectangle width (w) – the distance between the two sides that touch opposite hexagon edges.
- Rectangle height (h) – the distance between the other two touching sides.
Because the hexagon is regular, the distance from its center to any side (the apothem) is ( \frac{\sqrt{3}}{2}s ). That apothem is the limiting factor for how tall or wide the rectangle can be.
Why It Matters
You might think, “Just a fun geometry doodle—why care?” Yet the rectangle‑in‑hexagon problem crops up in several real‑world scenarios.
- Architecture & tiling – Hexagonal floor tiles often need a rectangular inset for a logo or a vent. Knowing the exact dimensions avoids gaps.
- Graphic design – A hexagonal badge with a rectangular text block inside is a common logo element. Designers who understand the geometry can keep margins consistent without trial‑and‑error.
- Mathematics education – The problem ties together concepts of symmetry, similarity, and trigonometry. It’s a favorite for SAT, AP, and university entrance exams.
When you get the relationship right, you stop guessing and start scaling shapes confidently. Miss it, and you’ll end up with a rectangle that either spills over the hexagon or looks oddly squashed.
How It Works
Let’s walk through the derivation that tells you exactly how wide and tall the rectangle can be, given a hexagon of side length s.
1. Sketch the layout
Draw a regular hexagon with a flat top and bottom. Drop a horizontal rectangle so its top and bottom edges each touch a pair of opposite hexagon sides. The rectangle’s left and right corners will land somewhere along the sloping sides of the hexagon Worth knowing..
2. Use the 30‑60‑90 triangle
Cut the hexagon in half vertically. You now have two congruent 30‑60‑90 triangles on each side of the center line. In such a triangle, the short leg equals half the side length:
[ \text{short leg} = \frac{s}{2} ]
The long leg (the apothem) is
[ \text{apothem} = \frac{\sqrt{3}}{2}s ]
3. Relate rectangle height to the apothem
If the rectangle’s top edge touches the two sloping sides at points that are a distance y down from the top vertex, the vertical distance from the hexagon’s center to that edge is ( \frac{\sqrt{3}}{2}s - y ). Because the rectangle is symmetric about the center line, the total height h equals twice that distance:
And yeah — that's actually more nuanced than it sounds.
[ h = 2\left(\frac{\sqrt{3}}{2}s - y\right) = \sqrt{3}s - 2y ]
4. Find the horizontal offset
The horizontal distance from the center line to where the rectangle meets a sloping side is simply the short leg of the 30‑60‑90 triangle minus the horizontal component of y along the slope. In that triangle, moving down y along the sloping side also moves horizontally by
[ x = \frac{y}{\sqrt{3}} ]
So the half‑width of the rectangle, w/2, is
[ \frac{w}{2} = \frac{s}{2} - x = \frac{s}{2} - \frac{y}{\sqrt{3}} ]
Multiply by 2:
[ w = s - \frac{2y}{\sqrt{3}} ]
5. Maximize the rectangle
The “largest possible” rectangle occurs when the corners sit exactly on the hexagon sides—meaning y is as small as possible without the rectangle crossing a vertex. The limiting case is when the rectangle’s top edge touches the two sloping sides right at the points where those sides meet the flat top edge of the hexagon. In that situation, y equals the vertical distance from the top flat side to the sloping side’s intersection, which is simply the apothem minus the rectangle’s half‑height.
A cleaner way is to solve for y when the rectangle’s corners are on the sloping sides:
[ y = \frac{s}{2}\tan 30^\circ = \frac{s}{2}\frac{1}{\sqrt{3}} = \frac{s}{2\sqrt{3}} ]
Plug that y back into the formulas:
[ h = \sqrt{3}s - 2\left(\frac{s}{2\sqrt{3}}\right) = \sqrt{3}s - \frac{s}{\sqrt{3}} = \frac{2s}{\sqrt{3}} ]
[ w = s - \frac{2}{\sqrt{3}}\left(\frac{s}{2\sqrt{3}}\right) = s - \frac{s}{3} = \frac{2s}{3} ]
6. Final ratio
The biggest rectangle you can fit has:
- Width ( w = \frac{2}{3}s )
- Height ( h = \frac{2}{\sqrt{3}}s )
If you prefer the ratio height to width:
[ \frac{h}{w} = \frac{\frac{2}{\sqrt{3}}s}{\frac{2}{3}s} = \frac{3}{\sqrt{3}} = \sqrt{3} ]
So the rectangle’s height is exactly √3 times its width. That’s the sweet spot most textbooks highlight, and it’s the number you’ll need for any design or calculation.
Common Mistakes / What Most People Get Wrong
-
Assuming the rectangle is centered – Many sketches place the rectangle dead‑center, which forces the corners onto the flat top and bottom edges, not the sloping sides. The resulting shape is smaller than the maximum.
-
Mixing up the apothem – The apothem is often confused with the radius of the circumscribed circle. Remember: the apothem is the perpendicular distance from the center to a side, not to a vertex.
-
Using the wrong triangle – Some people treat the side‑to‑center line as a 45‑45‑90 triangle. In a regular hexagon it’s always 30‑60‑90; that’s where the √3 pops up Most people skip this — try not to. That's the whole idea..
-
Forgetting the “touches a side” rule – The rectangle’s corners must lie on the hexagon’s sides, not merely inside the shape. If a corner lands on a vertex, the rectangle is no longer the typical “inside” rectangle; it becomes a degenerate case.
-
Over‑complicating with trigonometric tables – You only need the basic 30‑60‑90 relationships. Pulling out sine and cosine for every step just muddies the water.
Practical Tips / What Actually Works
-
Start with the side length – Measure s once, then compute w and h with the simple fractions above. No need for a protractor.
-
Use graph paper – Draw a hexagon with side length 6 cm. Your rectangle should come out 4 cm wide and about 3.46 cm tall (since (2/√3 ≈ 1.155)). Seeing the numbers line up on paper cements the ratio Worth knowing..
-
Scale up or down instantly – Because the ratio is fixed, you can scale the whole figure uniformly. Want a rectangle 10 cm wide? Multiply the hexagon side length by ( \frac{10}{2/3}=15) cm.
-
Check with a simple ruler test – After you draw, place a ruler along the sloping side. The distance from the rectangle’s corner to the nearest vertex should equal the distance from the opposite corner to the opposite vertex. If not, you’ve slipped off the optimum position.
-
Digital design shortcut – In vector programs (Illustrator, Figma), draw a regular hexagon, then use the “offset path” feature set to 0 pt on the opposite sides. The resulting shape is the rectangle’s bounding box—perfect for quick mockups That's the part that actually makes a difference..
-
Remember the √3 – If you ever forget the exact numbers, just recall that the height‑to‑width ratio is √3. That mental cue is enough to reconstruct the dimensions on the fly Most people skip this — try not to..
FAQ
Q1: Can the rectangle be rotated inside the hexagon?
A: Yes, but the classic “largest rectangle” problem assumes the rectangle’s sides are parallel to two opposite hexagon sides. Rotating it generally yields a smaller area unless you allow the rectangle to touch more than four sides, which changes the problem entirely.
Q2: What if the hexagon isn’t regular?
A: Then the simple √3 ratio disappears. You’d need to treat each side length and angle individually, often solving a system of linear equations or using optimization software.
Q3: Is there a formula for the rectangle’s area in terms of the hexagon’s side length?
A: Absolutely. Plug the width and height we derived:
[ \text{Area} = w \times h = \left(\frac{2}{3}s\right)\left(\frac{2}{\sqrt{3}}s\right) = \frac{4}{3\sqrt{3}}s^{2} ]
That’s roughly (0.77s^{2}).
Q4: How does this relate to the hexagon’s own area?
A: A regular hexagon’s area is (\frac{3\sqrt{3}}{2}s^{2}). Dividing the rectangle’s area by the hexagon’s gives (\frac{4}{9}) — about 44 % of the hexagon’s total area is occupied by the maximal rectangle.
Q5: Can I fit two identical rectangles side‑by‑side inside the same hexagon?
A: Only if you shrink each rectangle to half the width (so each is (w/2)). The height stays the same, and the two will sit flush against the vertical center line. The total covered area will then be ( \frac{2}{9}) of the hexagon’s area.
That rectangle‑in‑hexagon picture isn’t just a brain teaser; it’s a tidy bundle of geometry that pops up wherever regular tiling meets straight‑line design. Knowing the side‑length relationship, the √3 height‑to‑width ratio, and the common pitfalls lets you move from “I’m guessing” to “I’ve got this.”
Next time you see that diagram, you’ll be able to pull out a ruler, do the math in your head, and sketch the perfect fit without a second thought. Happy measuring!