What Is a Perfect Square?
A perfect square is a whole number that can be written as the product of an integer with itself. For example, 49 is a perfect square because \(7 \times 7 = 49\), and 144 is a perfect square because \(12 \times 12 = 144\). Numbers like 50 or 2 are not perfect squares because no integer multiplied by itself produces them. This calculator instantly tells you whether any whole number you enter is a perfect square, and if so, which integer it is the square of.
How to Use the Calculator
Type any non-negative whole number into the input box and submit. The tool computes the square root, takes its floor (the largest integer not greater than the root), squares that integer, and compares it to your original number. If they match exactly, the number is a perfect square and the exact integer root is displayed. Otherwise it reports that the number is not a perfect square along with its approximate (irrational) square root.
The Formula Explained
The test relies on a simple identity: a non-negative integer n is a perfect square if and only if
$$\text{Perfect Square} \iff \left(\left\lfloor \sqrt{\text{Number}} \right\rfloor\right)^{2} = \text{Number}$$Here \(\left\lfloor \sqrt{n} \right\rfloor\) means we take the square root and round down to the nearest integer. Squaring that integer and checking against n avoids floating-point rounding problems that a direct equality check on the raw square root might cause.
Worked Example
Take \(n = 144\). Its square root is 12.0, the floor is 12, and
$$12^{2} = 144$$which equals n — so 144 is a perfect square. Now take \(n = 150\). Its square root is about 12.247, the floor is 12, and
$$12^{2} = 144 \neq 150$$so 150 is not a perfect square.
How to Check a Perfect Square by Hand
A whole number \(n\) is a perfect square if \(n = k^2\) for some integer \(k\). You can test this without a calculator by following these steps.
- Check the last digit. In base 10, a perfect square can only end in 0, 1, 4, 5, 6 or 9. If the number ends in 2, 3, 7 or 8, it is not a perfect square. This is only a quick rejection test: ending in an allowed digit does not prove the number is a square (for example, 14 ends in 4 but is not a square).
- Estimate between neighboring squares. Find two known squares that surround the number. For 324, note that \(17^2 = 289\) and \(19^2 = 361\), so the root, if it is an integer, must be 18 (because the last digit 4 means the root ends in 2 or 8). If the number falls strictly between \(k^2\) and \((k+1)^2\), it is not a perfect square.
- Try prime factorization. Break the number into primes. It is a perfect square exactly when every prime appears with an even exponent. The square root is then found by halving each exponent.
- Confirm by squaring the candidate root. Multiply the candidate by itself and check that it equals the original number exactly.
Example: Is 324 a perfect square?
- The last digit is 4, which is allowed.
- \(17^2 = 289 < 324 < 361 = 19^2\), so the candidate root is 18.
- Factorization: \(324 = 4 \times 81 = 2^2 \cdot 3^4\). Both exponents (2 and 4) are even, so it is a perfect square. Halving the exponents gives \(2^1 \cdot 3^2 = 2 \cdot 9 = 18\).
- Check: \(18 \times 18 = 324\). ✔
So 324 is a perfect square, and \(\sqrt{324} = 18\).
Counter-example: 450
\(450 = 2 \cdot 3^2 \cdot 5^2\). The prime 2 has an odd exponent (1), so 450 is not a perfect square. This agrees with the neighbors: \(21^2 = 441 < 450 < 484 = 22^2\).
FAQ
Is 0 a perfect square? Yes. \(0 = 0 \times 0\), so zero is considered a perfect square.
Are negative numbers perfect squares? No. Squaring any real number gives a non-negative result, so negative inputs are never perfect squares.
What if I enter a decimal? The calculator rounds your input to the nearest whole number before testing, since perfect squares are defined for integers.