To square a number, use the caret operator: =A1^2. The ^ sits on the 6 key (Shift+6) and means “raise to the power of”. =POWER(A1,2) does the same thing if you prefer a named function, and =A1*A1 works too. All three give 25 for a value of 5.
To square a whole column at once in Excel 365, =A1:A10^2 spills the results down without dragging — on Excel 2019 or earlier, select B1:B10 first and enter it with Ctrl+Shift+Enter. Two things to watch.
Squaring a negative gives a positive, so =(-5)^2 returns 25, but =-5^2 returns -25 because Excel applies the exponent before the minus sign — use parentheses when the value is typed directly rather than referenced.
And to show a superscript ² alongside your numbers without breaking them, use a custom format (Ctrl+1 → Custom → 0″²”) rather than typing the character into the cell.
Let’s say you’re a real estate agent preparing a report on available properties. You need to calculate the area of square-shaped plots of land to provide accurate information to potential buyers. Each plot’s side length is listed in one column in Excel.
By squaring this number, you can quickly find out the total area of each plot. This helps you provide clear and essential details to your clients, enhancing your report’s value and utility.
If you want to square a number in Excel, you can use two easy methods, and both methods work in the same way.
You need to specify the number for which you want to calculate the square and specify 2 as you want to calculate the square. But in this tutorial, we will also learn some other methods as well.
Use POWER to Square in Excel
In Excel, the POWER function raises a number to a specified power. You type in the base number and the exponent, and Excel calculates the result.
It has two arguments: the base and the exponent. The base is the number you want to raise to a power, and the exponent is the power you raise the base to (let’s say square).

- Enter the POWER function in the cell.
- Refer to the cell where you have the number you need to calculate the square.
- In the second argument, enter 2 to raise the number to the power of 2.
- Close the function and hit Enter.
=POWER(A2,2)
The moment you hit Enter, the function returns the square, as you can see in the above example.
Using the Caret Operator (^) for SQUARE
In Excel, the caret operator (^) is used for exponentiation, which is used to raise a number to the power of another number.
For example, if you want to square the number 3, use the formula =3^2, which calculates to 9. This operator is straightforward and powerful for performing mathematical operations involving powers in Excel formulas. Let’s take an example with data:
- Refer to the cell where you have a number for which you want to calculate the square.
- Enter a ^ using the keyboard (you can find it on the number key 6).
- Type 2, which tells Excel to raise its power to 2.
- Hit Enter to get the result.

Here’s the formula for the number in cell A2:
=A2^2
As I said, both methods work in the same way and are quite easy to use. But you can choose one according to your need.
Just be careful when you type a negative number directly into the formula. In Excel, the minus sign is applied before the power, so =-2^2 returns 4, not -4. If you want -4, use =-(2^2). With a cell reference, like =A2^2, a negative number in A2 always gives a positive square.
Using Basic Multiplication for SQUARE
Apart from the formulas discussed above, the simplest way to square a number is by using the multiplication operator *. If your number is in cell A1, you can use:
=A1 * A1
This is by far the easiest method for calculating a number’s square. You can refer to a cell or enter the values into the formula directly.
Using the PRODUCT Function for SQUARE
To use the PRODUCT function to calculate the square of a number in Excel, you can multiply the number by itself within the function.
For example, if you have a number in cell A1 and you want to square it, you can use the following formula:
=PRODUCT(A1, A1)
The above formula takes the number from cell A1 and multiplies it by itself to square the number. Note that PRODUCT ignores a number stored as text in the cell, so it returns 0 for it, while A1^2 and A1*A1 convert it and return the square.
SQUARE Numbers from an Entire Range
You can use a dynamic array to square a range of numbers dynamically and return an array of squared numbers (available in Microsoft 365 and Excel 2021 and later). You can use a simple formula with the exponentiation operator.
=A1:A10^2
Select the cell where you want the dynamic array result to start. Ideally, this should be to the right or below your data to ensure enough space for the array to spill.
Assume you have numbers in the range A1:A10. You want to square each of these numbers. Enter the above formula in cell B1, and it returns all ten squares in B1:B10.
If you are using an earlier version, you can use the same formula, but use CTRL + SHIFT + ENTER to enter it as an array formula.
If you have 10 values in the range A1:A10, select the range B1:B10, enter the formula in cell B1, and then press CTRL + SHIFT + ENTER to enter the formula.
Create a Custom Function to Square a Number
If you frequently need to square numbers, you can create a custom function in Excel to make this calculation quick.
Function Square(Number As Double) As Double
Square = Number * Number
End Function
=Square(A1)
To add this custom function in Excel, press ALT + F11 to open the VBA editor, then go to Insert > Module and paste your code into the new module window. Close the VBA editor to return to Excel and enter the function.
Save the workbook as a macro-enabled workbook (.xlsm), otherwise the function is gone when you open the file again.
Sum of Squares with SUMSQ
If you need the total of the squares of a range, you don’t need a helper column. The SUMSQ function squares each number and adds them up:
=SUMSQ(A1:A10)
Frequently Asked Questions
How do I type the squared symbol (²) in Excel?
Type the text, like m2, select only the 2 in the formula bar, press Ctrl + 1, and tick Superscript. Or hold Alt and type 0178 on the number pad to insert ². This only changes how the text looks; it doesn’t calculate anything.
Why does squaring a negative number give a positive result?
Because a negative number multiplied by itself is positive, so =A2^2 with -4 in A2 returns 16. That’s correct math, not an Excel error.
Which method is best to square a number?
The caret (^) is the shortest and works for any power. POWER is easier to read for beginners. Both give the same result, so use the one you like.
Written by
Puneet Gogia
Microsoft MVP — Excel · Founder, Excel Champs
Twelve years of teaching Excel, and a decade before that using it as a data analyst. Every tutorial here is written from a file I actually built.