Order of operations with variables: what actually comes first?
Parentheses and exponents set the structure; multiplication, division, addition, and subtraction then move left to right within their own level.
What the idea means, why its conditions matter, and where it connects.
Updated July 13, 2026Multiplication does not always beat division, and addition does not always beat subtraction. Equal-priority operations are read from left to right.
Read the structure before calculating
An expression is a set of nested instructions. Grouping symbols tell you which part acts as one unit, while an exponent belongs only to its base unless parentheses enlarge that base.
A quick pause to mark the groups prevents the most common error: applying an operation to more of the expression than the notation allows.
Multiplication and division share a level
The familiar acronym can make it sound as if multiplication must happen before division. They have equal priority, so evaluate whichever appears first when reading left to right.
Addition and subtraction work the same way. A subtraction can be rewritten as addition of a negative, which makes the left-to-right rule easier to see.
Variables do not change the rule
A variable is simply a number whose value is not yet fixed. Substitute with parentheses, then use the same structure you would use for a numerical expression.
Keeping substituted negatives in parentheses is especially important because the exponent and the negative sign may not belong to the same base.
Evaluate 3 + 2(x − 4)² when x = 1.
Substitute 1 for x and keep the grouped difference.
Evaluate inside the parentheses.
Square, multiply, then add.
Common mistakes
- Treating the acronym as a strict left-to-right list.
- Letting an exponent apply beyond its actual base.
- Substituting a negative value without parentheses.
Three takeaways
- Grouping defines the expression's shape.
- Equal-priority operations move left to right.
- Substitute first, then simplify.