Square Numbers

Numbers formed by multiplying an integer by itself: the building blocks of geometry and algebra

A square number (or perfect square) is the result of multiplying an integer by itself. The sequence begins 1, 4, 9, 16, 25, 36, 49, 64, 81, 100... and continues infinitely. Square numbers are among the most fundamental concepts in mathematics, appearing in geometry, algebra, number theory and countless real-world applications. The name comes from the fact that these numbers can be arranged as dots forming a perfect square grid.

What are square numbers?

A square number is any integer that can be expressed as n × n (or n²) where n is a whole number. For example, 9 is a square number because 3 × 3 = 9, and 144 is a square number because 12 × 12 = 144. The visual representation is immediate: you can arrange 9 dots in a 3×3 grid, or 16 dots in a 4×4 grid. The first ten square numbers are 1, 4, 9, 16, 25, 36, 49, 64, 81 and 100. Every non-negative integer has a corresponding square, so the sequence of perfect squares is infinite.

1² = 1
*
2² = 4
* *
* *
3² = 9
* * *
* * *
* * *
4² = 16
* * * *
* * * *
* * * *
* * * *
5² = 25
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *

Mathematical properties of square numbers

Square numbers possess a wealth of elegant mathematical properties that connect them to many areas of number theory:

  • The difference between consecutive squares is always an odd number: n² − (n−1)² = 2n − 1. For example, 25 − 16 = 9 and 36 − 25 = 11.
  • Every square number is the sum of consecutive odd numbers: 1 = 1, 4 = 1+3, 9 = 1+3+5, 16 = 1+3+5+7, and so on. This is a visual proof discovered by the ancient Greeks.
  • A perfect square always ends in 0, 1, 4, 5, 6 or 9 in base 10. It can never end in 2, 3, 7 or 8, which provides a quick way to rule out non-squares.
  • The square root of a perfect square is always rational. In fact, a positive integer has a rational square root if and only if it is a perfect square.
  • The sum of the first n perfect squares is given by the formula n(n+1)(2n+1)/6. For instance, 1 + 4 + 9 + 16 + 25 = 55 = 5×6×11/6.

History of square numbers

Square numbers are among the oldest mathematical concepts studied by humanity. The Pythagoreans (6th century BCE) were fascinated by figured numbers, which they represented using pebble arrangements. They discovered that every square number is the sum of consecutive odd numbers, a result known as the gnomon theorem. In ancient Babylon, scribes compiled tables of squares on clay tablets as early as 1800 BCE, using them for area calculations and to solve quadratic equations. The Indian mathematician Brahmagupta (7th century) developed methods for finding integer solutions to equations involving squares, and Diophantus of Alexandria studied equations requiring square solutions long before. In 1770, Lagrange proved his famous four-square theorem: every positive integer can be written as the sum of at most four perfect squares. This theorem remains a cornerstone of additive number theory and connects to modern results in algebra and analysis.

Applications of square numbers

Square numbers appear throughout science and everyday life. In geometry, calculating the area of a square with side length n gives n². The Pythagorean theorem (a² + b² = c²) is perhaps the most famous equation involving squares and is essential in architecture, navigation and engineering. In physics, many laws involve squared quantities: kinetic energy is ½mv², gravitational force follows an inverse-square law, and the intensity of light decreases with the square of the distance. In computer science, algorithmic complexity is often measured in terms of n² (quadratic time), and square matrices are fundamental in graphics, machine learning and cryptography. In statistics, the variance of a dataset is computed using squared deviations from the mean, and the method of least squares is a cornerstone of data fitting and regression analysis.

Did you know?

First 50 square numbers

Here are the first 50 perfect squares. Click on any number to explore its full mathematical analysis:

Preguntas Frecuentes

What is a square number?

A square number (or perfect square) is an integer that can be expressed as the product of another integer multiplied by itself. In mathematical notation, n² = n × n. The first ten square numbers are 1, 4, 9, 16, 25, 36, 49, 64, 81 and 100. They are called "square" because they represent the number of dots that form a perfect square grid.

How can you tell if a number is a perfect square?

A quick check: perfect squares in base 10 can only end in 0, 1, 4, 5, 6 or 9. If a number ends in 2, 3, 7 or 8, it is not a perfect square. For a definitive test, compute the square root and check if it is a whole number. For example, the square root of 144 is exactly 12, so 144 is a perfect square, while the square root of 150 is approximately 12.247, so 150 is not.

What is the relationship between square numbers and odd numbers?

Every perfect square is the sum of consecutive odd numbers starting from 1. For instance, 1 = 1, 4 = 1+3, 9 = 1+3+5, 16 = 1+3+5+7, 25 = 1+3+5+7+9. This pattern was known to the ancient Pythagoreans and is easily proved by noting that the nth odd number is 2n−1, and the sum of the first n odd numbers is n². This also means the difference between consecutive squares is always an odd number.

Explore More Number Concepts