Circular Square Calculator

Circular Square Calculator

Emerging AI Skill PRO

Enter Calculation

Formula

A=2v2+2r2(ψ−sin⁡ψ),P=4rψ,v=r2−b2/4−b/2A = 2v^{2} + 2r^{2}(\psi - \sin\psi), \quad P = 4r\psi, \quad v = \sqrt{r^{2} - b^{2}/4} - b/2
Usage stats

Advertisement

Results

Area A
42.808106
Perimeter P (the four arcs)23.36161
Edge a of the inner square (between neighbouring corners)5.51399
Segment height h (arc above an edge of the inner square)0.828792
Arc length l (one of four)5.840402
Diameter d1 (corner to opposite corner)7.797959
Diameter d2 (arc middle to opposite arc middle)7.171573

Report an error on this page

What is a circular square?

A circular square is what you get when a cross made of two bars of width b, one horizontal and one vertical, both through the centre, is cut out of a disc of radius r, and the four quarter pieces that remain are pushed diagonally towards the centre until their straight edges meet. The four pieces then fill one shape without gaps: its outline is four arcs of the original circle, each with the radius r, and they meet at four corners that lie on the two lines where the pieces were joined. The corners form a square, the inner square, and each arc bulges out over one of its edges. The shape has the symmetry of a square: four mirror axes and a quarter turn. With b approaching 0 it becomes the whole circle again.

A disc with a cross removed and the four remaining quarters joined into a circular square.
A circular square is formed by removing a cross from a disc and joining the four remaining quarters. The example uses a radius of 5 and a cross width of 2.

How to use it

Type the radius r of the circle and the width b of each bar of the cross. The bar width must be less than √2·r, since a wider cross covers the whole disc; the page refuses such a width with a sentence that says so. The length unit is only a label: lengths come out in that unit and areas in its square. Radius r of the circle and bar width b of the cross must each be from 0.000001 to 1,000,000,000; a number may also be typed in exponent form such as 2.5e3. Anything else, including text, is refused with a sentence that says why, and so is a set of values that cannot form the shape.

Derivation of the formulas

Put the centre of the disc at the origin. The quarter piece in the first quadrant is the part of the disc with x ≥ b/2 and y ≥ b/2; moved by (−b/2, −b/2), it lies on the circle of radius r about (−b/2, −b/2) and reaches the axes at the corners (v, 0) and (0, v), where

$$ \left(v + \frac{b}{2}\right)^{2} + \frac{b^{2}}{4} = r^{2} \quad\Longrightarrow\quad v = \sqrt{r^{2} - \frac{b^{2}}{4}} - \frac{b}{2} = \frac{r^{2} - b^{2}/2}{\sqrt{r^{2} - b^{2}/4} + b/2} $$

So v is positive exactly when b is less than √2·r. The corners form a square with the diagonal d1 = 2v and the edge a = √2·v. Each arc spans one edge of that square as its chord, so its central angle ψ satisfies sin(ψ/2) = a/(2r), and the arc and the circular segment over each edge follow:

$$ \psi = 2\arcsin\frac{v}{\sqrt{2}\,r} = \frac{\pi}{2} - 2\arcsin\frac{b}{2r}, \qquad l = r\psi, \qquad P = 4r\psi, \qquad h = r - \sqrt{r^{2} - \frac{a^{2}}{4}} $$

$$ A = 2v^{2} + 4\cdot\frac{r^{2}}{2}\left(\psi - \sin\psi\right) = \pi r^{2} - 2b\sqrt{r^{2} - \frac{b^{2}}{4}} + b^{2} - 4r^{2}\arcsin\frac{b}{2r} $$

The second form is the disc less the cross: the area does not change when the pieces are moved. The middle of each arc is the point of the outline nearest to the centre, at r − b/√2, so d2 = 2r − √2·b; the corners are the farthest points, at v, so d2 is the shorter of the two diameters. The page evaluates the first, cancellation-free form in 64-digit decimal arithmetic and rounds each result once; the independent check integrates the four pieces numerically.

Advertisement

Worked example

The page opens with radius r of the circle = 5, bar width b of the cross = 2. Then area A ≈ 42.808106; perimeter P (the four arcs) ≈ 23.36161; edge a of the inner square (between neighbouring corners) ≈ 5.51399; diameter d1 (corner to opposite corner) ≈ 7.797959; diameter d2 (arc middle to opposite arc middle) ≈ 7.171573. Each value is shown rounded once, from the computed number, to six decimals or to 12 significant digits, whichever is fewer; a value of 10¹² and more is written as its 12 significant digits times a power of ten, such as 1.23456789012 × 10¹⁵, since a computed number holds no more digits than that; a value below 0.0000005 is shown as its plain 12-digit number instead.

Worked example showing the circular square's area, perimeter, inner-square edge, and two diameters.
For radius 5 and cross width 2, the area is approximately 42.808106 and the perimeter is approximately 23.36161. The inner-square edge is approximately 5.51399; the corner-to-corner and arc-midpoint diameters are approximately 7.797959 and 7.171573, respectively.

Frequently asked questions

Why is the area the disc minus the cross?

Moving the four quarter pieces does not change their areas, and they meet only along their straight edges, so the shape has exactly the area of the disc less the part of the cross inside it.

Which bar widths does the page accept?

A width b greater than 0 and less than √2 times the radius. At √2·r the corners of the cross reach the circle and nothing is left; such a width and anything above it is refused.

Is the shape convex?

Yes. Every arc bends outward, and at each corner the two arcs meet at the angle 2·arccos(b/(2r)) inside the shape, which is less than 180°: it falls from almost 180° for a thin cross towards 90° as b approaches √2·r.

Why does the unit not change the numbers?

The calculator does not convert between units. Every length is read in the unit you chose, so the unit only labels the results; areas come out in that unit squared.

How accurate are the results?

Every result is computed in 64-digit decimal arithmetic, with π to 57 digits and sine, cosine and arctangent summed from their series until a term falls below 10⁻⁶⁶, by forms that lose no digits to cancellation; each shown value is that result rounded once to six decimals or to 12 significant digits, whichever is fewer. Every digit shown is correct for every input the page accepts.

Advertisement

References

H. S. M. Coxeter, Introduction to Geometry, 2nd edition, Wiley, 1969

D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulas, 33rd edition, CRC Press, 2018

Last updated:

Most popular in Geometry

View all Geometry calculators