Perfect Square Calculator

Free perfect square calculator: check if a number is a perfect square, get its square root and the nearest perfect squares, and list the first N perfect squares with their sum.

https://hexacalculator.com/calculators/mathematics/arithmetic/perfect-square-calculator

Mathematics

Arithmetic

Perfect Square Calculator

Free perfect square calculator: check if a number is a perfect square, get its square root and the nearest perfect squares, and list the first N perfect squares with their sum.

Perfect Square Calculator

Perfect square calculator

Result

Yes — 144 is a perfect square. It equals 12 × 12 = 12², so its square root 12 is a whole number.

Quick digit test: 144 ends in 4. Perfect squares only ever end in 0, 1, 4, 5, 6, or 9, so this one passes the first check.

Why it is (or is not) a perfect square

Break the number into prime factors: it is a perfect square exactly when every exponent is even

Prime factor

Exponent

Even exponent?

24Yes
32Yes
All exponents even?Yes → perfect square
Loading calculator…

A perfect square is an integer that can be expressed as the product of two equal integers. Since 12×12=14412 \times 12 = 144 is an integer, 144 is a perfect square and its square root, 12, is also an integer.

If you enter a number in the upper field this calculator will instantly show if it is a perfect square or not. If it is not a perfect square, then the square root and the two closest perfect squares are also shown. In list mode you can display a list of all perfect squares up to that sum.

What is a perfect square?

A perfect square is sometimes called a square number. It is the product of two equal integers. If nn is an integer, then n2n^2 is a perfect square. Conversely, a number is a perfect square if its square root is an integer.

In this case "integer" means all types of whole numbers including negative numbers, zero and positive numbers but not fractions or decimals. So 0, 1, 4, 9 and 16 are perfect squares while 2, 2.25 and 12.5 are not.

Since squaring a negative number results in a positive number, then (5)2=25(-5)^2 = 25 is equal to 52=255^2 = 25. Therefore all perfect squares are greater than or equal to zero. Negative numbers can never be perfect squares and if you enter a negative number this calculator will indicate that.

How to determine whether a number is a perfect square.

There are three quick checks to perform and this tool will do them all.

To calculate a square root:

The most direct method of checking is to calculate the square root and check if the result is an integer. As the result of 49=7\sqrt{49} = 7 is an integer, 49 is a perfect square. On the other hand, 537.28\sqrt{53} \approx 7.28 is not an integer, so 53 is not a perfect square. These are the values shown for the square root on the panel.

Check last digits:

The last digit of a perfect square is always either 0, 1, 4, 5, 6 or 9. The last digit can never be 2, 3, 7 or 8. So if the last digit of a number is one of those four digits, you can immediately rule it out without doing any calculations.

It is possible to rule out numbers based on the last digit but it cannot be guaranteed that they are a square number. The last digit of 63 is 3 so it is not a square number while the last digit of 62 is also 2 unlike the last digit of 64 which is 4 and therefore the square of 8. A condition for the last digit may be met but this only means that it is worth investigating further.

Last digit of n

Last digit of n²

0

0

1 or 9

1

2 or 8

4

3 or 7

9

4 or 6

6

5

5

Prime factorization

One method of checking whether a number is a perfect square is to find its prime factors. If every prime factor appears an even number of times, then the number is also a perfect square. For example, 144 = 144=24×32144 = 2^4 \times 3^2, and both exponents 4 and 2 are even, so 144 is a perfect square. However, 150 = 150=2×3×52150 = 2 \times 3 \times 5^2 has some odd exponents, so it's not a perfect square. The factor table in this article provides this information for any number you enter.

List of squares

It is helpful to memorize a few small squares. Here are the first twenty, ranging from 1 to 400.

n

1

2

3

4

5

6

7

8

9

10

1

4

9

16

25

36

49

64

81

100

n

11

12

13

14

15

16

17

18

19

20

121

144

169

196

225

256

289

324

361

400

If you switch the calculator to list mode, you can expand the list as needed and display up to the first hundred numbers. The sum is also calculated with a closed formula for the sum of the first NN squares: 12+22++N2=N(N+1)(2N+1)61^2 + 2^2 + \cdots + N^2 = \tfrac{N(N+1)(2N+1)}{6}.

Hidden rules in perfect square numbers

The difference between two consecutive perfect squares is always an odd number, and these odd numbers get larger as they go. The differences between the 1,4,9,161, 4, 9, 16 are 3, 5, and 7. This means that a perfect square is equal to the sum of a series of consecutive odd numbers: 1+3+5+7=16=421 + 3 + 5 + 7 = 16 = 4^2.

