Square Calculator

Calculate x squared (x²) for any integer, negative, or decimal number, with full step-by-step working and the sign rule for negative numbers explained.

Loading calculator…

What squaring means

Squaring a number means multiplying it by itself:

x2=x×xx^2 = x \times x

For example, 122=12×12=14412^2 = 12 \times 12 = 144. The small raised "2" is an exponent — squaring is the same as raising a number to the power of 2.

Why it's called "squaring": the area connection

The name comes from geometry. A square with side length ss has area s×s=s2s \times s = s^2 — every side is the same length, so the area calculation is literally "the side length, squared." A garden bed that is 1212 meters on each side has an area of 122=14412^2 = 144 square meters.

The sign trap: 72-7^2 vs. (7)2(-7)^2

This is one of the most common mistakes in algebra, because the two expressions look almost identical but mean different things:

ExpressionHow to read itResult
72-7^2Negate the result of 727^249-49
(7)2(-7)^2Square the number 7-74949

Without parentheses, the exponent applies only to the 77, and the minus sign is applied after squaring — so 72=(72)=49-7^2 = -(7^2) = -49. With parentheses, the minus sign is part of the number being squared, so (7)2=(7)×(7)=49(-7)^2 = (-7) \times (-7) = 49.

This calculator always reads a negative number typed into the field as the whole value being squared. Entering 7-7 computes (7)2=49(-7)^2 = 49, the same way a graphing calculator treats a parenthesized negative base.

Tip: A squared number is never negative. Multiplying two numbers with the same sign always gives a positive result — a negative times a negative is positive, just like a positive times a positive. So (7)2=49(-7)^2 = 49 and 72=497^2 = 49 give the exact same answer, because the sign cancels either way.

Squaring is always non-negative

For any real number xx:

x20x^2 \geq 0

The smallest possible square is 02=00^2 = 0. Every other square — whether xx is positive or negative — is strictly positive. This is why x2=9x^2 = -9 has no real solution: no real number, positive or negative, squares to a negative value.

Decimal squares, computed exactly

The number being squared doesn't need to be a whole number: 2.52=2.5×2.5=6.252.5^2 = 2.5 \times 2.5 = 6.25. This calculator computes decimal squares with exact decimal arithmetic (not floating-point multiplication), so a value like 0.292=0.08410.29^2 = 0.0841 comes out precise, rather than showing tiny binary-rounding artifacts like 0.084099999999999990.08409999999999999.

The inverse: square root

Squaring and taking a square root undo each other. If x2=yx^2 = y, then x=yx = \sqrt{y} (taking the non-negative root). Because squaring always produces a non-negative result, every positive number has two square roots: 72=497^2 = 49 and (7)2=49(-7)^2 = 49, so both 77 and 7-7 are square roots of 4949. For the reverse operation — finding y\sqrt{y} from yy — use the Square Root calculator.

Worked examples

Example 1 — positive integer: 122=12×12=14412^2 = 12 \times 12 = 144.

Example 2 — negative integer: (7)2=(7)×(7)=49(-7)^2 = (-7) \times (-7) = 49 — positive, because the sign cancels.

Example 3 — decimal: 2.52=2.5×2.5=6.252.5^2 = 2.5 \times 2.5 = 6.25.

Example 4 — zero: 02=0×0=00^2 = 0 \times 0 = 0.

Where squaring shows up

Squaring appears throughout math and science: the area formulas for squares and circles (πr2\pi r^2), the Pythagorean theorem (a2+b2=c2a^2 + b^2 = c^2), variance and standard deviation in statistics, and the inverse-square laws in physics (gravity, light intensity). Squaring is the special case of the Exponents calculator where the exponent is fixed at 2 — cubing (exponent 3) is the next most common special case, with its own dedicated Cube calculator.

Frequently asked questions

What does squaring a number mean?
Squaring a number means multiplying it by itself: x2=x×xx^2 = x \times x. For example, 122=12×12=14412^2 = 12 \times 12 = 144. The small "2" is an exponent, so "squared" is another way of saying "raised to the power of 2."
Is a negative number squared positive or negative?
Always positive (or zero). Squaring multiplies a number by itself, so two negative signs cancel out: (7)2=(7)×(7)=49(-7)^2 = (-7) \times (-7) = 49. This calculator reads a negative number typed into the field as the whole value being squared, the same way a graphing calculator treats a parenthesized negative base.
What is the difference between negative 7 squared and negative-7 in parentheses squared?
They can mean different things depending on parentheses. 72-7^2 (no parentheses) means "negate the result of 727^2," giving 49-49. (7)2(-7)^2 means "square the number 7-7," giving 4949. This calculator treats a negative number typed into the input as the whole base, so entering 7-7 computes (7)2=49(-7)^2 = 49.
Why is a squared number never negative?
Because multiplying two numbers with the same sign always gives a positive result. A positive times a positive is positive (5×5=255 \times 5 = 25), and a negative times a negative is also positive (5×5=25-5 \times -5 = 25). So for any real number xx, x20x^2 \geq 0 — the smallest possible square is 02=00^2 = 0.
Can you square a decimal number?
Yes. The same rule applies: multiply the decimal by itself. For example, 2.52=2.5×2.5=6.252.5^2 = 2.5 \times 2.5 = 6.25. This calculator computes decimal squares exactly, using exact decimal arithmetic rather than floating-point multiplication, so results like 0.292=0.08410.29^2 = 0.0841 come out precise instead of showing tiny rounding artifacts.
What is the inverse of squaring?
The inverse of squaring is taking the square root. If x2=yx^2 = y, then x=yx = \sqrt{y} (for non-negative xx). Since squaring always gives a non-negative result, every positive number has two square roots — a positive and a negative one — because both xx and x-x square to the same value yy.
How is squaring used to calculate area?
The area of a square with side length ss is s2s^2, because a square has equal width and height, so area = width × height = s×s=s2s \times s = s^2. This is where the name "squaring" comes from: multiplying a number by itself is exactly the calculation you do to find the area of a square.

Related calculators