Formula for Squared in Excel: 3 Easy Ways to Do It
In this article
To square a number in Excel, use the caret symbol (^) or the POWER function. The fastest way is to type =A1^2 (where A1 is your cell) or =POWER(A1,2). Both methods tell Excel to multiply the number by itself, effectively squaring the value.
Squaring numbers is a fundamental requirement for many data analysis tasks, from calculating the area of a square or circle to performing statistical variance and standard deviation calculations. In Excel, there is no single "square button" like you might find on a physical calculator; instead, you use mathematical operators or built-in functions to achieve the result. Whether you are dealing with a single constant number or a massive dataset of thousands of rows, the logic remains the same: you are raising a base number to the power of two.
What You'll Need
- A computer with Microsoft Excel installed (any version from Excel 2007 to the latest Microsoft 365).
- A dataset containing the numbers you wish to square, or a specific value you want to calculate.
- Basic knowledge of how to click on a cell and enter a formula into the formula bar.
Step-by-Step
Method 1: Using the Caret (^) Symbol
The caret symbol is the standard mathematical operator for exponents in Excel. It is the most common method used by power users because it is concise and fast to type.
- Open your Excel workbook and locate the cell containing the number you want to square (for example, cell A2 contains the number 5).
- Click on an empty cell where you want the result to appear (for example, cell B2).
- Type the equals sign
=to tell Excel you are starting a formula. - Click on the cell containing the original number (A2) or type the cell reference manually.
- Type the caret symbol
^. On most keyboards, this is achieved by pressing Shift + 6. - Type the number
2immediately after the caret. Your formula should now look like=A2^2. - Press Enter. The cell will now display the squared value (in this case, 25).
Method 2: Using the POWER Function
The POWER function is a dedicated formula designed specifically for exponents. Some users prefer this method because it is more explicit and easier to read when auditing complex spreadsheets.
- Select the empty cell where you want the result to be displayed.
- Type
=POWER(to begin the function. - Click on the cell you wish to square (e.g., A2) or type the number directly (e.g., 5). This is the "number" argument of the function.
- Type a comma
,to separate the arguments. - Type the number
2. This is the "power" argument, telling Excel to square the first number. - Type a closing parenthesis
)to complete the function. Your full formula should look like=POWER(A2,2). - Press Enter to see the result.
Method 3: Basic Multiplication
Since squaring a number is simply multiplying it by itself, you can use the basic multiplication operator (the asterisk). This is often the most intuitive method for beginners.
- Select the destination cell.
- Type the equals sign
=. - Click the cell you want to square (A2).
- Type the asterisk
*(Shift + 8). - Click the cell you want to square again (A2), or type the same cell reference.
- Your formula should look like
=A2*A2. - Press Enter.
Applying the Formula to a Large Column
You do not need to type the formula for every single row. Once you have squared the first number, you can use the Fill Handle to apply it to the rest of your data.
- Click on the cell containing your completed square formula (e.g., B2).
- Move your mouse cursor to the bottom-right corner of the cell until it turns into a small, solid black cross. This is the Fill Handle.
- Double-click the Fill Handle to automatically fill the formula down to the bottom of your data range, or click and drag it down manually.
- Excel will automatically adjust the cell references (A2 becomes A3, A4, etc.), squaring every number in the column.
Common Mistakes
One of the most frequent errors is forgetting the equals sign = at the start of the formula. Without it, Excel treats your entry as plain text, and you will see A2^2 written in the cell instead of the actual calculated number.
Another common mistake is using the wrong symbol for exponents. Some users try to use the ** notation (common in Python) or the ^ symbol without the Shift key. In Excel, only the caret ^ or the POWER function works for exponents.
Users also occasionally confuse the POWER function syntax. The function requires two arguments: the base and the exponent. If you forget the comma or the closing parenthesis, Excel will trigger a formula error alert. Ensure your syntax is exactly =POWER(base, power).
Finally, be careful when squaring negative numbers. In mathematics, a negative number squared becomes positive. However, if you write =-5^2 in some contexts or use parentheses incorrectly, you might get different results. To ensure a negative number is squared correctly, always put the number in parentheses: =(-5)^2.
Tips
If you are squaring a constant number that never changes, you can type the number directly into the formula, such as =12^2. This removes the need for a reference cell and keeps your spreadsheet cleaner.
For those working with very large numbers, be aware that squaring can quickly lead to values that exceed Excel's limit. If a number is too large, Excel will display it in scientific notation (e.g., 1.23E+15). You can change this back to a standard number by going to the Home tab, clicking the Number Format dropdown, and selecting Number.
If you need to square a number and then perform another operation (like adding a constant), remember the order of operations (PEMDAS). Excel handles exponents before multiplication and addition. For example, =A2^2 + 10 will square A2 first and then add 10. If you want to add 10 first and then square the result, you must use parentheses: =(A2+10)^2.
Troubleshooting
If your formula returns a #VALUE! error, it usually means the cell you are referencing contains text instead of a number. Check the source cell to ensure there are no accidental letters, spaces, or symbols (like currency signs typed manually) that would prevent Excel from recognizing the value as a number.
If you see #NUM!, the resulting squared number is likely too large for Excel to handle. Excel has a maximum limit for number size; if your calculation exceeds this, you may need to scale your data or use a different software for extreme precision.
If the formula remains visible in the cell instead of showing the result, check the cell formatting. The cell might be formatted as "Text." To fix this, go to the Home tab, change the format dropdown from Text to General, then click into the formula bar and press Enter again.
If the result looks like 0 or is rounded unexpectedly, your cell might be set to zero decimal places. Right-click the cell, select Format Cells, go to the Number category, and increase the decimal places to see the exact result.
Frequently Asked Questions
Can I square a range of cells all at once?
You cannot square a range with a single standard formula in one cell, but you can use an array formula or the Fill Handle to apply the square formula to every cell in a range. In Microsoft 365, typing =A2:A10^2 will create a "spill" range that squares all values automatically.
What is the difference between =A1^2 and =POWER(A1,2)?
There is no mathematical difference; both produce the exact same result. The caret is faster to type, while the POWER function is sometimes preferred for clarity in very long, complex formulas.
How do I square a number in Google Sheets?
The process is identical to Excel. You can use =A1^2 or =POWER(A1,2) in Google Sheets as well.
How do I do the opposite of squaring (square root)?
To find the square root, you can use the =SQRT(A1) function or raise the number to the power of 0.5 using =A1^0.5.
Why is my squared result showing as a date?
This happens if the cell was previously used for a date. Excel stores dates as numbers, so it may apply date formatting to your result. Change the cell format back to General or Number via the Home tab.