The parity (odd or even) of a perfect square is the same as the number that was squared. The square of an even number is even, and the square of an odd number is odd. All even perfect squares are divisible by 4, because an even number contains a factor of 2, and multiplying it by itself produces two such factors.

An odd perfect square is of the form 4k+14k + 1. This can be used to make a practical deduction: numbers of the form 4k+34k + 3 or 4k+24k + 2 can be immediately eliminated as not being perfect squares. 843 (being 4×210+34 \times 210 + 3) is also not a perfect square.

Where do perfect squares occur?

The term derives from geometry. If you arrange n2n^2 unit squares, you get a square with sides of length nn and nn. This explains why the area of a square with side length nn is equal to n2n^2. When an area is a perfect square number, its side lengths are whole numbers.

Square numbers play a central role in the Pythagorean theorem. The sum of the squares of two shorter sides of a right triangle is equal to the square of the longest side. A triple of whole numbers, such as 3, 4 and 5, satisfies this condition because the sum of two square numbers, namely 9 and 16, is equal to 25. Square numbers also appear in quadratic equations, completing the square, and number theory.

Squares and Square Roots

Finding a square and finding a square root are inverse operations. So a perfect square is a number whose square root is an integer. 225 is a perfect square, so 225=15\sqrt{225} = 15 is a perfect square. On the other hand, 224\sqrt{224} continues infinitely as an irrational number.

Thus checking whether a number is a perfect square basically consists of checking if its square root is an integer. If you want to calculate the square root itself or need negative numbers with their complex square roots use a tool for calculating square roots. This tool is suitable only if you just want to know if a number is contained in the list of perfect squares.

Frequently asked questions

What are square numbers?

A perfect square is a whole number that can be expressed as the product of two equal integers, so its square root is also an integer. For example, 64 is a perfect square because it equals the product of 8 and 8, and its square root is exactly 8. The first few perfect squares are 1, 4, 9, 16, 25, and 36.

How to check if a number is perfect square?

One calculates the square root and checks whether the result is an integer. If it is, then the number is a perfect square. A quick method is to look at the last digit. The last digits of perfect squares are only 0, 1, 4, 5, 6 and 9. So numbers whose last digit is 2, 3, 7 or 8 can be immediately excluded. The surest method is prime factorization: all prime factors must occur an even number of times.

Is 0 a perfect square?

Yes, it is a perfect square. It is the product of multiplying 0 by itself, and its square root is 0 which is an integer. It is the smallest perfect square. The next one is 1, and if you multiply 1 by itself, you get 1.

Can perfect squares be negative?

No. The result of squaring a real number, whether positive or negative, is always zero or greater, so there can be no negative perfect squares. When you multiply two negative numbers together, the answer is positive, so both 5 and -5 squared are positive numbers, namely 25.

What are all of the perfect squares between 1 and 100?

They are 1, 4, 9, 16, 25, 36, 49, 64, 81, and 100. Each of these numbers is the product of whole numbers from 1 to 10. There are exactly ten perfect squares between 1 and 100 (inclusive). If you switch this calculator into list mode, it can generate any number of perfect squares.

Why do perfect squares only end in the digits 0, 1, 4, 5, 6 and 9?

The last digit of a number determines the last digit of its square, and vice versa. By noting that when considering the numbers from 0 to 9 in turn, their squares end in respectively 0, 1, 4, 5, 6 or 9, but never 2, 3, 7 or 8, one can use this as a quick test for whether a number is not a perfect square.

What is the difference between a perfect square and a square root?

A perfect square is a whole number that can be made by squaring another whole number. For example, 49. A square root is the opposite operation, so the number that was squared to get 49 would be 7. If the square root of a number is a whole number and not an infinite decimal, then it's a perfect square.

Related calculators

Disclaimer: This calculator is provided for general informational and educational purposes only. Our calculators are under active development, and results may be inaccurate, incomplete, or unsuitable for your situation. Always verify the figures independently and seek advice from a qualified professional before relying on them. We make no warranties and accept no liability for any loss or decision arising from use of this tool.

References

  1. ezcalc.me: Perfect Square Calculator

    Perfect-square properties: last-digit rules, parity, and the even-exponent factorisation test.

  2. Cuemath: Perfect Squares

    Perfect squares explained for students, with lists, patterns, and worked examples.

  3. Brilliant: Perfect Squares

    Number-theory properties of perfect squares, including the 4k+1 form and digit patterns.