# Largest hexagon that fits inside a pentagon?

**URL:** <https://boards.straightdope.com/t/largest-hexagon-that-fits-inside-a-pentagon/990832>\
**Category:** Factual Questions\
**Created:** [September 28, 2023, 6:29pm UTC](https://boards.straightdope.com/t/largest-hexagon-that-fits-inside-a-pentagon/990832 "2023-09-28T18:29:52Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![brossa](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/brossa/32/3040_2.png) [@brossa](https://boards.straightdope.com/u/brossa)\
**Post date:** [September 28, 2023, 6:29pm UTC](https://boards.straightdope.com/t/largest-hexagon-that-fits-inside-a-pentagon/990832/1 "2023-09-28T18:29:52Z")

</div>

Perhaps my Google game is weak, but I’m trying to find a mathematical treatment (and ideally a visual representation) of the largest regular hexagon that fits inside a regular pentagon.

It’s not hard to find the other way around, or to find squares inside pentagons or vice versa, but I can’t find anyone addressing the pentagon around the hexagon.

---

<div class="post-metadata">

**Author:** ![Dorjan](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dorjan/32/12440_2.png) [@Dorjan](https://boards.straightdope.com/u/Dorjan)\
**Post date:** [September 28, 2023, 6:40pm UTC](https://boards.straightdope.com/t/largest-hexagon-that-fits-inside-a-pentagon/990832/2 "2023-09-28T18:40:17Z")

</div>

Given a pentagon with side lengths s, The hexagon will be inscribed such that its vertices touch the sides of the pentagon.

The apothem (distance from the center to a side) of the pentagon can be found using:  
apothem = s x COS (36 degrees).

This apothem will also be the distance from the center of the hexagon to one of its vertices. Using this distance, we can find the side length of the hexagon, h, using the relation 2 x apothem x TAN (30 degrees).

The side length h of the largest regular hexagon that can fit inside a regular pentagon with side length  
s is given by:

h = ((1+sqroot(5)) x s) / (2 x sqroot(3))

---

<div class="post-metadata">

**Author:** ![TriPolar](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/tripolar/32/3008_2.png) [@TriPolar](https://boards.straightdope.com/u/TriPolar)\
**Post date:** [September 28, 2023, 6:55pm UTC](https://boards.straightdope.com/t/largest-hexagon-that-fits-inside-a-pentagon/990832/3 "2023-09-28T18:55:05Z")

</div>

There are two obvious orientations for the hexagon inside the pentagon, one where they share a side (incompletely) and two or maybe four vertices, the other and one where maybe four vertices touch four sides of the pentagon. Any hints which way this is or how your solution works before I screw up attempting to figure this out myself? I assume one is larger, but no sure if those side and points would connect as I described.

---

<div class="post-metadata">

**Author:** ![brossa](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/brossa/32/3040_2.png) [@brossa](https://boards.straightdope.com/u/brossa)\
**Post date:** [September 28, 2023, 7:04pm UTC](https://boards.straightdope.com/t/largest-hexagon-that-fits-inside-a-pentagon/990832/4 "2023-09-28T19:04:52Z")

</div>

I’m not sure that I accept that a hexagon with distance-from-center-to-vertex the same as apothem-of-the-pentagon is the largest hexagon that can fit in the pentagon. If I skew the hexagon, can’t I make it larger?

---

<div class="post-metadata">

**Author:** ![brossa](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/brossa/32/3040_2.png) [@brossa](https://boards.straightdope.com/u/brossa)\
**Post date:** [September 28, 2023, 7:21pm UTC](https://boards.straightdope.com/t/largest-hexagon-that-fits-inside-a-pentagon/990832/5 "2023-09-28T19:21:27Z")

</div>

I think that if the hexagon and pentagon both share a side, you get a smaller hexagon than if they only touch at vertices/sides.

---

<div class="post-metadata">

**Author:** ![brossa](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/brossa/32/3040_2.png) [@brossa](https://boards.straightdope.com/u/brossa)\
**Post date:** [September 28, 2023, 7:24pm UTC](https://boards.straightdope.com/t/largest-hexagon-that-fits-inside-a-pentagon/990832/6 "2023-09-28T19:24:52Z")

</div>

Plus, the apothem of a pentagon in terms of the side is 0.5(tan 54)S, or 0.688S, not (cos36)S.

---

<div class="post-metadata">

**Author:** ![TriPolar](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/tripolar/32/3008_2.png) [@TriPolar](https://boards.straightdope.com/u/TriPolar)\
**Post date:** [September 28, 2023, 7:38pm UTC](https://boards.straightdope.com/t/largest-hexagon-that-fits-inside-a-pentagon/990832/7 "2023-09-28T19:38:25Z")

</div>

Yes, that’s what it looks like playing around in Paint. The distance between parallel sides of the hexagon seems to be the limiting factor. I was wondering about skewing also.

---

<div class="post-metadata">

**Author:** ![Andy\_L](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@Andy\_L](https://boards.straightdope.com/u/Andy_L)\
**Post date:** [September 28, 2023, 7:52pm UTC](https://boards.straightdope.com/t/largest-hexagon-that-fits-inside-a-pentagon/990832/8 "2023-09-28T19:52:55Z")

</div>

The location of the vertices for a regular hexagon and a regular pentagon can be calculated with simple trig (cos (360 _i /6+skew) and sin (360_i /6+skew) are the x and y coordinates for the hexagon (for i=0 to 5) and cos (360 _i /5) and sin (360_i /5) for the pentagon (you only need to skew one of them)). From that you can find the equation for the line segments that make up each figure, and go from there.

(I did this problem for circles, squares and triangles some years back. As I recall, there was a skew for the largest triangle in a square - they didn’t share a vertex or a side).

---

<div class="post-metadata">

**Author:** ![Chingon](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chingon/32/17645_2.png) [@Chingon](https://boards.straightdope.com/u/Chingon)\
**Post date:** [September 28, 2023, 9:41pm UTC](https://boards.straightdope.com/t/largest-hexagon-that-fits-inside-a-pentagon/990832/9 "2023-09-28T21:41:58Z")

</div>

If the pentagon has a radius of 1, then the radius of the hexagon is \sqrt{\frac{5-\sqrt{5}}{2}}

---

<div class="post-metadata">

**Author:** ![brossa](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/brossa/32/3040_2.png) [@brossa](https://boards.straightdope.com/u/brossa)\
**Post date:** [September 29, 2023, 11:36am UTC](https://boards.straightdope.com/t/largest-hexagon-that-fits-inside-a-pentagon/990832/10 "2023-09-29T11:36:39Z")

</div>

Can you walk me through that, or give me a reference?

---

<div class="post-metadata">

**Author:** ![Dorjan](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dorjan/32/12440_2.png) [@Dorjan](https://boards.straightdope.com/u/Dorjan)\
**Post date:** [September 29, 2023, 12:22pm UTC](https://boards.straightdope.com/t/largest-hexagon-that-fits-inside-a-pentagon/990832/11 "2023-09-29T12:22:21Z")

</div>

I based my solution on the assumption that the largest hexagon you can fit will be with three vertices touching three sides of the pentagon.

---

<div class="post-metadata">

**Author:** ![Chingon](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chingon/32/17645_2.png) [@Chingon](https://boards.straightdope.com/u/Chingon)\
**Post date:** [September 29, 2023, 1:16pm UTC](https://boards.straightdope.com/t/largest-hexagon-that-fits-inside-a-pentagon/990832/12 "2023-09-29T13:16:07Z")

</div>

I think I made a mistake, let me double check my math.

It should be \frac{1+\sqrt{5}}{4}.

Consider a hexagon inscribed in the pentagon such that one of its sides is parallel to the base of the pentagon. The distance from the center of the pentagon to the midpoint of this side of the hexagon will be the radius of the hexagon.

---

<div class="post-metadata">

**Author:** ![Chingon](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chingon/32/17645_2.png) [@Chingon](https://boards.straightdope.com/u/Chingon)\
**Post date:** [September 29, 2023, 1:37pm UTC](https://boards.straightdope.com/t/largest-hexagon-that-fits-inside-a-pentagon/990832/13 "2023-09-29T13:37:38Z")

</div>

You’ll notice that this is \cos{\pi/5}

---

<div class="post-metadata">

**Author:** ![Chingon](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chingon/32/17645_2.png) [@Chingon](https://boards.straightdope.com/u/Chingon)\
**Post date:** [September 29, 2023, 1:42pm UTC](https://boards.straightdope.com/t/largest-hexagon-that-fits-inside-a-pentagon/990832/14 "2023-09-29T13:42:06Z")

</div>

Although we might need to take into account an non-centered hexagon…

---

<div class="post-metadata">

**Author:** ![TriPolar](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/tripolar/32/3008_2.png) [@TriPolar](https://boards.straightdope.com/u/TriPolar)\
**Post date:** [September 29, 2023, 1:42pm UTC](https://boards.straightdope.com/t/largest-hexagon-that-fits-inside-a-pentagon/990832/15 "2023-09-29T13:42:20Z")

</div>

I think that orientation is the largest regular hexagon that will fit inside a regular pentagon. What I see is the ‘height’ of the hexagon, IOW the distance between parallel sides must fit between to adjacent sides of the pentagon while one vertex touches the midpoint of one pentagon side. I don’t know how to do math with all those funny symbols so I’m trying to see how in your solution or any others here that works out.

> [@Chingon](#):
>
> Consider a hexagon inscribed in the pentagon such that one of its sides is parallel to the base of the pentagon. The distance from the center of the pentagon to the midpoint of this side of the hexagon will be the radius of the hexagon.

Is that the largest hexagon that will fit though? The height of the hexagon oriented that way seems to be less than that with the orientation suggested above.

---

<div class="post-metadata">

**Author:** ![Dorjan](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dorjan/32/12440_2.png) [@Dorjan](https://boards.straightdope.com/u/Dorjan)\
**Post date:** [September 29, 2023, 1:53pm UTC](https://boards.straightdope.com/t/largest-hexagon-that-fits-inside-a-pentagon/990832/16 "2023-09-29T13:53:48Z")

</div>

Using the formula I derived here’s the largest I’ve been able to fit, and the orientation:

[![Google Photos](https://lh3.googleusercontent.com/pw/ADCreHe1KZlNWMteHAvrqx8cmcBPwkRPv37pmRXKfdEv985P73if-lV0KCM4qabwR4XMAHQENJDIQ3rj-Hf8KIB5mcfXEtZlNBcV7N_4AIXgAhXPk6sZwPx8=w500-h315-p-k "New item by Dorjän Scott") ](https://photos.app.goo.gl/SJKADkAKa2wTBNdE7)

---

<div class="post-metadata">

**Author:** ![brossa](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/brossa/32/3040_2.png) [@brossa](https://boards.straightdope.com/u/brossa)\
**Post date:** [September 29, 2023, 2:20pm UTC](https://boards.straightdope.com/t/largest-hexagon-that-fits-inside-a-pentagon/990832/17 "2023-09-29T14:20:54Z")

</div>

Yes, the possibility of a non-centered hexagon is the crux of the problem.

---

<div class="post-metadata">

**Author:** ![Dorjan](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dorjan/32/12440_2.png) [@Dorjan](https://boards.straightdope.com/u/Dorjan)\
**Post date:** [September 29, 2023, 2:24pm UTC](https://boards.straightdope.com/t/largest-hexagon-that-fits-inside-a-pentagon/990832/18 "2023-09-29T14:24:08Z")

</div>

It can be skewed, clearly. But I don’t see how a non-centered hexagon can ever be a solution.

---

<div class="post-metadata">

**Author:** ![Chingon](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chingon/32/17645_2.png) [@Chingon](https://boards.straightdope.com/u/Chingon)\
**Post date:** [September 29, 2023, 2:33pm UTC](https://boards.straightdope.com/t/largest-hexagon-that-fits-inside-a-pentagon/990832/19 "2023-09-29T14:33:30Z")

</div>

I am pretty sure your are correct. It must be centered if it’s a regular hexagon.

---

<div class="post-metadata">

**Author:** ![brossa](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/brossa/32/3040_2.png) [@brossa](https://boards.straightdope.com/u/brossa)\
**Post date:** [September 29, 2023, 3:09pm UTC](https://boards.straightdope.com/t/largest-hexagon-that-fits-inside-a-pentagon/990832/20 "2023-09-29T15:09:45Z")

</div>

**Dorjan** , **Chingon** I don’t think it has to be centered. Taking a look at Dorjan’s diagram, the red hexagon can clearly be larger. If you scale it up ever so slightly while keeping the SSE segment parallel to its current orientation (so maintaining contact with the SE and SW sides of the pentagon) until the westernmost corner of the hexagon touches the western side of the pentagon, you will have a non-centered hexagon making contact on three sides of the pentagon.

IOW if you rotate the hexagon around one of its corners to make it fit, you’ve uncentered it relative to the hexagon.

[Next page](https://boards.straightdope.com/t/largest-hexagon-that-fits-inside-a-pentagon/990832.md?page=2)
