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.
LaTeX article Updated July 13, 2026
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.
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.
Worked example
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.
Keep these ideas
- Grouping defines the expression's shape.
- Equal-priority operations move left to right.
- Substitute first, then simplify.