Square in a Circle Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter the radius of a circle to get the biggest square that fits inside it, or the side of a square to get the circle that passes through its corners.
Result
Square side s = r√2
Circle radius r
- Square diagonal = circle diameter 2r
- Square area s² = 2r² (square units)
- Circle area πr² (square units)
- Area of the circle outside the square (square units)
- Share of the circle covered by the square (2/π)
- Radius of the circle inscribed in the square, s ÷ 2
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- You know the: choose Circle radius r or Square side s.
- Value (any length unit): enter 0 or more.
- Read the result: Square side s = r√2; the panel also shows Circle radius r, Square diagonal = circle diameter 2r, Square area s² = 2r² (square units), Circle area πr² (square units), Area of the circle outside the square (square units), Share of the circle covered by the square (2/π) and Radius of the circle inscribed in the square, s ÷ 2.
How this calculator works
The largest square inside a circle has its four corners on the circle, so its diagonal is a diameter: s√2 = 2r, which gives s = r√2 and a square area of 2r².
The square covers 2r² ÷ πr² = 2/π of the circle, about 63.66%, whatever the size. The four leftover pieces add up to (π − 2)r².
The circle that fits inside the same square touches the middle of each side; its radius is s/2.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| You know the (1: Circle radius r; 2: Square side s) | ||
| Value | any length unit | |
| Circle radius r | ||
| Square side s = r√2 |
Worked example
| You know the | Circle radius r |
|---|---|
| Value (any length unit) | 5 |
| Circle radius r | 5 |
|---|---|
| Square diagonal = circle diameter 2r | 10 |
| Square area s² = 2r² (square units) | 50 |
| Circle area πr² (square units) | 78.5398 |
| Area of the circle outside the square (square units) | 28.5398 |
| Share of the circle covered by the square (2/π) | 63.66% |
| Radius of the circle inscribed in the square, s ÷ 2 | 3.5355 |
Square side s = r√2 7.0711
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What size square fits in a circle of radius 5?
Side 5√2 ≈ 7.0711, with an area of 50 square units.
How much of the circle does the square fill?
2/π of it, about 63.66%.
What circle passes through the corners of a 10 by 10 square?
One with radius 10 ÷ √2 ≈ 7.0711, half the diagonal.