Square in a Circle Calculator
Find the largest square that fits in a circle, the largest circle that fits in a square, or an equal-area conversion between the two shapes.
Inputs
Live results
Side of largest square
14.1421 cm
The square's diagonal equals the circle's diameter.
Source area
314.1593 cm²
Target area
200.0000 cm²
Area relationship
63.66%
s = √2 × r = √2 × 10 cm = 14.1421 cm
Calculation details
| Quantity | Symbol | Value | Interpretation |
|---|---|---|---|
| Circle radius | r | 10.0000 cm | Starting circle dimension |
| Circle area | A | 314.1593 cm² | Available enclosing area |
| Square side | s | 14.1421 cm | Maximum inscribed side length |
| Square area | Aₛ | 200.0000 cm² | Area occupied by the square |
| Area ratio | Aₛ / A | 63.66% | Fraction of circle area occupied |
Values are calculated from the same canonical model used for the live result and Excel workbook.
How to use the square in a circle calculator
What this calculator does
This calculator solves four closely related plane-geometry problems. It can determine the largest square that fits inside a circle, the largest circle that fits inside a square, a square with exactly the same area as a circle, or a circle with exactly the same area as a square. It converts one known radius, side length, or area into the corresponding dimensions and areas of both shapes. The result is an exact geometric identity evaluated numerically; it does not include manufacturing clearance, cutting kerf, border thickness, measurement uncertainty, or a safety margin.
When to use it
Use it when sizing a square tile or cake layer for a circular boundary, checking the largest round feature that fits inside a square panel, comparing circular and square floor plans, or converting a design to an equal-area shape. It is also useful for checking homework involving the Pythagorean theorem, circle area, square area, and inscribed or circumscribed figures.
How to calculate
- The calculator opens with a ready-to-use example: a circle radius of 10 cm. Its results are already calculated, and the Excel workbook is immediately available.
- Choose the problem in I want to find. Containment modes find the largest shape that physically fits; equal-area modes preserve area rather than guaranteeing containment.
- Choose Known measurement, select the Length unit, and replace the demonstration Measurement value. Results update automatically.
- Read the primary dimension, the source and target areas, the area relationship, the formula trace, and the calculation-details table. Select Download Excel to export the current validated model.
- Reset clears the demonstration data rather than restoring it. After Reset, Download Excel is disabled until you enter a complete valid measurement again.
Input guide
I want to find is a required four-option list. “Largest square inside a circle” and “Largest circle inside a square” are fitting problems; “same area” options are conversions. For example, select “Largest circle inside a square” when you have a 24-inch square opening. A common mistake is treating an equal-area result as a guaranteed physical fit.
Known measurement is required and changes with the selected mode. Circle-based modes accept Circle radius or Circle area; square-based modes accept Square side or Square area. Choose the quantity you actually measured. Do not enter a diameter as a radius: a 20 cm diameter means a 10 cm radius.
Length unit is required and supports millimeters, centimeters, meters, inches, and feet. Areas use the square of the selected length unit. When you change the unit, the current measurement is converted: 10 cm becomes 100 mm, while 100 cm² becomes 10,000 mm². This distinction follows the dimensional-analysis principle that area has two length dimensions; NIST explains this in its unit-conversion guidance.
Measurement value is a required positive decimal. It accepts a period as the decimal separator and optional correctly placed thousands commas, such as 1,250.5. Decimal-comma input such as 1,5 is rejected instead of being silently interpreted as 15. Values must be greater than zero and finite. The unit shown beside the field becomes squared when the chosen measurement is an area.
Output guide
The Mode, Input, and Units summary pills restate the active setup. Primary result is the requested side length or radius. Source area is the area of the shape you started from; Target area is the calculated shape's area. Area relationship is target area divided by source area. It equals 100% for equal-area conversions, about 63.66% for a largest square inside a circle, and about 78.54% for a largest circle inside a square. These fixed ratios are exact consequences of the geometry, not performance recommendations.
The Formula trace substitutes your active value into the governing formula. In the Calculation details table, Quantity names the geometric measure, Symbol gives its notation, Value reports the current numeric result and unit, and Interpretation explains its role in the selected mode. Length rows use the selected length unit; area rows use the corresponding squared unit. OpenStax's explanation of circle area and geometry applications provides additional context for the formulas.
Worked example
In the startup example, the circle radius is 10 cm. For the largest square inside that circle, the square's diagonal must equal the circle's 20 cm diameter. A square diagonal is its side multiplied by √2, so the side is 20 ÷ √2, which is equivalent to 10√2 = 14.1421 cm. The square area is 14.1421² = 200.0000 cm². The circle area is π × 10² = 314.1593 cm², so the square occupies 200 ÷ 314.1593 = 63.66% of the circle's area. These are the exact first-open values shown in the results and exported workbook.
Formulas and interpretation
Largest square inside a circle
s = r√2; Aₛ = 2r²; Aₛ / A = 2/πThe circle's diameter is the square's diagonal. Because a square diagonal is s√2, setting s√2 = 2r gives s = r√2. The resulting square always occupies 2/π, or about 63.66%, of the circle's area, regardless of size.
Largest circle inside a square
r = s/2; A = πs²/4; A / Aₛ = π/4The circle touches the midpoint of each side, so its diameter equals the square's side. The circle always occupies π/4, or about 78.54%, of the square's area. The “round peg versus square hole” comparison is discussed in Wolfram MathWorld's geometric area-ratio note.
Equal-area conversions
For a circle converted to an equal-area square, set s² = πr², giving s = r√π. For a square converted to an equal-area circle, set πr² = s², giving r = s/√π. Equal area does not mean equal width: an equal-area square based on a circle has a side shorter than the circle's diameter, while an equal-area circle based on a square has a diameter greater than the square's side.
Units, precision, and practical clearance
Length results are shown to four decimal places and area ratios to two percentage points. Internal calculations retain full JavaScript floating-point precision and the workbook stores numeric values rather than formatted text. Area must be expressed in square units; NIST identifies the square meter as the SI derived unit of area in its SI area reference. For real cutting or construction, reduce the calculated maximum dimension by your required clearance and account for tool width, tolerances, and material movement.