An expression with several operations has exactly one value. Work inside groups first, then powers, then multiplication and division from left to right, and last addition and subtraction from left to right.
| Step | On | |
|---|---|---|
| 1 | Work inside grouping symbols. Parentheses, brackets, and the top and bottom of a fraction bar each count as a group. Start with the innermost group. | |
| 2 | Evaluate powers. An exponent applies only to the number or group directly in front of it. | |
| 3 | Multiply and divide from left to right. Multiplication and division have the same rank: do whichever comes first as you read. Here , then . | |
| 4 | Add and subtract from left to right. Subtracting is adding the opposite (subtraction as inverse addition), so the two share one rank and go strictly left to right. |