From Surf Wiki (app.surf) — the open knowledge base
Square
Shape with four equal sides and angles
Shape with four equal sides and angles
| Field | Value |
|---|---|
| name | Square |
| image | Square with offset tick marks.svg |
| caption | A square. The blue ∟ annotations mark equal right angles at its vertices and the red // annotations mark equal side lengths. |
| type | |
| edges | 4 |
| symmetry | order-8 dihedral |
| area | side2 |
| angle | /2 (90°) |
| perimeter | 4 · side |
the shape
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 i 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.
Definitions 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 a, b, c, d whose area is A=\frac14(a^2+b^2+c^2+d^2).
Squares are the only regular polygons whose internal angle, central angle, and external angle are all equal (they are all right angles).
Properties
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 \ell has perimeter P=4\ell and diagonal length d=\sqrt2\ell. 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 A=\ell^2=\tfrac12 d^2. 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: 16A\le P^2 with equality if and only if the quadrilateral is a square.
Symmetry
Main article: Symmetry group of a square
The square is the most symmetrical of the quadrilaterals. Eight rigid transformations of the plane take the square to itself:
(the identity transformation)
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 r=\ell/2. 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 R=\ell/\sqrt2. If the inscribed circle of a square ABCD has tangency points E on AB, F on BC, G on CD, and H on DA, then for any point P on the inscribed circle, 2(PH^2-PE^2) = PD^2-PB^2. If d_i is the distance from an arbitrary point in the plane to the ith vertex of a square and R is the circumradius of the square, then\frac{d_1^4+d_2^4+d_3^4+d_4^4}{4} + 3R^4 = \left(\frac{d_1^2+d_2^2+d_3^2+d_4^2}{4} + R^2\right)^2. If L and d_i are the distances from an arbitrary point in the plane to the centroid of the square and its four vertices respectively, then d_1^2 + d_3^2 = d_2^2 + d_4^2 = 2(R^2+L^2) and d_1^2d_3^2 + d_2^2d_4^2 = 2(R^4+L^4), where R is the circumradius of the square.
Applications
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 15\times 15 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.
A square can be found in an 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 stereochemistry, a square planar molecular geometry is a chemical structure with atoms at the corners of a square. An example is xenon tetrafluoride.
Constructions
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 (x,y) that have 0\le x\le 1 and 0\le y\le 1. 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 (x_c,y_c) and sides of length 2r (where r is the inradius, half the side length) has vertices at the four points (x_c\pm r,y_c\pm r). Its interior consists of the points (x,y) with \max(|x-x_c|,|y-y_c|) , and its boundary consists of the points with \max(|x-x_c|,|y-y_c|)=r.
A diagonal square with its center at the point (x_c,y_c) and diagonal of length 2R (where R is the circumradius, half the diagonal) has vertices at the four points (x_c\pm R,y_c) and (x_c,y_c\pm R). Its interior consists of the points (x,y) with |x-x_c|+|y-y_c|, and its boundary consists of the points with |x-x_c|+|y-y_c|=R. For instance the illustration shows a diagonal square centered at the origin (0,0) with circumradius 2, given by the equation |x|+|y|=2.
In the plane of complex numbers, multiplication by the imaginary unit i rotates the other term in the product by 90° around the origin (the number zero). Therefore, if any nonzero complex number p is repeatedly multiplied by i, giving the four numbers p, ip, -p, and -ip, 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 p=x+iy, then these four numbers have the coordinates (x,y), (-y,x), (-x,-y), and (-y,-x). This square can be translated to have any other complex number c is center, using the fact that the translation from the origin to c is represented in complex number arithmetic as addition with c. 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 n-gon is constructible exactly when the odd prime factors of n are distinct Fermat primes, and in the case of a square n=4 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. Straight Square Inscribed in a Circle 240px.gif|Square with a given circumcircle 01-Quadrat-Seite-gegeben.gif|Square with a given side length, using Thales' theorem 01-Quadrat-Diagonale-gegeben.gif|Square with a given diagonal
References
| title-link = Proofs from THE BOOK
Page 147 of {{cite book | editor-last = Honsberger | editor-first = Ross | editor-link = Ross Honsberger
| editor-first1 = Michael H. | editor-last1 = Albert | editor-first2 = Richard J. | editor-last2 = Nowakowski
| editor1-last = Holdener | editor1-first = Judy | editor1-link = Judy Holdener | editor2-last = Torrence | editor2-first = Eve | editor2-link = Eve Torrence | editor3-last = Fong | editor3-first = Chamberlain | editor4-last = Seaton | editor4-first = Katherine | contribution-url = https://archive.bridgesmathart.org/2023/bridges2023-441.html
| contribution-url = https://archive.bridgesmathart.org/2003/bridges2003-265.html
| editor-last=Mumford | editor-first=Simon
| url-access = registration
| article-number = DS7: Aug 14 | doi-access = free | access-date = 2018-02-23
| doi-access = free | url-access = subscription
| title-link = Tilings and patterns
| editor-last = Furht | editor-first = Borko
| editor1-last = Torrence | editor1-first = Eve | editor1-link = Eve Torrence | editor2-last = Torrence | editor2-first = Bruce | editor3-last = Séquin | editor3-first = Carlo | editor3-link = Carlo Séquin | editor4-last = McKenna | editor4-first = Douglas | editor5-last = Fenyvesi | editor5-first = Kristóf | editor6-last = Sarhangi | editor6-first = Reza | contribution-url = https://archive.bridgesmathart.org/2016/bridges2016-233.html
| editor-first1 = Tom | editor-last1 = Verhoeff | editor-first2 = David | editor-last2 = Swart | editor-first3 = S. Louise | editor-last3 = Gould | editor-first4 = Eve | editor-last4 = Torrence | editor-first5 = Craig S. | editor-last5 = Kaplan | editor-link5 = Craig S. Kaplan | chapter-url = https://archive.bridgesmathart.org/2025/bridges2025-503.pdf
| contribution-url = https://books.google.com/books?id=PfXoAwAAQBAJ&pg=PA296
| archive-url = https://web.archive.org/web/20161010184811/http://forumgeom.fau.edu/FG2016volume16/FG201627.pdf | archive-date = 2016-10-10 | url-status = dead
| contribution-url = https://books.google.com/books?id=vO-NRRKHG84C&pg=PA28
| editor1-last = Forêt | editor1-first = Philippe | editor2-last = Kaplony | editor2-first = Andreas
| contribution-url = https://books.google.com/books?id=YLcPxfZW47EC&pg=PA20
| chapter-url = https://archive.org/details/vnrconciseencycl00gell/page/161/mode/1up?q=%22square+is+given%22
| chapter-url = https://www.textures-archiv.geisteswissenschaften.fu-berlin.de/wp-content/uploads/2010/08/worthen_bill_2010_08.pdf
References
- Allen, Gary. (2015). "Sausage: A Global History". Reaktion Books.
- Beardon, Alan F.. (2012). "What is the most symmetric quadrilateral?". The Mathematical Gazette.
- Bonahon, Francis. (2009). "Low-Dimensional Geometry: From Euclidean Surfaces to Hyperbolic Knots". American Mathematical Society.
- (1990). "Math and Science for Young Children". Delmar Publishers.
- (2008). "The Symmetries of Things". AK Peters.
- (1996). "The Book of Numbers". Springer-Verlag.
- Croft, Hallard T.. (1991). "Unsolved Problems in Geometry". Springer-Verlag.
- [[Euclid's Elements. Euclid's ''Elements'']], Book I, [http://aleph0.clarku.edu/~djoyce/elements/bookI/propI46.html Proposition 46]. Online English version by [[David E. Joyce]].
- [[Euclid's Elements. Euclid's ''Elements'']], Book I, [http://aleph0.clarku.edu/~djoyce/elements/bookI/propI47.html Proposition 47]. Online English version by [[David E. Joyce]].
- [[Euclid's Elements. Euclid's ''Elements'']], Book II, [http://aleph0.clarku.edu/~djoyce/elements/bookII/propII14.html Proposition 14]. Online English version by [[David E. Joyce]].
- [[Euclid's Elements. Euclid's ''Elements'']], Book IV, [http://aleph0.clarku.edu/~djoyce/elements/bookIV/propIV6.html Proposition 6], [http://aleph0.clarku.edu/~djoyce/elements/bookIV/propIV7.html Proposition 7]. Online English version by [[David E. Joyce]].
- [[Euclid's Elements. Euclid's ''Elements'']], Book VI, [http://aleph0.clarku.edu/~djoyce/elements/bookVI/propVI31.html Proposition 31]. Online English version by [[David E. Joyce]].
- Garg, Anu. "Tessera". A word a day.
- Gutierrez, Antonio. "Problem 331. Discovering the Relationship between Distances from a Point on the Inscribed Circle to Tangency Point and Vertices in a Square".
- Harbutt, Juliet. (2015). "World Cheese Book". Penguin.
- Hart, Melissa. (2006). "A Guide for Using Kira-Kira in the Classroom". Teacher Created Resources.
- Jesperson, Ivan F.. (1989). "Fat-Back and Molasses". Breakwater Books.
- Johnson, Roger A.. (2007). "Advanced Euclidean Geometry". Dover.
- (1997). "Which Way Did the Bicycle Go?: And Other Intriguing Mathematical Mysteries". Cambridge University Press.
- (2013). "Street Food around the World: An Encyclopedia of Food and Culture". Bloomsbury Publishing USA.
- Lambers, Martin. (2016). "Mappings between sphere, disc, and square". [[Journal of Computer Graphics Techniques]].
- Maor, Eli. (2019). "The Pythagorean Theorem: A 4,000-Year History". Princeton University Press.
- Martin, George E.. (1998). "Geometric Constructions". Springer-Verlag, New York.
- Martin, Gaven J.. (2019). "Random ideal hyperbolic quadrilaterals, the cross ratio distribution and punctured tori". Journal of the London Mathematical Society.
- Matschke, Benjamin. (2014). "A survey on the square peg problem". [[Notices of the American Mathematical Society]].
- Nelsen, Roger B.. (November 2003). "Paintings, plane tilings, and proofs". [[Math Horizons]].
- Nyamweya, Jeff. (2024). "Everything Graphic Design: A Comprehensive Understanding of Visual Communications for Beginners & Creatives". Bogano.
- {{cite OEIS. A000330. Square pyramidal numbers
- {{cite OEIS. A002415. 4-dimensional pyramidal numbers
- {{cite OEIS. A359146. Divide a square into n similar rectangles; a(n) is the number of different proportions that are possible
- {{cite OEIS. A006003
- Popko, Edward S.. (2012). "Divided Spheres: Geodesics and the Orderly Subdivision of the Sphere". CRC Press.
- Postnikov, M. M.. (2000). "The problem of squarable lunes". [[The American Mathematical Monthly]].
- Roberts, Siobhan. (February 7, 2023). "The quest to find rectangles in a square". [[The New York Times]].
- Roeckelein, Jon E.. (2006). "Elsevier's Dictionary of Psychological Theories". Elsevier.
- Seaton, Katherine A.. (2021-10-02). "Textile D-forms and D 4d". [[Journal of Mathematics and the Arts]].
- Thomson, James. (1845). "An Elementary Treatise on Algebra: Theoretical and Practical". Longman, Brown, Green, and Longmans.
- Wilson, Jim. (Summer 2010). "Problem Set 1.3, problem 10". University of Georgia.
- Wylie, C. R.. (1970}} [https://books.google.com/books?id=QoNCAwAAQBAJ&pg=PA17 Reprinted], Dover Books, 2008, {{isbn). "Introduction to Projective Geometry". McGraw-Hill.
- Yanagihara, Dawn. (2014). "Waffles: Sweet, Savory, Simple". Chronicle Books.
- (2008). "The Classification of Quadrilaterals: A Study of Definition". Information Age Publishing.
This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.
Ask Mako anything about Square — get instant answers, deeper analysis, and related topics.
Research with MakoFree with your Surf account
Create a free account to save articles, ask Mako questions, and organize your research.
Sign up freeThis content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.
Report