Why Excel Returns 9 for -3^2 and How to Get -9
Question details
The user wants Excel to evaluate a negative power expression using the intended order of operations.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Entering =-3^2 in a worksheet and expecting the exponent to be calculated before the negative sign is applied.
- Observed behavior
- Excel returns 9 because it applies the unary minus before exponentiation.
Check whether you want to square the positive number and then negate it, or square the negative number itself. These operations produce different results.
Use Parentheses to Apply the Exponent First in Excel
Use this formula when you want 3 squared first and the result negated to get -9.
Excel applies unary negation before exponentiation, unlike the convention used by many calculators and mathematical tools. Parentheses make the intended calculation explicit.
In Excel, select the cell containing =-3^2, or select an empty cell to test the formula.
In the cell or formula bar, enter =-(3^2) and press Enter.
Confirm that the cell displays -9. To square the negative number instead, enter =(-3)^2; that formula returns 9.

Calculate Negative Powers Clearly in WPS Spreadsheets
Use parentheses in WPS Spreadsheets to specify whether the exponent or the negative sign is applied first.
- 1. Open a spreadsheet: Open WPS Spreadsheets and create a workbook or open an existing Excel file.
- 2. Select a cell: Click an empty worksheet cell where you want the result.
- 3. Enter the formula: Type =-(3^2) in the cell or formula bar and press Enter.
- 4. Verify the result: Check that the cell displays -9. Use =(-3)^2 if you want to square the negative number and get 9.

Frequently Asked Questions
Is Excel wrong to return 9 for =-3^2?
Excel follows its own operator precedence, applying unary negation before exponentiation. Enter =-(3^2) to calculate the square first and return -9.
How do I square a negative number in Excel?
Enter =(-3)^2 in a cell. The parentheses make -3 the base, so the result is 9.
How can I negate the square of a value in another cell?
If the value is in A1, enter =-(A1^2). Excel squares the value in A1 and then negates the result.
Why does my calculator give a different answer for -3^2?
Many calculators apply exponentiation before unary negation, while Excel applies unary negation first. Use parentheses to specify the intended order in either tool.




