Square in a Circle Calculator
Calculate square acircle instantly with our math tool. Shows detailed work, formulas used, and multiple solution methods.
Calculator
Adjust values & calculateFormula
The side length of the largest square inscribed in a circle equals the radius times the square root of 2. The square diagonal equals the circle diameter (2r), and the square covers exactly 2/pi (63.66%) of the circle area.
Last reviewed: December 2025
Worked Examples
Example 1: Square Inside a Circle of Radius 10
Example 2: Find Circle from Square Side
Background & Theory
The Square in a Circle Calculator applies the following established principles and formulas. Mathematics rests on a hierarchy of number systems, each extending the previous. The natural numbers (1, 2, 3, ...) support counting and ordering. The integers add negative values and zero, enabling subtraction without restriction. The rational numbers, expressible as p/q where p and q are integers and q is nonzero, close the system under division. The real numbers fill the gaps left by irrationals such as the square root of 2 or pi, forming a complete ordered field. The complex numbers, written as a + bi where i is the square root of negative one, complete the algebraic closure of the reals and allow every polynomial to have a root. Prime factorization states that every integer greater than one is uniquely expressible as a product of primes, a result known as the Fundamental Theorem of Arithmetic. Computing the greatest common divisor (GCD) of two integers relies most efficiently on the Euclidean algorithm: repeatedly replace the larger number with the remainder when it is divided by the smaller, until the remainder is zero. The last nonzero remainder is the GCD. The least common multiple (LCM) follows from the identity LCM(a, b) = |a * b| / GCD(a, b). Modular arithmetic defines equivalence classes of integers that share the same remainder under division by a modulus n. Fermat's Little Theorem and Euler's Theorem arise from this structure and underpin modern cryptography. Logarithms are the inverses of exponential functions. If b raised to the power x equals y, then the logarithm base b of y equals x. The natural logarithm uses base e, approximately 2.71828. Combinatorics counts arrangements and selections. The number of ordered arrangements (permutations) of r objects from n distinct objects is nPr = n! / (n - r)!. The number of unordered selections (combinations) is nCr = n! / (r! * (n - r)!). Pascal's triangle arranges these binomial coefficients so that each entry equals the sum of the two entries directly above it. The Fibonacci sequence, defined by F(1) = 1, F(2) = 1, and F(n) = F(n-1) + F(n-2), appears throughout nature and connects deeply to the golden ratio via Binet's formula.
History
The history behind the Square in a Circle Calculator traces back through the following developments. Mathematics as a systematic discipline traces to ancient Mesopotamia. Babylonian clay tablets dating to around 1800 BCE demonstrate knowledge of quadratic equations, Pythagorean triples, and base-60 arithmetic, suggesting a practical mathematical tradition far preceding Greek formalism. Euclid of Alexandria compiled the Elements around 300 BCE, establishing the axiomatic method that would define rigorous mathematics for over two thousand years. His work organized plane geometry, number theory, and proportion into logically chained propositions derived from a small set of postulates. The algorithm bearing his name for computing GCDs appears in Book VII and remains in use today. In the 9th century, the Persian scholar Muhammad ibn Musa Al-Khwarizmi wrote Al-Kitab al-mukhtasar fi hisab al-jabr wal-muqabala, the treatise whose title gave algebra its name. He systematized the solution of linear and quadratic equations and described procedures that operated on unknowns as objects, a conceptual leap away from purely numerical calculation. Rene Descartes introduced coordinate geometry in 1637 by uniting algebra and Euclidean geometry, allowing curves to be studied through equations. This synthesis set the stage for calculus. Isaac Newton and Gottfried Wilhelm Leibniz independently developed calculus during the 1660s and 1670s, triggering a priority dispute that lasted decades and divided British and Continental mathematicians. Carl Friedrich Gauss proved the Fundamental Theorem of Algebra in 1799, showing that every nonconstant polynomial has at least one complex root. His Disquisitiones Arithmeticae of 1801 established modern number theory. David Hilbert's formalist program at the turn of the 20th century sought to place all of mathematics on an explicit axiomatic foundation, a project that Kurt Godel's incompleteness theorems of 1931 showed to be fundamentally limited. Alan Turing's work in the 1930s on computability introduced the theoretical model of the stored-program computer and linked mathematical logic directly to the limits of algorithmic calculation. His proof that no algorithm can decide in general whether an arbitrary program will halt or run forever placed fundamental boundaries on what mathematics can mechanically determine, and it opened the discipline now known as theoretical computer science.
Frequently Asked Questions
Formula
s = r * sqrt(2)
The side length of the largest square inscribed in a circle equals the radius times the square root of 2. The square diagonal equals the circle diameter (2r), and the square covers exactly 2/pi (63.66%) of the circle area.
Worked Examples
Example 1: Square Inside a Circle of Radius 10
Problem: Find the side, area, and perimeter of the largest square inscribed in a circle with radius 10.
Solution: Side = r * sqrt(2) = 10 * 1.41421 = 14.142\nSquare area = s^2 = 14.142^2 = 200.00\nCircle area = pi * 10^2 = 314.159\nArea ratio = 200 / 314.159 = 63.66%\nWasted area = 314.159 - 200 = 114.159\nSquare perimeter = 4 * 14.142 = 56.569
Result: Side = 14.142 | Square Area = 200 | Coverage = 63.66%
Example 2: Find Circle from Square Side
Problem: A square with side 20 cm is inscribed in a circle. Find the circle radius and area.
Solution: Square diagonal = 20 * sqrt(2) = 28.284 cm = diameter\nRadius = 28.284 / 2 = 14.142 cm\nCircle area = pi * 14.142^2 = 628.318 cm^2\nSquare area = 20^2 = 400 cm^2\nRatio = 400 / 628.318 = 63.66%
Result: Circle radius = 14.142 cm | Circle area = 628.32 cm^2 | Ratio = 63.66%
Frequently Asked Questions
What is the largest square that fits inside a circle?
The largest square that can be inscribed in a circle has its diagonal equal to the diameter of the circle. If the circle has radius r, the square side length is r * sqrt(2), which is approximately 1.4142 times the radius. The square is positioned so that all four vertices touch the circle (they lie on the circumference). This inscribed square has the maximum possible area of any square that fits entirely within the circle. The area of this largest inscribed square is 2 * r squared, which equals exactly 2/pi (approximately 63.66%) of the circle area. This geometric relationship has been studied since ancient Greek mathematics and has practical applications in engineering and design.
How do you calculate the side length of a square inscribed in a circle?
To find the side length of a square inscribed in a circle, use the relationship between the diagonal and the diameter. Since the square diagonal equals the circle diameter (2r), and a square diagonal equals side times sqrt(2), we get side = diagonal / sqrt(2) = 2r / sqrt(2) = r * sqrt(2). For example, a circle with radius 10 units contains an inscribed square with side length 10 * sqrt(2) = 14.142 units. You can also derive this from the Pythagorean theorem: if the side is s, then s squared + s squared = (2r) squared, giving 2s squared = 4r squared, so s = r * sqrt(2). This formula works for any circle regardless of size.
What percentage of a circle does the inscribed square cover?
The inscribed square covers exactly 2/pi of the circle area, which is approximately 63.66%. This can be derived by dividing the square area (2r squared) by the circle area (pi * r squared): ratio = 2r squared / (pi * r squared) = 2/pi = 0.6366. This means approximately 36.34% of the circle area lies in the four curved corners between the square and the circle. This ratio is constant regardless of the circle size, which is a beautiful property of similar geometric figures. In manufacturing, this percentage helps calculate material waste when cutting square pieces from circular stock material such as metal discs or round logs.
What is the difference between an inscribed square and a circumscribed square?
An inscribed square fits inside the circle with all four vertices touching the circle, while a circumscribed square fits outside the circle with all four sides tangent to the circle. For a circle with radius r, the inscribed square has side length r * sqrt(2) and area 2r squared. The circumscribed square has side length 2r (equal to the diameter) and area 4r squared. The circumscribed square area is exactly twice the inscribed square area and equals 4/pi times the circle area (approximately 127.32%). The circle covers pi/4 (about 78.54%) of the circumscribed square. These two configurations represent the tightest square bounds around and within a circle.
How is the inscribed square related to the Pythagorean theorem?
The Pythagorean theorem is the foundation for deriving the inscribed square properties. When a square is inscribed in a circle, the diagonal of the square equals the diameter of the circle. Drawing one diagonal creates two right triangles, each with legs equal to the square side length s and hypotenuse equal to the diagonal d. By the Pythagorean theorem, s squared + s squared = d squared, which gives 2s squared = d squared, or s = d / sqrt(2). Since d = 2r, we get s = 2r / sqrt(2) = r * sqrt(2). This elegant connection between the circle (defined by its radius) and the square (defined by its side) demonstrates how the Pythagorean theorem bridges different geometric shapes.
Can you inscribe other regular polygons in a circle?
Yes, any regular polygon can be inscribed in a circle (called the circumscribed circle or circumcircle). For a regular n-sided polygon inscribed in a circle of radius r, the side length is 2r * sin(pi/n). An equilateral triangle has side r * sqrt(3), a square has side r * sqrt(2), a regular pentagon has side 2r * sin(36 degrees) = approximately 1.176r, and a regular hexagon has side exactly r. As the number of sides increases, the polygon approaches the circle, and the ratio of polygon area to circle area approaches 1. The area of a regular n-gon inscribed in a circle is (n * r squared * sin(2*pi/n)) / 2. This series of inscribed polygons was used by Archimedes to approximate pi.
References
Reviewed by Manoj Kumar, Mathematics Educator ยท Editorial policy