How to Square a Number in Excel: 4 Easy Methods
In this article
To square a number in Excel, type the formula =A1^2 (or =5^2 for a fixed value) into an empty cell and press Enter. The caret symbol (^) is Excel's exponent operator, so anything after it is treated as the power, and 2 means "squared." That single formula is the working answer; the rest of this guide covers the alternatives, how to fill squaring down a column, and what to do when Excel throws an error instead of a number.
What You'll Need
- Excel on Windows, Mac, the web, or the mobile app. All versions support the caret operator and the multiplication shortcut described below, so there is no add-in or extension to install.
- A spreadsheet with at least one cell containing a number, or the number itself if you want a one-off result. Keep the raw values in their own column so you can reference them rather than retyping.
- Basic familiarity with typing into the formula bar and pressing Enter or Return to commit a formula. On mobile, formulas are entered the same way but confirmed with the check mark on the keyboard.
Step-by-Step
- Pick an empty cell for the result. Click any blank cell where the squared value should appear. It does not need to sit next to the input, but keeping it in the next column makes it easier to see the relationship and to fill down later.
- Start the formula with an equals sign. Type
=. Excel only calculates a cell when the entry begins with this sign; without it, the text is stored as plain text and never computes. If you see your formula displayed as literal characters instead of a result, this is almost always the reason. - Reference the number or type it. Click the cell holding the number (Excel inserts its address, such as
A2) or type the value directly, for example7. Referencing a cell is the better habit because changing the input updates the square automatically. - Enter the caret and the power of 2. Type
^then2. On a US keyboard the caret is Shift+6. The full formula reads=A2^2. On some non-US layouts the caret sits on a different key, but the character itself is the same and Excel accepts it regardless of how you type it. - Press Enter or Return. The cell now shows the result and the formula bar shows the original formula. Click the result cell and the formula remains visible, so you can confirm the reference points where you intended.
- Fill the formula down a column. Select the result cell, drag the small square handle in its bottom-right corner down the range, or double-click that handle to auto-fill to the end of the adjacent data. Excel adjusts each reference, so row 3 squares B3, row 4 squares B4, and so on. Press Ctrl+D (Windows) or Command+D (Mac) to fill a selected range downward instead of dragging.
If you prefer not to use the caret, the formula =A2*A2 produces the same result and is easier to read at a glance. The function =POWER(A2,2) is a third route; it does exactly the same calculation and is useful if you get tired of hunting for the caret key. All three approaches give identical output for squaring, so pick whichever you find clearest and stay consistent within a sheet.
Common Mistakes
- Typing the wrong exponent.
=A2^3cubes the number, and=A2*2doubles it rather than squaring it. Doubling and squaring give very different results once numbers exceed 2, so check the value after the caret. - Leaving off the equals sign. A cell containing
A2^2displays the text and never calculates. Add=at the start. - Referencing the result cell instead of the source. If you place the formula in B2 but write
=B2^2, you create a circular reference and Excel warns you or returns 0. Point at the input column. - Assuming a negative result for negative numbers. Squaring a negative number yields a positive value, because
-4^2as Excel evaluates it with the unary minus applied first gives 16. That is usually desired, but do not be surprised when the sign disappears. - Overwriting the input. Pasting values instead of formulas into the result column is fine, but pasting a result back over the source column destroys the original numbers. Keep inputs and outputs in separate columns.
Tips
- Label columns clearly, such as "Value" and "Value Squared," so anyone opening the sheet understands what each column represents without inspecting the formulas.
- Format the result column to a sensible number of decimal places. Squaring amplifies decimals, so financial figures can run to many digits and look cluttered unformatted.
- Convert the result column to values with copy and then Paste Special > Values if you need to remove the formulas before sending the file to someone. This keeps the numbers but drops the live links.
- Square an entire column at once by entering the formula in the first row, selecting the rest of the column, and pressing Ctrl+D. This is faster than dragging for long lists.
- Use absolute references (
=$B$2^2) only when you genuinely want the same input squared everywhere. For row-by-row squaring, relative references are correct. - For statistical work, square deviations as part of variance calculations by writing
=(A2-$B$1)^2, where B1 holds the mean. The caret applies to the whole parenthesised result, which is exactly what squared residuals require.
Troubleshooting
The cell shows the formula as text. The entry is missing a leading equals sign, or the cell was preformatted as Text. Select the cell, check the format dropdown for Text, and change it to General, then re-enter the formula by pressing F2 and Enter.
You get #VALUE!. The referenced cell contains text rather than a number, or contains a stray space. Clear the source cell or use =VALUE(A2)^2 if the number is stored as text and must be converted. Watch for cells that look numeric but have a leading apostrophe.
You get #NAME?. This appears when the caret is mistyped as a different character, commonly a typographic caret pasted from a document. Retype the formula manually rather than pasting it.
A circular reference warning appears. The formula refers to its own cell, directly or through a chain. Trace which cell is involved and repoint the reference to the input column.
Auto-fill copies the same value everywhere. The reference is probably absolute (with dollar signs) when it should be relative. Remove the dollar signs and fill again.
Results look wrong by a factor of two. The operator is likely multiplication (*2) rather than the caret (^2). Correct the symbol in the formula bar.
Frequently Asked Questions
Does squaring work the same in Google Sheets?
Yes. Sheets accepts the caret operator, multiplication, and the POWER function with the same syntax, so formulas carry over between the two programs unchanged.
Can I square a whole list without a helper column?
You can with dynamic arrays in modern Excel by entering =A2:A50^2 once, which spills results down the column. In older versions, fill the formula down manually instead.
Why does squaring a negative number give a positive result?
A negative multiplied by a negative is positive, which is the definition of squaring. If you need the sign preserved, that is a different operation and requires an explicit formula.
Is there a shortcut key for squaring?
No dedicated shortcut exists. The quickest habit is to type the caret followed by 2, or copy an existing squared formula and paste it where needed.
Can I square values in a pivot table?
Not directly. Add a helper column in the source data with the squared formula, then include that field in the pivot table.