Axioms and construction

The largest triangle in a square

The biggest equilateral triangle a square sheet holds is tilted by exactly fifteen degrees and uses 46.4% of the paper. Both numbers come out of a quadratic — which means a compass reaches this optimum too, and folding's advantage is not needed here at all.

Assumes One fold at a time, and there are exactly seven of them.

Put an equilateral triangle in a square as large as it will go. The obvious arrangement stands it on the square’s bottom edge, and the obvious arrangement is not the answer.

The largest 3-sided polygon a square holdsThe maximiser, drawn in the sheet it fits. The tilt is not a stylistic choice — a polygon square to the sheet is smaller, and the angle that makes it largest is the one that makes its two widths equal.tilted 15.00°side 1.0352846.41% of the sheetand the same answer twicea corner construction givesside 1.03528from a quadratic, sharing no codethe width maximisation and the closed form agree to nine figures
Fig. 1 The largest equilateral triangle a unit square holds, tilted by fifteen degrees, with the corner construction that produces the same answer drawn over it. Side 1.03528, area 46.410% of the sheet — longer than the square’s own side, which is the first sign that the upright arrangement was wrong.

Why tilting helps

A triangle standing on the square’s edge has side 1 and area √3/4, which is 0.4330. Its height is √3/2 ≈ 0.866, so it does not reach the top of the square: there is a strip of unused paper above it, and the triangle is limited by its width rather than its height.

Tilt it and the width shrinks while the height grows. The best tilt is the one where the two limits meet — where the triangle’s extent across the square is the same in both directions, so neither wall is doing more work than the other.

That angle is fifteen degrees, the resulting side is sec 15° = 1.03528, and the area is exactly 2√3 − 3 = 0.46410. The triangle’s side is longer than the square’s, which is a good sanity check on the intuition: the tilted triangle uses the square’s diagonal direction, and the diagonal is longer than the side.

Solved twice

The site’s habit is that a claim gets a test it could fail, and an optimisation is easy to get wrong in ways that look right. So the answer is obtained two ways with no code in common.

By support widths. A convex shape fits inside an axis-aligned unit square, at some translation, exactly when its width measured across the x direction and its width across the y direction are both at most one — translation is free and cannot be wrong. So the largest scaled copy at a given rotation is the reciprocal of the larger of those two widths, and the whole problem is a one-dimensional maximisation over the rotation angle. It is bracketed on a grid and refined by golden-section search, and the refinement moves the answer by less than a part in ten thousand million.

By a corner construction. Put one vertex of the triangle in a corner of the sheet and the other two on the far sides, each at distance t from the near corner: the vertices are at (0, 0), (1, t) and (t, 1). Equal sides give

