Key facts
- A perfect square is n² for a whole number n: 0, 1, 4, 9, 16, 25, 36, …
- 144 is a perfect square, because 144 = 12².
- 150 is not: it lies between 12² = 144 and 13² = 169, and √150 = 5√6 ≈ 12.247.
- A perfect square always ends in 0, 1, 4, 5, 6 or 9; a number ending in 2, 3, 7 or 8 cannot be one.
- In prime factorization, every prime in a perfect square appears an even number of times: 144 = 2⁴ × 3².
How the check works
The calculator computes the integer square root r of n, the largest whole number with r² ≤ n. If r² = n, then n is a perfect square. Otherwise n sits strictly between r² and (r + 1)². Because the arithmetic uses exact big integers, it works for numbers far beyond the range of an ordinary calculator.
How to use the perfect square calculator
- Enter a whole number. Separators like 1,000,000 are fine.
- Read whether it is a perfect square, its square root, the perfect squares just below and above it, the simplified radical, and whether it is a perfect cube.
- The table shows the perfect squares around your number.
Worked examples: perfect squares
Example 1
144 = 12 × 12, so it is a perfect square with √144 = 12.
Example 2: not a square
150 lies between 144 (12²) and 169 (13²). Its square root is about 12.247, and since 150 = 25 × 6, √150 = 5√6.
Example 3: a large number
123,456,787,654,321 = 11,111,111². Long strings of 1s squared give these palindromes.
Example 4: a perfect square and a perfect cube
64 = 8² = 4³, and 729 = 27² = 9³. Numbers that are both are sixth powers: 1, 64, 729, 4,096, …
Perfect squares from 1 to 400
| n | n² | n | n² |
|---|---|---|---|
| 1 | 1 | 11 | 121 |
| 2 | 4 | 12 | 144 |
| 3 | 9 | 13 | 169 |
| 4 | 16 | 14 | 196 |
| 5 | 25 | 15 | 225 |
| 6 | 36 | 16 | 256 |
| 7 | 49 | 17 | 289 |
| 8 | 64 | 18 | 324 |
| 9 | 81 | 19 | 361 |
| 10 | 100 | 20 | 400 |
Quick tests you can do by hand
- Last digit: squares end in 0, 1, 4, 5, 6 or 9. So 2,017 and 4,328 are not squares.
- Digital root: add the digits repeatedly; a square's digital root is 1, 4, 7 or 9. For 144: 1 + 4 + 4 = 9.
- Even prime powers: factor the number; if any prime appears an odd number of times, it is not a square.
- Consecutive odd numbers: 1 + 3 + 5 + … + (2n − 1) = n², so squares grow by 3, 5, 7, 9, …
Why perfect squares matter
- Simplifying radicals: √72 = √(36 × 2) = 6√2 uses the largest square factor.
- Quadratic equations: a quadratic has rational roots when its discriminant b² − 4ac is a perfect square. See the discriminant calculator.
- Geometry: a square of area 144 has a whole-number side, 12.
- Pythagorean triples: 3² + 4² = 5² and 5² + 12² = 13².
Pitfalls with perfect squares
- Confusing squares with even numbers. 8 is even but not a square; 9 is odd and is one.
- Forgetting 0 and 1. Both are perfect squares.
- Treating negative numbers as squares. No real number squared gives a negative result.
Perfect squares from Babylon to Lagrange
Square numbers were studied by the Pythagoreans, who arranged pebbles in square patterns and noticed that each square is the sum of consecutive odd numbers: 1 + 3 + 5 + 7 = 16. The Babylonians computed square roots with remarkable skill: the clay tablet YBC 7289 at Yale University, from around 1800 to 1600 BCE, gives √2 to about six decimal places.
Squares are central to number theory. Diophantus studied which numbers are sums of squares, Pierre de Fermat claimed that every prime of the form 4k + 1 is a sum of two squares, and in 1770 Joseph-Louis Lagrange proved the four-square theorem: every whole number is a sum of four squares. A quick test helps spot non-squares: a perfect square in base 10 can only end in 0, 1, 4, 5, 6 or 9. Squares also matter in geometry (areas), in the Pythagorean theorem and in statistics, where variance is an average of squared deviations. When a number is not a perfect square, its square root can often be simplified, as in √72 = 6√2. Every perfect square is a sum of consecutive odd numbers (1 + 3 + 5 = 9), which makes it the sum of an arithmetic sequence. For the root itself, use the square root calculator; for right triangles, the Pythagorean theorem calculator; and for prime factors, the prime factorization calculator.
Related: the square root calculator, the prime factorization calculator and the exponent calculator.
How this calculator works
- Tests whether n is a perfect square using an exact integer square root (no floating-point error).
- Shows the square root, the nearest squares above and below, and whether n is also a perfect cube.
- For non-squares, gives the simplified radical form, such as √72 = 6√2.
- Big-integer arithmetic handles very large numbers exactly.
Frequently asked questions
What is a perfect square?
A whole number that equals another whole number squared, such as 144 = 12².
Is 144 a perfect square?
Yes. 144 = 12 × 12.
Is 150 a perfect square?
No. It lies between 144 (12²) and 169 (13²).
How can I tell if a number is a perfect square?
Take its square root; if the result is a whole number, it is a perfect square. A last digit of 2, 3, 7 or 8 rules it out immediately.
Is 0 a perfect square?
Yes, because 0 = 0².
Can a negative number be a perfect square?
Not with real numbers, since any real number squared is zero or positive.
What are the perfect squares up to 100?
0, 1, 4, 9, 16, 25, 36, 49, 64, 81 and 100.
Which numbers are both perfect squares and perfect cubes?
Sixth powers: 0, 1, 64, 729, 4,096 and so on.