Audited 05 Aug 2026·Last updated 15 Sept 2026·3 citations·Tier 2·0 uses

Square In A Circle Calculator

Square in a circle calculator: the inscribed square's diagonal equals the diameter, so side = r√2 and area = 2r² — the largest square a circle can hold.

Square In A Circle Calculator

Inscribed square side
7.0711
Primary result from the named standard variant.
Inscribed square area
50

Background.

What is the biggest square that fits inside a circle? Rotate any inscribed square and its four corners ride the circle while its diagonals pass through the centre — which is the entire solution: the square's diagonal is a diameter. From diagonal = 2r and the square's own diagonal-to-side ratio of √2, the side is r√2 and the area is 2r². This page computes both from the radius.

The ratio behind the answer is worth pausing on. A square of side s has diagonal s√2 — Pythagoras on two equal legs — and that √2 ≈ 1.414 is the constant that governs every fit-a-square problem. Here it works in reverse: the circle fixes the diagonal, so the side is the diameter shrunk by √2, and the square claims area 2r² out of the circle's πr² — a fixed 2/π ≈ 63.7% of the disc, independent of size. The four leftover circular segments split the remaining 36.3%.

The question is practical more often than it looks. Machinists milling the largest square boss from round bar stock, woodworkers sawing a square post from a log, engineers windowing a square sensor inside a round lens' image circle, and fabricators cutting square blanks from circular offcuts all face exactly this geometry — usually meeting it as ‘what square section does a 100 mm round yield?’ The answer, 70.7 mm on a side, is this page's arithmetic.

The model is the ideal centred, fully inscribed square — corners exactly on the circle. Real cutting adds kerf, clearance, and tolerance allowances that only your process can supply, as the scope note beside the result records.

What is square in a circle calculator?

The inscribed square of a circle is the largest square that fits inside it: all four corners lie on the circle, and its diagonals are diameters. The geometry gives closed forms from the radius alone — side = r√2, area = 2r² — because the diagonal (2r) and the side of a square are locked in the ratio √2. The inscribed square occupies exactly 2/π ≈ 63.66% of the circle's area at every scale. It is the reverse of the circumscribed-square problem (square outside, circle inside), whose square has side 2r and area 4r² — exactly twice the inscribed square's.

How to use this calculator.

  1. Enter the circle's radius — halve a measured diameter first, since stock and holes are usually specified by diameter.
  2. Read the inscribed square's side (r√2) and area (2r²), in your unit and unit-squared respectively.
  3. For machining or sawing, subtract your process allowances from the side afterwards — kerf, cleanup passes, and tolerance are not in the ideal geometry.
  4. Going the other way — what circle does a given square need? — invert to r = s/√2: a 50 mm square needs at least a 70.7 mm-diameter circle.
  5. Sanity-check any answer with the area ratio: the square should come out to just under two-thirds (63.7%) of the circle's area, every time.

The formula.

Square diagonal = circle diameter; side = r√2

Two facts assemble the result. First, the largest inscribed square is centred, so each diagonal runs corner-to-corner through the centre — a chord through the centre is a diameter, hence diagonal d = 2r. (Thales' theorem gives the same from the other side: the right angle at each corner subtends a diameter.) Second, a square's diagonal and side obey d = s√2, from Pythagoras on the right triangle formed by two sides and the diagonal. Combining: s = 2r/√2 = r√2, and squaring gives area = 2r² — with the tidy check that the four corner segments left over must total πr² − 2r². The fixed fraction 2/π falls out immediately: inscribed square over circle = 2r²/πr², scale-free. The same two facts answer the family of related questions — circumscribed square (side 2r), inscribed circle of a square (radius s/2), largest square in a semicircle (a different, r√(4/5) problem worth not confusing with this one). The engine multiplies r by √2 and squares in Decimal arithmetic, rounding once to twelve significant digits.

A worked example.

Example

A circle of radius 5 — a 10-unit diameter — is to hold the largest possible square. How big is it? The key observation: the inscribed square's corner-to-corner diagonal lies along a diameter, so the diagonal is exactly 10. A square's side is its diagonal divided by √2: s = 10/√2 = 5√2 ≈ 7.071 — the engine's 7.0710678119. Area follows by squaring: (5√2)² = 25 × 2 = 50 exactly — no irrational residue, since the √2 squares away. Set against the circle's area π × 25 ≈ 78.54, the square claims 50/78.54 = 63.7%, the universal 2/π share; the four thin segments between square and circle split the remaining 28.54 square units. In shop terms: 100 mm round bar stock (r = 50 mm) yields at most a 70.7 mm square section — before kerf and cleanup — and a fabricator quoting a 75 mm square from that bar has promised geometry the circle cannot deliver. The √2 is unforgiving: to gain a millimetre of square side, the stock diameter must grow by 1.414 of them.

circle Radius5

Frequently asked questions.

Why does the square's diagonal have to be the circle's diameter?
Push any inscribed square as large as it will go and its four corners must touch the circle — otherwise there is room to grow. A centred square's opposite corners are then two points on the circle in line with the centre, and a chord through the centre is by definition a diameter. Thales' theorem states the converse elegantly: an angle inscribed in a semicircle is a right angle, which is exactly each corner of the square seeing the opposite diagonal. Diagonal = diameter is thus not an assumption but the optimality condition itself.
What fraction of the circle does the inscribed square cover?
Exactly 2/π ≈ 63.66%, at every size — the ratio 2r²/πr² has the radius cancel. The complementary 36.34% forms four congruent circular segments in the corners. The scale-independence is the practical takeaway: whether the round stock is 10 mm or 10 m, cutting a square from it wastes a bit over a third of the material — a floor no cleverness improves while the cut stays a single centred square.
How is this different from a square drawn around the circle?
That is the circumscribed square — the circle inscribed in it — and the roles of side and diameter swap: the circle's diameter spans the square's side (not its diagonal), so side = 2r and area = 4r². For r = 5: circumscribed side 10 and area 100, versus inscribed side 7.07 and area 50. The neat factor of exactly 2 between the two squares' areas holds always, and the circle's πr² ≈ 78.5 sits between them — the classic sandwich Archimedes sharpened into estimates of π.
What size circle do I need to fit a given square?
Invert the formula: the square's diagonal must fit the diameter, so r = s√2/2 ≈ 0.707·s — a 50 mm square needs a 70.7 mm diameter, minimum. Add real-world clearance beyond the ideal contact-at-corners fit: a square peg that exactly matches will not pass a hole of that diameter in practice. The same inversion prices upgrades: fitting a square even 5% larger demands a circle 5% larger in diameter — the relationship is strictly linear.
Does the largest-square answer change for a semicircle or other shapes?
Completely — the diagonal-equals-diameter argument is specific to the full circle. The largest square in a semicircle of radius r sits on the flat edge and has side 2r/√5 ≈ 0.894r (area 0.8r²), from a different Pythagorean setup; a quarter-circle gives yet another. And within the full circle, a rectangle can do no better: among all inscribed rectangles the square maximises area (2r², versus r²√3 ≈ 1.73r² for a 2:1 aspect, degenerating to zero as the rectangle flattens). Each container reshapes the optimisation — this page answers the full-circle case exactly.

How this page was produced

Published by
Quanta Calculator
Primary sources
3 cited below
Method
Square diagonal = circle diameter; side = r√2
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon