Square
Shape with four equal sides and angles

In geometry, a square is a regular quadrilateral. It has four straight sides of equal length and four equal angles. Squares are special cases of rectangles, which have four equal angles, and of rhombuses, which have four equal sides. As with all rectangles, a square's angles are right angles (90 degrees, or π/2 radians), making adjacent sides perpendicular. The area of a square is the side length multiplied by itself, and so in algebra, multiplying a number by itself is called squaring.
Equal squares can tile the plane edge-to-edge in the square tiling. Square tilings are ubiquitous in tiled floors and walls, graph paper, image pixels, and game boards. Square shapes are also often seen in building floor plans, origami paper, food servings, in graphic design and heraldry, and in instant photos and fine art.
The formula for the area of a square forms the basis of the calculation of area and motivates the search for methods for squaring the circle by compass and straightedge, now known to be impossible. Squares can be inscribed in any smooth or convex curve, such as a circle or triangle, but it remains unsolved whether a square can be inscribed in every simple closed curve. Several problems of squaring the square involve subdividing squares into unequal squares. Mathematicians have also studied packing squares as tightly as possible into other shapes.
Squares can be constructed by straightedge and compass, through their Cartesian coordinates, or by repeated multiplication by in the complex plane. They form the metric balls for taxicab geometry and Chebyshev distance, two forms of non-Euclidean geometry. Although spherical geometry and hyperbolic geometry both lack polygons with four equal sides and right angles, they have square-like regular polygons with four sides and other angles, or with right angles and different numbers of sides.
01Definitions and characterizations
Squares can be defined or characterized in many equivalent ways. If a polygon in the Euclidean plane satisfies any one of the following criteria, it satisfies all of them:
- A square is a polygon with four equal sides and four right angles; that is, it is a quadrilateral that is both a rhombus and a rectangle
- A square is a rectangle with four equal sides.
- A square is a rhombus with a right angle between a pair of adjacent sides.
- A square is a rhombus with all angles equal.
- A square is a parallelogram with one right angle and two adjacent equal sides.
- A square is a quadrilateral where the diagonals are equal, and are the perpendicular bisectors of each other. That is, it is a rhombus with equal diagonals.
- A square is a quadrilateral with successive sides
,
,
,
whose area is
Squares are the only regular polygons whose internal angle, central angle, and external angle are all equal (they are all right angles).


