Formula Errors

Why Excel Returns 9 for -3^2 and How to Get -9

Khadija KhanKhadija Khan Nov 25, 2026 869 views

Question details

The user wants Excel to evaluate a negative power expression using the intended order of operations.

Why Excel Returns 9 for -3^2 and How to Get -9
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.
Before you start

Check whether you want to square the positive number and then negate it, or square the negative number itself. These operations produce different results.

Solution 1Recommended

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.

1
Select the formula cell

In Excel, select the cell containing =-3^2, or select an empty cell to test the formula.

2
Enter the formula

In the cell or formula bar, enter =-(3^2) and press Enter.

3
Check the result

Confirm that the cell displays -9. To square the negative number instead, enter =(-3)^2; that formula returns 9.

Use Parentheses to Apply the Exponent First in Excel
Parentheses control the calculation: Use =-(A1^2) to negate the square of the value in A1, or =(-A1)^2 to square its negation.
Work with formulas in WPS

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. 1. Open a spreadsheet: Open WPS Spreadsheets and create a workbook or open an existing Excel file.
  2. 2. Select a cell: Click an empty worksheet cell where you want the result.
  3. 3. Enter the formula: Type =-(3^2) in the cell or formula bar and press Enter.
  4. 4. Verify the result: Check that the cell displays -9. Use =(-3)^2 if you want to square the negative number and get 9.
Make negative power formulas explicit with parenthesesOpen and edit Microsoft Excel XLSX filesWork with spreadsheet formulas in a familiar interface
microsoft office alternative - wps office

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.