1 + t² = 2(1 − t

which rearranges to t² − 4t + 1 = 0, whose root in range is t = 2 − √3. And 2 − √3 is tan 15°.

The two methods agree to nine figures. Neither knows about the other, and neither was given the answer.

The largest 4-sided polygon a square holdsThe maximiser, drawn in the sheet it fits. The tilt is not a stylistic choice — a polygon square to the sheet is smaller, and the angle that makes it largest is the one that makes its two widths equal.tilted 45.00°side 1.00000100.00% of the sheetthe width maximisation and the closed form agree to nine figures
Fig. 2 The case that would catch a lost factor. The largest square inside a unit square must be that square, area exactly one, and a width maximisation that had gone wrong anywhere would not produce it.

The family does not climb

The figure sweeps the polygon count and the natural expectation is a sequence rising toward the square’s own area as the polygon rounds off. It does not, and the reason is a symmetry mismatch worth having.

The triangle takes 46.4 per cent. The square takes 100. A regular polygon with many sides approaches a circle, and the largest circle in a unit square has area π/4=78.54\pi/4 = 78.54 per cent, so the far end of the sweep converges there rather than to one.

But the approach is not from below. A regular octagon with four of its sides flat against the square’s four sides has area 2/(1+2)=82.842/(1+\sqrt2) = 82.84 per cent — comfortably above the circle’s figure, because an octagon reaches into the square’s corners and a circle cannot.

So the sequence goes 46.4, 100, then down, and the values at eight and twelve sit above the limit while the values at three, five, six and seven sit below it.

Which is a fact about four-fold symmetry

The pattern has a cause and it is the container rather than the polygon.

A square has four-fold symmetry. A regular nn-gon whose nn is a multiple of four shares that symmetry, so it can be placed with its own axes on the square’s axes and every one of its extreme directions used at once. An nn-gon whose nn is not a multiple of four cannot, and its best placement is a compromise — which is exactly what the fifteen-degree tilt is.

So the family splits by nmod4n \bmod 4, with the multiples of four converging on π/4\pi/4 from above and everything else from below, and the two branches meeting only in the limit where the polygon stops being able to exploit any symmetry at all.

The triangle is the extreme case of the second branch and that is why it is the interesting one. Three shares no factor with four, so no placement lines any of its axes up with the square’s, and the optimum is a genuine compromise between two directions rather than an alignment. The fifteen degrees is half of the thirty by which sixty and ninety fail to agree.

That also predicts which entries in the sweep are worth solving twice. An nn divisible by four has an answer somebody can write down by inspection; the others need the maximisation, and the others are where an error would hide.

The thing the quadratic gives away

t² − 4t + 1 = 0 is a quadratic, and that is the finding this essay exists for.

Folding’s advantage over straightedge and compass is exactly one degree wide: a compass extracts square roots and a single fold extracts cube roots as well. The advantage is real and it settles two classical problems, and it is completely irrelevant here. The largest equilateral triangle in a square is a quadratic construction, so a compass reaches it, and so does a fold, and neither has anything to boast about.

That is worth stating plainly because an essay on this site could easily have been written the other way — folding reaches the optimum! — and it would have been true and misleading. The optimum is reachable by folding because it is reachable by anything.

How to fold it anyway

The construction is a pleasant one and it uses two of the seven axioms.

The seven ways to specify a foldThe Huzita–Hatori axioms: every fold that can be specified by bringing existing points and lines into coincidence. The list is complete — six were catalogued in 1991, the seventh in 2001, and no eighth exists. The sixth is the one a compass cannot reach.axiom 1through two pointslinearaxiom 2point onto pointlinearaxiom 3line onto linelinearaxiom 4through a point, square to a linelinearaxiom 5point onto a line, through a pointquadraticthe degree each axiom can solve — one of them is why paper beats the compass
Fig. 3 The five axioms this construction needs, of the seven there are. The fifth is the one that does the work — placing a specified point onto a specified line with the crease through another given point — and the third supplies the bisection.

A sixty-degree angle first. Take the bottom edge and the corner at (1, 0). Fold so that the corner at (0, 0) lands on the square’s vertical midline, with the crease passing through (1, 0). That is the fifth axiom: a point onto a line, with the fold through a point.

The corner travels a distance of one to a point half a unit from the pivot, which is a 1 : 2 ratio, which is a thirty-sixty-ninety triangle. So the image of the bottom edge makes sixty degrees with the bottom edge.

Then bisect what is left. The square’s corner is ninety degrees, so thirty remain between the sixty-degree ray and the vertical side. Bisecting two lines is the third axiom, and half of thirty is fifteen.

Two folds, two axioms, and the optimum. A compass does the same job in about the same number of steps.

Why an exact construction is worth having

A fifteen-degree tilt could be produced with a protractor in a few seconds, so it is worth being clear about what the fold construction is for.

One fold, and a thirdThe top-left corner brought down to the midpoint of the bottom edge. The crease is the perpendicular bisector, so it meets the vertical edges at 3/8 and 7/8; and the folded top edge crosses the right-hand edge at exactly two thirds. Nothing is measured and every value is exact.the midpointwhat comes outcrease on the left edge 3/8crease on the right edge 7/8the folded edge crosses at2/3exact, and a trisectionthe corner is placed by folding, not by measuring — which is why theresult is exact
Fig. 4 The reason exactness is the point. A single fold bringing a corner to a marked point on the opposite edge produces exact rational divisions of the side — no measurement, no accumulated error, and an answer that is right to the precision of the paper rather than of the instrument.

A protractor is accurate to about half a degree. A fold is accurate to how well the folder can align two things, which is a fraction of a millimetre over the length of a crease, and on a hundred-millimetre sheet that is a few hundredths of a degree.

More importantly, the fold construction does not accumulate. Every subsequent crease is aligned against features of the paper rather than against a previously measured angle, so an error at one step does not become the reference for the next. That is exactly the difference between a systematic and a random error, and it is why dividing a strip by folding beats measuring it even when the measurement is easy.

The habit generalises past this problem. Haga’s construction produces exact rational divisions of a square’s side by a single fold; Fujimoto’s method converges on a third with an error that halves at every step. In both cases the paper is doing arithmetic, and the arithmetic is exact for the same reason: the fold is defined by an alignment rather than by a reading.

The sequence, which is where it gets strange

Ask the same question for every regular polygon and the answers stop behaving.

More sides is not more paperThe area of the largest regular polygon of each number of sides that fits inside a square sheet. The square and the octagon share the sheet's own symmetry and do well by it; the polygons between and after them do not, and the sequence goes up and down rather than up.sidesshare of the sheet the largest one usestilt346.4%15.00°4100.0%45.00°567.4%9.00°669.6%15.00°772.9%6.43°882.8%22.50°975.1%5.00°1075.3%9.00°1176.3%4.09°1280.4%15.00°the 8-sided polygon is the peak, and every one of the 4 polygons after it does worse
Fig. 5 The area of the largest regular polygon of each number of sides that fits inside a square sheet. The sequence is not increasing: the octagon uses more of the square than the nine, ten, eleven and twelve-sided polygons do.

More sides means a rounder shape, and a rounder shape ought to use a square better, and up to eight it does. The octagon reaches 82.84%.

Then it falls. The nonagon manages 75.13%, the ten-sided 75.32%, the eleven-sided 76.26%, the twelve-sided 80.38% — every one of them worse than the octagon.

The reason is symmetry. The square and the octagon are related — an octagon has the square’s four-fold symmetry and more — so an octagon can be placed in a square with all four walls doing equal work. A nonagon cannot: its nine-fold symmetry shares nothing with the square’s four-fold, so some of its vertices are pressed against the walls while others are nowhere near them.

The largest 6-sided polygon a square holdsThe maximiser, drawn in the sheet it fits. The tilt is not a stylistic choice — a polygon square to the sheet is smaller, and the angle that makes it largest is the one that makes its two widths equal.tilted 15.00°side 0.5176469.62% of the sheetthe width maximisation and the closed form agree to nine figures
Fig. 6 The hexagon, at 69.6%, tilted by fifteen degrees like the triangle. Six-fold symmetry contains three-fold and two-fold and shares only the two-fold with the square, which is why it does worse than the octagon despite having more sides.

The tilts show the same thing. Every optimum in the sweep is at a simple fraction of a right angle — 15°, 45°, 9°, 15°, 6.43°, 22.5°, 5°, 9°, 4.09°, 15° — and the fraction is set by the polygon’s own symmetry step rather than by anything about the square. The polygon is turned by half a step, which is the position where its two widths come out equal.

The values are worth reading in two groups. For the odd-sided polygons the tilt is a right angle divided by twice the number of sides: 15° at three, 9° at five, 6.43° at seven, 5° at nine, 4.09° at eleven. For the even-sided ones the divisor depends on whether the count is a multiple of four, because a polygon with 4k sides already has the square’s own quarter-turn symmetry and one with 4k + 2 sides does not.

None of that was put in. The search maximises a scale factor over a rotation angle and reports where it landed, and the landings are at half-steps because that is where a symmetric shape’s two widths agree. It is the sort of regularity that a numerical answer either shows or does not, and this one shows it to the resolution the refinement gives — which is another way of saying the maximisation is finding the right point rather than a point nearby.

One more case is worth drawing, because it is the one that does worst after the triangle.

The largest 5-sided polygon a square holdsThe maximiser, drawn in the sheet it fits. The tilt is not a stylistic choice — a polygon square to the sheet is smaller, and the angle that makes it largest is the one that makes its two widths equal.tilted 9.00°side 0.6257467.36% of the sheetthe width maximisation and the closed form agree to nine figures
Fig. 7 The largest pentagon a square holds, at 67.36% and tilted by 9°. Five-fold symmetry shares nothing with the square’s, and the result is the second-worst fit in the whole sequence.

What “largest” is measured in

One decision in the question deserves stating because it could have gone another way and the answer would change.

The polygons here are compared by area, and the maximisation is over the largest scale factor that fits. Those are the same thing for a fixed shape — scaling a polygon by s scales its area by s² — so maximising the side and maximising the area pick the same rotation.

They stop agreeing the moment polygons with different numbers of sides are compared. A triangle of side 1.035 and a dodecagon of side 0.268 are not comparable by side length, and the sequence in the census is areas for that reason. Reporting sides instead would produce a monotonically decreasing list that said nothing at all, since a polygon with more sides at a fixed size has a shorter side by construction.

The area is also the quantity a folder cares about, because it is the paper. A shape inscribed in a sheet is a claim on the sheet, and what is left over is what everything else in the design has to come from.

It is worth seeing what a construction looks like when it does need folding’s extra degree.

The largest 8-sided polygon a square holdsThe maximiser, drawn in the sheet it fits. The tilt is not a stylistic choice — a polygon square to the sheet is smaller, and the angle that makes it largest is the one that makes its two widths equal.tilted 22.50°side 0.4142182.84% of the sheetthe width maximisation and the closed form agree to nine figures
Fig. 8 What largest is measured in, at a different polygon: the octagon in its square, with the quantity being maximised drawn. The number is a side length and the construction that reaches it is a separate question from the number itself.

Which theorem was checked, and how

Three checks, and the first two are exact.

The square must come out at one. The largest square inside a unit square is that square, area exactly 1, and any implementation that had lost a factor of two or measured a width across the wrong axis would fail this immediately. It comes out at 1 to fifteen figures.

The triangle must come out at 2√3 − 3. This is the case that tests the maximisation itself, because its answer is neither trivial nor at the end of the search range. It agrees to better than a part in a million.

The two methods must agree. The corner construction solves a quadratic and shares no line of code with the width maximisation, and the two sides come out equal to nine figures.

The generator also refuses to draw the census if the sequence turns out to be increasing — if every polygon past the peak used more of the sheet than the peak, the figure would have no finding and would be a decoration.

The alternative to an exact construction is worth naming, since this problem happens not to need it.

More sides is not more paperThe area of the largest regular polygon of each number of sides that fits inside a square sheet. The square and the octagon share the sheet's own symmetry and do well by it; the polygons between and after them do not, and the sequence goes up and down rather than up.sidesshare of the sheet the largest one usestilt346.4%15.00°4100.0%45.00°567.4%9.00°669.6%15.00°772.9%6.43°882.8%22.50°975.1%5.00°1075.3%9.00°1176.3%4.09°1280.4%15.00°1376.9%17.31°1476.9%6.43°1577.3%3.00°1679.6%11.25°the 8-sided polygon is the peak, and every one of the 8 polygons after it does worse
Fig. 9 Which theorem was checked, and how: the same question out to sixteen sides. Every entry is the largest regular polygon of that many sides that fits in a unit square, computed rather than quoted, and the triangle is the one whose answer is a fold away.

What is being asked, and what is not

The question here is narrow and worth stating precisely, because inscribed-figure problems have many variants and they have different answers.

Regular polygons only. The largest triangle of any shape in a square is half the square, area 0.5, and it is not equilateral. Requiring regularity is what makes the problem interesting.

A square sheet. Whether the sheet should be square is a separate question with its own measurements, and the answer there also turns on the arithmetic of what is being fitted.

One polygon. Packing several is a different problem entirely and is the one origami design actually reduces to.

And the whole essay is about the outline of the sheet. Nothing here says anything about creases: an inscribed triangle is a region of paper, not a folded object, and turning one into the other is a separate construction with its own losses.

What the answer looks like at the other extreme

A useful way to sanity-check an optimisation is to ask what happens at the ends, and the polygon sequence has two ends worth visiting.

At the low end, the triangle is far and away the worst fit at 46.41%. It uses less than half the sheet, and that is not a defect of the triangle — it is a consequence of a triangle being a poor match for a square by any measure. Three-fold symmetry and four-fold symmetry share only the identity, so no orientation puts the triangle’s vertices anywhere useful relative to the square’s corners.

At the high end the polygons converge on the circle. The largest circle in a unit square uses π/4, which is 78.54%, and every polygon with many sides is approaching that value. The approach is not from below: the octagon at 82.84% and the twelve-sided at 80.38% are both above π/4, because a polygon in tune with the square can use the square’s corners in a way a circle cannot.

So the sequence has a floor at the triangle, a ceiling at the octagon, and a long tail settling toward the circle’s value from both sides. That shape is the signature of the symmetry argument rather than of anything about numbers of sides, and it is what would have to change if the sheet were not a square.

The circle’s own value is the calibration worth keeping. Any inscribed shape that manages more than 78.54% is exploiting the square’s corners; any that manages less is failing to exploit them. Read that way the census is a single question asked thirteen times: does this polygon fit the corners.

The construction question this essay barely touches has a table of its own.

Who solved it, and when

The largest equilateral triangle in a square is a classical recreational result with no clear single author, of the kind that appears in puzzle collections and geometry columns and gets rediscovered every few decades. Its answer is old, its proof is short, and the date a result becomes famous is not the date it was found — a warning this site has had cause to repeat.

The origami construction is likewise traditional. Folding an equilateral triangle from a square is a standard exercise and appears in teaching material going back to the paper-folding of nineteenth-century geometry classrooms, where constructions of this kind were the entire point of the activity.

What is this repository’s is the double solution and the census: the width maximisation, the corner quadratic, the check that they agree, and the sequence over twelve polygons that turns out not to increase.

Where the ladder goes next

The biggest one that can also be folded is the same census crossed with the constructibility question, and it is where folding’s extra degree finally earns something. The eleven-sided polygon is a respectable 76.3% of the square and no single fold can build it; whether that matters depends on how many creases may be made at once.

What this makes readable

Essays that name this one as a prerequisite.

Named alongside this one

Essays reaching for the same objects. Nobody chose these; they are what the concept index makes visible.

What links here

Every essay whose body links to this one.

The objects this essay names

Each one links to every other essay that touches it.

AxiomConstructibilityInscribed polygonOptimalityQuadraticSupport width