Double Square Calculator

Double Square Calculator

Emerging AI Skill PRO

Enter Calculation

Formula

A=2a2−c2A = 2a^{2} - c^{2}
Usage stats

Advertisement

Results

Area A
56
Perimeter P32
Short side b (the shift)2
Overlap c (side of the shared square)4
Diagonal d1 (joins the two inward corners)5.656854
Diagonal d2 (joins the two outer corners on the long axis)11.313708

Report an error on this page

What is a double square?

A double square (two overlapping squares) is the shape covered by two equal squares of side a when the second square is the first one shifted along their common diagonal by b in each direction, with 0 < b < a. The squares share a smaller square of side c = a − b. The outline is an octagon with six right angles and two inward (270°) corners, four sides a and four short sides b. It has two mirror axes along its diagonals and point symmetry.

How to use it

Type the square side a and either the short side b (how far the second square is shifted) or the overlap c (the side of the square both squares share); choose which in the first box. b and c must each be shorter than a: at b equal to a the squares only touch at a corner, and at c equal to a they are the same square. The length unit is only a label: lengths come out in that unit and areas in its square. Each length you type must be from 0.000001 to 1,000,000,000 (a box that allows 0 also accepts 0), each area from 0.000000000001 to 1,000,000,000,000,000,000 and each angle greater than 0° and less than 180°; 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 first square on [0, a] × [0, a] and the second on [b, a + b] × [b, a + b]. The outline runs through (0, 0), (a, 0), (a, b), (a + b, b), (a + b, a + b), (b, a + b), (b, a) and (0, a); the inward corners are (a, b) and (b, a). The shared square has side c = a − b, and it is counted twice when the two squares are added:

$$ A = 2a^{2} - c^{2}, \qquad P = 4a + 4b $$

Diagonal d1 joins the two inward corners and is the diagonal of the shared square. Diagonal d2 joins (0, 0) and (a + b, a + b):

$$ d_1 = \sqrt{2}\, c, \qquad d_2 = \sqrt{2}\,(a + b) $$

Worked example

The page opens with square side a = 6, short side b (the shift) = 2. Then area A ≈ 56; perimeter P ≈ 32; overlap c (side of the shared square) ≈ 4; diagonal d2 (joins the two outer corners on the long axis) ≈ 11.313708. Values are shown with up to six decimals; a value below 0.0000005 or of 10¹⁵ and more is shown as its plain 12-digit number instead.

Advertisement
Two equal overlapping squares with side 6, shift 2, and overlap side 4.
In the worked example, each square has side 6 and the shift is 2, leaving an overlap with side 4.

Frequently asked questions

What happens when the overlap gets very small?

The two squares then nearly touch at a single corner: the area approaches 2a², the perimeter approaches 8a and the two inward corners move together.

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?

Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.

Advertisement
Overlapping squares with inputs 6 and 2, showing area 56, perimeter 32, and long diagonal 11.313708.
For side 6 and shift 2, the calculator gives area approximately 56, perimeter approximately 32, and long diagonal approximately 11.313708.

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