Perfect Square Calculator
Three tools in one: check whether a number is a perfect square and see the nearest squares on either side, reverse-calculate the perfect square from an integer root, or list every perfect square between two numbers. Step-by-step workings are shown for every result.
Formula
Worked example
Mode A: Check 144. Last digit 4 passes; digital root 9 passes. sqrt(144) = 12 exactly. 12 squared = 144, confirmed. Mode A: Check 150. Last digit 0 passes screening but sqrt(150) = 12.2474, not whole. Nearest squares: 144 (12 squared) and 169 (13 squared). Mode B: Root = 7. 7 squared = 49. Mode C: Range 50 to 100. ceil(sqrt(50)) = 8, floor(sqrt(100)) = 10. Perfect squares: 64, 81, 100.
What makes a number a perfect square
A perfect square is any non-negative integer you get by multiplying a whole number by itself. The sequence starts 0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, and each term is the square of the next counting number. The defining test: take the square root, and if the result is a whole number with no decimal or fractional part, the original is a perfect square. Equivalently, every prime factor in a perfect square appears an even number of times: 36 = 2 squared x 3 squared, both exponents even.
Three quick screening rules (no calculator needed)
Before reaching for a calculator you can eliminate most numbers with three fast checks. First, look at the last digit: perfect squares can only end in 0, 1, 4, 5, 6, or 9, so any number ending in 2, 3, 7, or 8 is instantly ruled out. Second, compute the digital root by summing the digits repeatedly until you reach a single digit: a perfect square always has a digital root of 0, 1, 4, 7, or 9. Third, for larger numbers check whether the trailing zeros come in pairs (e.g., 900 has two zeros, good; 90 has one, bad). Any number that fails even one of these rules is definitely not a perfect square.
Why some square roots are irrational
When a number is not a perfect square, its square root is irrational: a decimal that never ends and never repeats, like sqrt(2) = 1.41421356... The ancient Greeks proved this by contradiction. For any non-square positive integer n, assume sqrt(n) = p/q in lowest terms. Squaring both sides gives n x q squared = p squared, meaning n divides p squared. If n is prime this forces n to divide p, say p = n x k, so n x q squared = n squared x k squared, giving q squared = n x k squared: n also divides q. But then p and q share factor n, contradicting the assumption that p/q was in lowest terms. This calculator brackets such roots between the two nearest perfect squares so you can estimate their value.
How the range mode works
To list every perfect square from a to b, the calculator finds the smallest integer whose square is at least a (the ceiling of sqrt(a)) and the largest integer whose square is at most b (the floor of sqrt(b)). Every integer root between those two limits, inclusive, produces a perfect square in the range. The count equals floor(sqrt(b)) minus ceil(sqrt(a)) plus 1. This means there are approximately sqrt(N) perfect squares up to N, so they grow sparser as numbers get larger.
Reverse mode: squaring a root
The reverse mode answers the companion question: given an integer n, what is n squared? This is useful when you know a root and need the corresponding perfect square, for instance when working with areas, Pythagorean triples, or quadratic expressions. Because squaring is symmetric, both +n and -n produce the same positive result, so every positive perfect square has exactly two integer square roots, one positive and one negative, plus the principal root (the positive one) which is the value most calculators report.
Perfect squares in geometry and number theory
Perfect squares appear throughout mathematics and everyday measurement. In geometry, the area of a square with integer side length is always a perfect square. In the Pythagorean theorem a squared + b squared = c squared, if a and b are legs of a right triangle and c squared is a perfect square, then c is an integer, giving a Pythagorean triple (3, 4, 5 being the smallest). In number theory, every perfect square is a sum of consecutive odd integers: 1 = 1, 4 = 1 + 3, 9 = 1 + 3 + 5, 16 = 1 + 3 + 5 + 7. The difference between consecutive squares n squared and (n+1) squared is always the odd number 2n + 1.
Perfect squares from 0 to 25
| Integer (n) | n squared | Last digit | Digital root |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 |
| 2 | 4 | 4 | 4 |
| 3 | 9 | 9 | 9 |
| 4 | 16 | 6 | 7 |
| 5 | 25 | 5 | 7 |
| 6 | 36 | 6 | 9 |
| 7 | 49 | 9 | 4 |
| 8 | 64 | 4 | 1 |
| 9 | 81 | 1 | 9 |
| 10 | 100 | 0 | 1 |
| 11 | 121 | 1 | 4 |
| 12 | 144 | 4 | 9 |
| 13 | 169 | 9 | 7 |
| 14 | 196 | 6 | 7 |
| 15 | 225 | 5 | 9 |
| 16 | 256 | 6 | 4 |
| 17 | 289 | 9 | 1 |
| 18 | 324 | 4 | 9 |
| 19 | 361 | 1 | 1 |
| 20 | 400 | 0 | 4 |
| 21 | 441 | 1 | 9 |
| 22 | 484 | 4 | 7 |
| 23 | 529 | 9 | 7 |
| 24 | 576 | 6 | 9 |
| 25 | 625 | 5 | 4 |
The integer and its square, useful for recognition and quick mental checks.
Frequently asked questions
Is zero a perfect square?
Yes. Zero equals 0 x 0, so its square root is the whole number 0, which makes it a perfect square. It is the smallest non-negative perfect square and the only one with a single square root (since -0 = 0).
Can a perfect square be negative?
No. Squaring any real number, positive or negative, gives a non-negative result, so negative numbers can never be perfect squares of real integers. In the complex number system you can define generalizations, but in standard number theory only zero and positive integers qualify.
How can I tell a number is not a perfect square without a calculator?
Check the last digit first: a perfect square can only end in 0, 1, 4, 5, 6, or 9. Any number ending in 2, 3, 7, or 8 is immediately disqualified. If it passes, sum its digits until you reach one digit (the digital root): that root must be 0, 1, 4, 7, or 9. Any other digital root rules it out. Both tests together eliminate the vast majority of non-squares.
How many perfect squares are there between 1 and 1000?
There are 31 perfect squares from 1 to 1000 (1, 4, 9, ... 961). The count is floor(sqrt(1000)) = 31. In general, there are floor(sqrt(N)) perfect squares between 1 and N, so they thin out roughly as the square root of the upper limit. Use the Range mode with From = 1 and To = 1000 to list them all.
What is the difference between consecutive perfect squares?
The gap between n squared and (n+1) squared is always the odd number 2n + 1. For example, 16 and 25 differ by 9 (= 2 x 4 + 1), and 25 and 36 differ by 11 (= 2 x 5 + 1). This means the gaps grow without bound as n increases, which is why perfect squares become rarer among large numbers.
Does every perfect square have exactly one square root?
No. Every positive perfect square has two integer square roots: a positive one and a negative one. For example, both 7 and -7 are square roots of 49 because 7 x 7 = 49 and (-7) x (-7) = 49. The "principal" square root is defined as the non-negative one, which is what most calculators report. Zero is the only perfect square with a single square root (zero itself).
How do I find the perfect square closest to a given number?
Take the square root of the number, round it to the nearest integer, and square that integer. For example, the closest perfect square to 50 is found by sqrt(50) = 7.07, which rounds to 7, so 7 squared = 49. If the number falls exactly halfway between two perfect squares you can choose either the floor or ceiling root. The Check mode shows you both the nearest lower and upper perfect squares automatically.