02Properties
A square is a special case of a rhombus (equal sides, opposite equal angles), a kite (two pairs of adjacent equal sides), a trapezoid (one pair of opposite sides parallel), a parallelogram (all opposite sides parallel), a quadrilateral or tetragon (four-sided polygon), and a rectangle (opposite sides equal, right-angles), and therefore has all the properties of all these shapes, namely:
- All four internal angles of a square are equal (each being 90°, a right angle).
- The central angle of a square is equal to 90°.
- The external angle of a square is equal to 90°.
- The diagonals of a square are equal and bisect each other, meeting at 90°.
- The diagonals of a square bisect its internal angles, forming adjacent angles of 45°.
- All four sides of a square are equal.
- Opposite sides of a square are parallel.
All squares are similar to each other, meaning they have the same shape. One parameter (typically the length of a side or diagonal) suffices to specify a square's size. Squares of the same size are congruent.
Measurement
A square whose four sides have length has perimeter
and diagonal length
. The square root of 2, appearing in this formula, is irrational, meaning that it cannot be written exactly as a fraction. It is approximately equal to 1.414, and its approximate value was already known in Babylonian mathematics. A square's area is
This formula for the area of a square as the second power of its side length led to the use of the term squaring to mean raising any number to the second power. Reversing this relation, the side length of a square of a given area is the square root of the area. Squaring an integer, or taking the area of a square with integer sides, results in a square number; these are figurate numbers representing the numbers of points that can be arranged into a square grid.
Since four squared equals sixteen, a four by four square has an area equal to its perimeter. That is, it is an equable shape. The only other equable integer rectangle is a three-by-six rectangle.
Because it is a regular polygon, a square is the quadrilateral of least perimeter enclosing a given area. Dually, a square is the quadrilateral containing the largest area within a given perimeter. Indeed, if A and P are the area and perimeter enclosed by a quadrilateral, then the following isoperimetric inequality holds:
with equality if and only if the quadrilateral is a square.
Symmetry
The square is the most symmetrical of the quadrilaterals. Eight rigid transformations of the plane take the square to itself:
For an axis-parallel square centered at the origin, each symmetry acts by a combination of negating and swapping the Cartesian coordinates of points. The symmetries permute the eight isosceles triangles between the half-edges and the square's center (which stays in place); any of these triangles can be taken as the fundamental region of the transformations. Each two vertices, each two edges, and each two half-edges are mapped one to the other by at least one symmetry (exactly one for half-edges). All regular polygons also have these properties, which are expressed by saying that symmetries of a square and, more generally, a regular polygon act transitively on vertices and edges, and simply transitively on half-edges.
Combining any two of these transformations by performing one after the other continues to take the square to itself, and therefore produces another symmetry. Repeated rotation produces another rotation with the summed rotation angle. Two reflections with the same axis return to the identity transformation, while two reflections with different axes rotate the square. A rotation followed by a reflection, or vice versa, produces a different reflection. This composition operation gives the eight symmetries of a square the mathematical structure of a group, called the group of the square or the dihedral group of order eight. Other quadrilaterals, like the rectangle and rhombus, have only a subgroup of these symmetries.
The shape of a square, but not its size, is preserved by similarities of the plane. Other kinds of transformations of the plane can take squares to other kinds of quadrilateral. An affine transformation can take a square to any parallelogram, or vice versa; a projective transformation can take a square to any convex quadrilateral, or vice versa. This implies that, when viewed in perspective, a square can look like any convex quadrilateral, or vice versa. A Möbius transformation can take the vertices of a square (but not its edges) to the vertices of a harmonic quadrilateral.
The wallpaper groups are symmetry groups of two-dimensional repeating patterns. For many of these groups the basic unit of repetition (the unit cell of its period lattice) can be a square, and for three of these groups, p4, p4m, and p4g, it must be a square.
Inscribed and circumscribed circles
The inscribed circle of a square is the largest circle that can fit inside that square. Its center is the center point of the square, and its radius (the inradius of the square) is . Because this circle touches all four sides of the square (at their midpoints), the square is a tangential quadrilateral. The circumscribed circle of a square passes through all four vertices, making the square a cyclic quadrilateral. Its radius, the circumradius, is
. If the inscribed circle of a square
has tangency points
on
,
on
,
on
, and
on
, then for any point
on the inscribed circle,
If
is the distance from an arbitrary point in the plane to the
th vertex of a square and
is the circumradius of the square, then
If
and
are the distances from an arbitrary point in the plane to the centroid of the square and its four vertices respectively, then
and
where
is the circumradius of the square.


03Applications
Squares are so well-established as the shape of tiles that the Latin word tessera, for a small tile as used in mosaics, comes from an ancient Greek word for the number four, referring to the four corners of a square tile. Graph paper, preprinted with a square tiling, is widely used for data visualization using Cartesian coordinates. The pixels of bitmap images, as recorded by image scanners and digital cameras or displayed on electronic visual displays, conventionally lie at the intersections of a square grid, and are often considered as small squares, arranged in a square tiling. Standard techniques for image compression and video compression, including the JPEG format, are based on the subdivision of images into larger square blocks of pixels. The quadtree data structure used in data compression and computational geometry is based on the recursive subdivision of squares into smaller squares.
Architectural structures from both ancient and modern cultures have featured a square floor plan, base, or footprint. Ancient examples include the Egyptian pyramids, Mesoamerican pyramids such as those at Teotihuacan, the Chogha Zanbil ziggurat in Iran, the four-fold design of Persian walled gardens, said to model the four rivers of Paradise, and later structures inspired by their design such as the Taj Mahal in India, the square bases of Buddhist stupas, and East Asian pagodas, buildings that symbolically face to the four points of the compass and reach to the heavens. Norman keeps such as the Tower of London often take the form of a low square tower. In modern architecture, a majority of skyscrapers feature a square plan for pragmatic rather than aesthetic or symbolic reasons.
The stylized nested squares of a Tibetan mandala, like the design of a stupa, function as a miniature model of the cosmos. Some formats for film photography use a square aspect ratio, notably Polaroid cameras, medium format cameras, and Instamatic cameras. Painters known for their frequent and prominent use of square forms and frames include Josef Albers, Kazimir Malevich, Piet Mondrian, and Theo van Doesburg.
Baseball diamonds and boxing rings are square despite being named for other shapes. In the quadrille and square dance, four couples form the sides of a square. In Samuel Beckett's minimalist television play Quad, four actors walk along the sides and diagonals of a square.
The square go board is said to represent the earth, with the 361 crossings of its lines representing days of the year. The chessboard inherited its square shape from a pachisi-like Indian race game and in turn passed it on to checkers. In two ancient games from Mesopotamia and Ancient Egypt, the Royal Game of Ur and Senet, the game board itself is not square, but rectangular, subdivided into a grid of squares. The ancient Greek Ostomachion puzzle (according to some interpretations) involves rearranging the pieces of a square cut into smaller polygons, as does the Chinese tangram. Another set of puzzle pieces, the polyominos, are formed from squares glued edge-to-edge; in this context, a single square is called a monomino. Medieval and Renaissance horoscopes were arranged in a square format, across Europe, the Middle East, and China. Other recreational uses of squares include the shape of origami paper, and a common style of quilting involving the use of square quilt blocks. Scrabble players place square lettered tiles onto a grid of squares on a square board.
Squares are a common element of graphic design, used to give a sense of stability, symmetry, and order. In heraldry, a canton (a design element in the top left of a shield) is normally square, and a square flag is called a banner. The flag of Switzerland is square, as are the flags of the Swiss cantons. QR codes are square and feature prominent nested square alignment marks in three corners. Robertson screws have a square drive socket. Crackers and sliced cheese are often square, as are waffles. Square foods named for their square shapes include caramel squares, date squares, lemon squares, square sausage, and Carré de l'Est cheese.
Squares can be found in nature and the sciences. In optical illusion, the Orbison illusion, named after American psychologist William Orbison, consists of a two-dimensional circle and square, superimposed over a background of radial lines or concentric circles. In biological living, Haloquadratum walsbyi is an Archaea species with square shape. In stereochemistry, a square planar molecular geometry is a chemical structure with atoms at the corners of a square. An example is xenon tetrafluoride.

