Order of Operations
In mathematical systems, the Order of Operations is the set of rules that ensures a single, unambiguous result for any given expression. Without these rules, a problem like $x = 2 + 5 \times 3$ could be 21 or 17, depending on which operation was performed first.
However, because of the established order of operations, the correct answer 17.
To maintain consistency in science we follow the hierarchy often remembered by the acronym PEMDAS (PEDMAS or BODMAS in some regions) moving from left to right through the order of operations, to ensure consistency in the rules of mathematics.
The Hierarchy of Operations
- P [Parentheses and Brackets, Grouping Symbols] — Anything inside brackets or parentheses must be resolved first. This includes square brackets [ ], curly braces { }, and the fraction bar / used for division (which acts as a grouping symbol for the numerator and denominator).
- E [Exponents and Roots] — Calculate powers (like $3^2$ or $e^1.2$) and roots (like $\sqrt{16}$ or $\sqrt{3}$) after the grouping symbols are cleared.
- MD [Multiplication and Division] — These operations hold equal priority. They must solve them as they appear from left to right.
- AS [Addition and Subtraction] — Both addition and subtraction also hold equal priority. Just like multiplication and division, solve them from left to right.
The Left-to-Right Rule (The Critical Step)
The most common errors occur when Multiplication/Division or Addition/Subtraction are treated as tiered steps rather than equal partners.
Example: 12 \div 3 \times 2
* Correct: 12 \div 3 = 4, then 4 \times 2 = \mathbf{8}.
* Incorrect: 3 \times 2 = 6, then 12 \div 6 = 2. (This violates the left-to-right rule).
Order of Operations In STEM
In Physics: When calculating displacement using $x = v_0t + \frac{1}{2}at^2$, the order of operations dictates that you must square the time (t^2) before multiplying by acceleration (a) and the constant (1/2).
In Python: Python strictly follows these rules. The expression 2 + 5 * 3 will return 17. If you want the addition to happen first, you must use parentheses: (2 + 5) * 3.
In Calculus: When finding limits or derivatives of complex expressions, you must resolve the interior of the function according to these rules before applying the calculus operation.
Mission Challenge: Order of Operations
Solve the following expression to verify your “Computational Logic” level:
* Inside parentheses: 6 \div 2 = 3
* Inside brackets: 2^2 = 4
* Inside brackets: 3 \times 3 = 9
* Inside brackets: 4 + 9 = 13
* Final step: 10 – 13 = \mathbf{-3}
Next Step: Now that your order of operations is stabilized, would you like to proceed with the Day 3 Deep Dive: The Temple of Limits, where we apply these rules to factoring and early calculus?
Resources
- Gemini AI. “Prompt”. Accessed 16 Jan 2026.
Cite This Article
MLA
West, Brandon. "Order of Operations". Projeda, January 16, 2026, https://www.projeda.com/order-of-operations/. Accessed March 7, 2026.
