The Big Idea
A mathematical expression can contain several operations at once. The order of operations is the shared convention that tells us which part to evaluate first. It allows different readers, calculators, and computer programs to interpret a well-written expression consistently.
The familiar memory aid PEMDAS summarizes the basic order:
| Stage | Operations | How to proceed |
|---|---|---|
| P | Parentheses and other grouping structures | Work from the innermost group outward |
| E | Exponents and radicals | Evaluate powers and roots at the same structural level |
| MD | Multiplication and division | Work from left to right |
| AS | Addition and subtraction | Work from left to right |
The acronym is useful, but the structure matters more than the letters. Multiplication is not automatically performed before division, and addition is not automatically performed before subtraction. Each pair occupies one shared level.
Why Do We Need an Order?
Consider the expression
\[ 2+3\times4. \]
Adding first would give \(5\times4=20\). Multiplying first gives \(2+12=14\). Both are possible sequences of keystrokes, but an ungrouped mathematical expression must communicate one intended value. By convention, multiplication has priority over addition, so the expression equals \(14\).
If the writer intends the sum to happen first, grouping makes that intention explicit:
\[ (2+3)\times4=5\times4=20. \]
Order of operations is therefore a part of mathematical language. It lets us communicate structure without surrounding every small step with parentheses.
Read the Structure Before Calculating
Before doing arithmetic, identify the main operation: the last operation that will combine the largest parts of the expression. In
\[ 7+2(5-1)^2, \]
the main operation is addition. Its two large parts are \(7\) and \(2(5-1)^2\). Inside the second part, multiplication combines \(2\) with the power. Inside the power, subtraction forms its base.
Calculation moves from the smallest nested parts toward the main operation:
\[ 7+2(5-1)^2 =7+2(4)^2 =7+2(16) =7+32 =39. \]
Thinking in terms of structure is more reliable than scanning for letters in an acronym. It also prepares us to read formulas, functions, fractions, matrices, and computer code.
Grouping Comes First
Parentheses tell us to treat their contents as one mathematical object. Evaluate the innermost group first, then move outward.
\[ 3\bigl(8-(2+1)\bigr) =3(8-3) =3(5) =15. \]
Parentheses, brackets, and braces can be used together to make levels easier to see:
\[ 2\left[5+\left\{9-(4+2)\right\}\right] =2[5+\{9-6\}] =2[5+3] =16. \]
The shapes differ for readability, not because they create different kinds of arithmetic priority.
Grouping Is Not Always Shown by Parentheses
Several mathematical structures group expressions even when ordinary parentheses are absent.
| Structure | What it groups | Equivalent reading |
|---|---|---|
| Fraction bar | The complete numerator and denominator | \(\dfrac{a+b}{c-d}=(a+b)\div(c-d)\) |
| Radical bar | The entire radicand beneath the bar | \(\sqrt{x+5}=(x+5)^{1/2}\) |
| Absolute-value bars | The expression whose magnitude is taken | \(|x-4|\) acts on \(x-4\) |
| Function notation | The complete input inside the parentheses | \(f(a+b)\) evaluates \(f\) at \(a+b\) |
| Exponent placement | The exponent attached to its base | \(x^{a+b}\) uses the complete exponent \(a+b\) |
For example,
\[ \frac{8+4}{5-2} =\frac{12}{3} =4. \]
We simplify the full numerator and denominator before dividing because the fraction bar groups both.
Exponents and Radicalization
After completing the relevant grouping, evaluate powers and roots before multiplication, division, addition, or subtraction at the same level.
\[ 6+2^3\times5 =6+8\times5 =6+40 =46. \]
Radicalization belongs at the same general level because roots are inverse operations of powers and can be written as fractional exponents:
\[ 3\sqrt{16}+2^2 =3(4)+4 =16. \]
When powers are stacked, parentheses or explicit formatting should make the intended base and exponent clear. Do not guess at a visually ambiguous expression.
A Negative Sign Is Not Always Part of the Base
The position of a negative sign matters. In an ungrouped expression, exponentiation applies before the leading negative sign:
\[ -3^2=-(3^2)=-9. \]
Parentheses create a different base:
\[ (-3)^2=9. \]
| Expression | Base being squared | Value |
|---|---|---|
| \(-3^2\) | \(3\) | \(-9\) |
| \((-3)^2\) | \(-3\) | \(9\) |
| \(-(-3)^2\) | \(-3\), followed by an outside negative | \(-9\) |
This is why negative substitutions should be enclosed in parentheses. If \(x=-3\), then \(x^2=(-3)^2\), not \(-3^2\).
Equal-Rank Operations Move Left to Right
Multiplication and division share one level of priority. When they appear together without additional grouping, evaluate them from left to right.
\[ 24\div6\times2 =4\times2 =8. \]
It would be incorrect to multiply \(6\times2\) first merely because the letter M appears before D in PEMDAS.
Addition and subtraction also share one level:
\[ 18-7+3 =11+3 =14. \]
The left-to-right rule resolves operations only within the same level. It does not override grouping, powers, or higher-priority operations.
The Six Operations in the Hierarchy
Malone Math treats addition, subtraction, multiplication, division, exponentiation, and radicalization as six basic operations. PEMDAS arranges them into three working levels after grouping.
| Priority | Operations | Inverse relationship |
|---|---|---|
| Highest basic level | Exponentiation and radicalization | Powers and appropriate roots undo one another under stated conditions |
| Middle level | Multiplication and division | Multiplication and division undo one another when division by zero is excluded |
| Lowest basic level | Addition and subtraction | Addition and subtraction undo one another |
Higher priority does not mean that one operation is more important. It simply tells us how conventional notation is parsed when operations are combined.
A Complete PEMDAS Example
Evaluate
\[ 4+3\left(10-2^3\right)^2\div6. \]
Work one structural layer at a time:
\[ \begin{aligned} 4+3\left(10-2^3\right)^2\div6 &=4+3(10-8)^2\div6 \\ &=4+3(2)^2\div6 \\ &=4+3(4)\div6 \\ &=4+12\div6 \\ &=4+2 \\ &=6. \end{aligned} \]
Each line changes only the part currently entitled to be evaluated. This visible pacing makes errors easier to find.
Substitution Happens Before Numerical Evaluation
When variables receive specified values, first substitute those values carefully. Then apply the order of operations to the resulting expression.
Evaluate \(2x^2-3x+5\) when \(x=-2\):
\[ \begin{aligned} 2x^2-3x+5 &=2(-2)^2-3(-2)+5 \\ &=2(4)+6+5 \\ &=8+6+5 \\ &=19. \end{aligned} \]
Parentheses preserve the negative input. Exponentiation acts on the grouped base before multiplication and addition.
Fractions Create Two Separate Workspaces
A fraction bar groups its entire numerator and denominator. Simplify each workspace according to its own order of operations, then divide.
\[ \frac{3+2^3}{7-5} =\frac{3+8}{2} =\frac{11}{2}. \]
A linear version must preserve that grouping. The fraction above should be typed as
\[ (3+2^3)/(7-5), \]
not \(3+2^3/7-5\). Removing the fraction bar without adding parentheses changes the expression.
Radicals and Absolute Values Have Internal Order
First evaluate the expression inside a radical or absolute-value structure. Then apply the root or absolute-value operation.
\[ \sqrt{5^2-9} =\sqrt{25-9} =\sqrt{16} =4. \]
\[ 3-|2-7| =3-|-5| =3-5 =-2. \]
The bars do not mean “perform this before everything everywhere.” They define a grouped object whose internal expression must first be evaluated correctly.
Function Notation Also Encodes Order
If \(f(x)=x^2+1\), then \(f(3+2)\) instructs us to form the input \(3+2\), substitute it for \(x\), and evaluate the function:
\[ f(3+2)=f(5)=5^2+1=26. \]
Nested functions work from the inside outward. If \(g(x)=2x-1\), then
\[ f(g(3))=f(2(3)-1)=f(5)=26. \]
The same structural habit used for nested parentheses now handles composition: complete the inner input-output process before applying the outer one.
Addition and Subtraction Separate Terms
At the outermost level, addition and subtraction divide an expression into terms. In
\[ 5x^2-3xy+7, \]
the terms are \(5x^2\), \(-3xy\), and \(7\). Multiplication and exponentiation operate within those terms before the terms are added.
This observation helps us read long expressions. First identify the outer terms; then inspect the factors and powers inside each term.
Rewriting Can Reveal the Structure
Subtraction can be rewritten as addition of an opposite, and division can be rewritten as multiplication by a reciprocal:
\[ a-b=a+(-b), \qquad a\div b=a\left(\frac{1}{b}\right),\quad b\ne0. \]
These rewrites explain why subtraction shares a level with addition and division shares a level with multiplication. They can also make signs and factors easier to track. However, rewriting must preserve the original grouping.
For example,
\[ 12\div3\times2 =12\left(\frac13\right)2 =8. \]
When Does Regrouping Preserve a Value?
Addition and multiplication are associative for ordinary real numbers:
\[ (a+b)+c=a+(b+c), \qquad (ab)c=a(bc). \]
Subtraction and division are not associative:
\[ (12-5)-2=5, \qquad 12-(5-2)=9, \]
\[ (24\div6)\div2=2, \qquad 24\div(6\div2)=8. \]
Parentheses may be moved or removed only when a valid property permits it. The order of operations does not grant general permission to regroup an expression.
Reordering Is a Separate Question
Addition and multiplication are also commutative for real numbers, so \(a+b=b+a\) and \(ab=ba\). Subtraction and division are not. This distinction matters when simplifying an expression.
Even multiplication is not commutative in every mathematical system. Matrix multiplication and function composition can depend on order. The notation and the type of object determine which properties are available.
PEMDAS tells us how to parse a written expression. Associative and commutative laws tell us when we may legally transform that expression. These are related tools, not the same rule.
Implicit Multiplication and Ambiguous Writing
Multiplication is often implied by adjacency:
\[ 3x=3\times x, \qquad 2(a+b)=2\times(a+b). \]
Compact notation is convenient, but a linear expression such as
\[ 6\div2(1+2) \]
is poor communication because readers and software may disagree about whether \(2(1+2)\) forms a denominator or whether division and multiplication should proceed left to right. A serious mathematical writer removes the uncertainty:
\[ \frac{6}{2(1+2)}=1 \]
or
\[ \left(\frac62\right)(1+2)=9. \]
The best response to ambiguous notation is clarification, not a contest over acronyms.
An Equation Has Two Expressions
An equals sign does not become another stage in PEMDAS. It states that the expression on the left and the expression on the right have the same value.
\[ 3+4\times2=11 \]
is a true statement because the left side evaluates to \(3+8=11\), matching the right side. When solving an equation, simplify each side according to its own structure, then use valid equality-preserving operations.
Avoid writing a chain in which the meaning changes from line to line. Every expression joined by equals signs must genuinely have the same value.
Order Does Not Override Domain Restrictions
A sequence of operations can be syntactically clear but mathematically undefined. For example,
\[ \frac{5}{3-3} \]
requires the denominator to be evaluated first. It becomes \(5/0\), which is undefined. PEMDAS cannot make division by zero permissible.
Likewise, in the real numbers, \(\sqrt{-4}\) has no real value. Correct order must be paired with awareness of the number system and the domain of each operation.
Calculators Need Explicit Input
Modern calculators generally implement a standard precedence system, but they can only evaluate what was entered. Use parentheses generously when translating two-dimensional notation into a one-line input.
| Written mathematics | Clear linear input |
|---|---|
| \(\dfrac{a+b}{c+d}\) | (a+b)/(c+d) |
| \(-(x+1)^2\) | -((x+1)^2) |
| \(\sqrt{x^2+y^2}\) | sqrt((x^2)+(y^2)) |
| \(2\pi r^2\) | 2*pi*(r^2) |
Software languages differ in their symbols and precedence details. Many use * for multiplication, / for division, and either ^ or ** for exponentiation. Check the system’s rules instead of assuming every interface behaves identically.
Efficient Mental Calculation Still Respects Structure
Order of operations does not require a slow, mechanical style. Once the structure is understood, valid properties can make the arithmetic easier.
For example,
\[ 25\times17\times4 \]
contains multiplication only. Because real-number multiplication is associative and commutative, we may calculate
\[ (25\times4)\times17=100\times17=1700. \]
The shortcut is valid because a mathematical property justifies the regrouping and reordering. Good mental math is structured flexibility, not disregard for notation.
Estimate Before You Trust the Result
A quick estimate can reveal a misplaced sign, grouping error, or incorrect calculator entry. Suppose we evaluate
\[ \frac{19.8+10.1}{3.02}. \]
The numerator is about \(30\), and the denominator is about \(3\), so the result should be near \(10\). An answer near \(100\) or \(1\) deserves immediate review.
Estimation does not replace exact evaluation. It gives the exact work a reasonableness check.
Order of Operations in a Practical Formula
The kinetic-energy formula is
\[ K=\frac12mv^2. \]
For \(m=6\text{ kg}\) and \(v=4\text{ m/s}\), substitute first and then evaluate the power before multiplication:
\[ K=\frac12(6)(4)^2 =\frac12(6)(16) =48\text{ J}. \]
The order is not an isolated arithmetic ritual. It preserves the meaning of formulas used in science, engineering, finance, computing, and daily measurement.
A Reliable Evaluation Routine
- Inspect the whole expression. Identify its terms, factors, groups, powers, fraction bars, and function inputs.
- Substitute carefully. Put negative or multi-term replacements in parentheses.
- Work from the innermost group outward. Treat each fraction numerator, denominator, radical, and function input as a grouped workspace.
- Evaluate exponents and radicals. Confirm exactly what serves as the base or radicand.
- Perform multiplication and division from left to right.
- Perform addition and subtraction from left to right.
- Check restrictions and reasonableness. Watch for division by zero, invalid inputs, signs, units, and implausible magnitude.
Writing one meaningful change per line provides a useful audit trail. It is usually faster to spot one incorrect line than to reconstruct an entire calculation from a single final answer.
Common Confusions
Does multiplication always come before division?
No. Multiplication and division have equal priority. When no grouping decides otherwise, perform them from left to right.
Does addition always come before subtraction?
No. Addition and subtraction also have equal priority and proceed from left to right.
Why is \(-4^2\) negative?
The exponent applies to \(4\), and the leading negative is applied afterward: \(-4^2=-(4^2)=-16\). Use \((-4)^2\) when the negative number is the base.
Do parentheses always mean multiplication?
No. Parentheses can group an expression, show a function input, identify coordinates, or indicate multiplication by adjacency. Context determines their role.
Where do radicals fit in PEMDAS?
Evaluate the grouped radicand first, then perform radicalization at the exponent-and-root level before lower-priority operations.
Does a fraction bar count as grouping?
Yes. It groups the complete numerator and complete denominator, which should be evaluated before their quotient is taken.
Can I always trust a calculator’s answer?
A calculator follows its programmed syntax, not the expression you intended. Enter grouping explicitly and estimate the expected result.
What should I do with an ambiguous expression?
Ask for clarification or rewrite it with a fraction bar and parentheses. Clear notation is more valuable than defending one possible interpretation.
Working Summary
The order of operations is a reading convention for mathematical structure. Complete grouping first, then exponents and radicals, then multiplication and division from left to right, and finally addition and subtraction from left to right.
Fraction bars, radical bars, absolute-value bars, and function inputs create grouping even when ordinary parentheses are not visible. Negative signs require special attention because \(-a^2\) and \((-a)^2\) do not generally mean the same thing.
PEMDAS helps us parse expressions; mathematical properties justify any later rearrangement or regrouping. When notation is ambiguous, rewrite it. When a result is obtained, check its domain, sign, magnitude, and units.
Check Your Understanding
Evaluate \(7+3\times4\).
Multiply first: \(7+12=19\).
Evaluate \((7+3)\times4\).
Complete the group first: \(10\times4=40\).
Evaluate \(36\div6\times3\).
Division and multiplication have equal rank, so move left to right: \(36\div6=6\), then \(6\times3=18\).
Evaluate \(20-8+5\).
Subtraction and addition have equal rank: \(20-8=12\), then \(12+5=17\).
Compare \(-5^2\) and \((-5)^2\).
\(-5^2=-(25)=-25\), while \((-5)^2=25\).
Evaluate \(2[9-(3+2)]\).
\(2[9-5]=2(4)=8\).
Evaluate \(\dfrac{4+2^3}{7-4}\).
The numerator is \(4+8=12\), and the denominator is \(3\). Therefore the value is \(12/3=4\).
Evaluate \(3+2\sqrt{25}-4\).
Radicalization first gives \(3+2(5)-4\). Multiply to get \(3+10-4\), then work left to right: \(9\).
If \(x=-3\), evaluate \(2x^2+1\).
Substitute with parentheses: \(2(-3)^2+1=2(9)+1=19\).
Why should \(6\div2(1+2)\) be rewritten?
Its linear layout does not clearly communicate whether \(2(1+2)\) is a complete denominator. A fraction bar or added parentheses makes the intended structure explicit.