04Constructions
Coordinates and equations
A unit square is a square of side length one. Often it is represented in Cartesian coordinates as the square enclosing the points that have
and
. Its vertices are the four points that have 0 or 1 in each of their coordinates.
An axis-parallel square with its center at the point and sides of length
(where
is the inradius, half the side length) has vertices at the four points
. Its interior consists of the points
with
, and its boundary consists of the points with
.
A diagonal square with its center at the point and diagonal of length
(where
is the circumradius, half the diagonal) has vertices at the four points
and
. Its interior consists of the points
with
, and its boundary consists of the points with
. For instance the illustration shows a diagonal square centered at the origin
with circumradius 2, given by the equation
.
In the plane of complex numbers, multiplication by the imaginary unit rotates the other term in the product by 90° around the origin (the number zero). Therefore, if any nonzero complex number
is repeatedly multiplied by
, giving the four numbers
,
,
, and
, these numbers will form the vertices of a square centered at the origin. If one interprets the real part and imaginary part of these four complex numbers as Cartesian coordinates, with
, then these four numbers have the coordinates
,
,
, and
. This square can be translated to have any other complex number
is center, using the fact that the translation from the origin to
is represented in complex number arithmetic as addition with
. The Gaussian integers, complex numbers with integer real and imaginary parts, form a square lattice in the complex plane.
Compass and straightedge
The construction of a square with a given side, using a compass and straightedge, is given in Euclid's Elements I.46. The existence of this construction means that squares are constructible polygons. A regular -gon is constructible exactly when the odd prime factors of
are distinct Fermat primes, and in the case of a square
has no odd prime factors so this condition is vacuously true.
Elements IV.6-7 also give constructions for a square inscribed in a circle and circumscribed about a circle, respectively.


Sources and credits
This article is adapted from the Wikipedia article “Square”, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.
Images, from Wikimedia Commons:
- Square with offset tick marks.svg by David Eppstein, CC0
- The square among a family of rectangles or rhombuses.png by Jacob Rus, CC BY-SA 4.0
- YBC-7289-OBV-labeled.jpg by Urcia, A., Yale Peabody Museum of Natural History, https://peabody.yale.edu, http://hdl.handle.net/10079/8931zqj derivative work, user:Theodor Langhorne Franklin, CC0
- Five Squared.svg by Indolences, Public domain
- Quadrilateral symmetries.svg by David Eppstein, CC0
- Perspective-3point.svg by Marco Polo at en.wikipedia, Public domain
- Incircle and circumcircle of a square.png by Jacob Rus, CC BY-SA 4.0
- 20240815 Site of Luoyang City from Han to Wei Dynasty - Site of the Pagoda of Yongning Temple 04.jpg by Windmemories, CC BY-SA 4.0
- Square equation plot.svg by Krishnavedala, CC BY-SA 4.0
Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.
