Algebra
Textbooks
Boundless Algebra
Numbers and Operations
Introduction to Arithmetic Operations
Algebra Textbooks Boundless Algebra Numbers and Operations Introduction to Arithmetic Operations
Algebra Textbooks Boundless Algebra Numbers and Operations
Algebra Textbooks Boundless Algebra
Algebra Textbooks
Algebra
Concept Version 12
Created by Boundless

The Order of Operations

The order of operations is an approach to evaluating expressions that involve multiple arithmetic operations.

Learning Objective

  • Evaluate how the order of operations governs the use of mathematical operations


Key Points

    • The order of operations prevents ambiguity in mathematical expressions.
    • The order of operations is as follows: 1) simplify terms inside parentheses or brackets, 2) simplify exponents and roots, 3) perform multiplication and division, 4) perform addition and subtraction. 
    • Multiplication and division are given equal priority, as are addition and subtraction. This means that multiplication and division operations (and similarly addition and subtraction operations) can be performed in the order in which they appear in the expression.
    • A helpful mnemonic to remember the order of operations is PEMDAS, sometimes expanded to "Please Excuse My Dear Aunt Sally."

Term

  • mathematical operation

    An action or procedure that produces a new value from one or more input values.


Full Text

The order of operations is a way of evaluating expressions that involve more than one arithmetic operation. These rules tell you how you should simplify or solve an expression or equation in the way that yields the correct output.

For example, when faced with the expression $4+2\cdot 3$, how do you proceed?

One option is:

$\begin{aligned} \displaystyle 4+2\cdot3 &= (4+2)\cdot 3 \\&= 6\cdot 3 \\&= 18 \end{aligned}$

The other option is:

$\begin{aligned} \displaystyle 4+2 \cdot 3 &= 4+(2\cdot 3) \\ &= 4 + 6 \\ &= 10 \end{aligned}$

Which one is the correct order of operations?

In order to be able to communicate using mathematical expressions, we must have an agreed-upon order of operations so that each expression is unambiguous. For the above expression, for example, all mathematicians would agree that the correct answer is 10.

The order of operations used throughout mathematics, science, technology, and many computer programming languages is as follows:

  1. Simplify terms inside parentheses or brackets
  2. Simplify exponents and roots
  3. Perform multiplication and division
  4. Perform addition and subtraction

These rules means that within a mathematical expression, the operation ranking highest on the list should be performed first. Multiplication and division are of equal precedence (tier 3), as are addition and subtraction (tier 4). This means that multiplication and division operations (and similarly addition and subtraction operations) can be performed in the order in which they appear in the expression.

Let's evaluate a few expressions using the order of operations. 

Example 1

$3^2-1\cdot4+2$

In this expression, the following operations are taking place: exponentiation, subtraction, multiplication, and addition. Following the order of operations, we simplify the exponent first and then perform the multiplication; next, we perform the subtraction, and then the addition:

$\begin{aligned} \displaystyle 3^2-1\cdot4+2 &= 9-1\cdot4+2 \\ &= 9-4+2 \\ &= 5+2 \\ &= 7 \end{aligned} $

Example 2

$6-(5\cdot1)+2^3$

Here we have an expression that involves subtraction, parentheses, multiplication, addition, and exponentiation. Following the order of operations, we simplify the expression within the parentheses first and then simplify the exponent; next, we perform the subtraction and addition operations in the order in which they appear in the expression:

$\begin{aligned} \displaystyle 6-(5\cdot1)+2^3 &= 6-5+2^3 \\ &= 6-5+8 \\ &= 1+8 \\ &= 9 \end{aligned}$

A Note on Equal Precedence

Since multiplication and division are of equal precedence, it may be helpful to think of dividing by a number as multiplying by the reciprocal of that number. Thus $3 \div 4 = 3 \cdot \frac{1}{4}$. In other words, the quotient of 3 and 4 equals the product of 3 and $\frac{1}{4}$.

Similarly, as addition and subtraction are of equal precedence, we can think of subtracting a number as the same as adding the negative of that number. Thus $3−4=3+(−4)$. In other words, the difference of 3 and 4 equals the sum of positive three and negative four.

With this understanding, think of $1−3+7$ as the sum of 1, negative 3, and 7, and then add these terms together. Now that you've reframed the operations, any order will work:

  • $(1−3)+7=−2+7=5$
  •  $(7−3)+1=4+1=5$

The important thing is to keep the negative sign with any negative number (here, the 3).

Mnemonics

In the United States, the acronym PEMDAS is a common mnemonic for remembering the order of operations. It stands for Parentheses, Exponents, Multiplication, Division, Addition, and Subtraction. PEMDAS is often expanded to "Please Excuse My Dear Aunt Sally."

This mnemonic can be misleading, however, because the "MD" implies that multiplication must be performed before division and the "AS" that addition must be performed before subtraction, rather than acknowledging their equal precedence. To illustrate why this is a problem, consider the following:

$10-3+2$

This expression correctly simplifies to 9. However, if you were to add together 2 and 3 first, to give 5, and then performed the subtraction, you would get 5 as your final answer, which is incorrect. To avoid this mistake, is best to think of this problem as the sum of positive ten, negative three, and positive two.

$10+(-3)+2$

To avoid this confusion altogether, an alternative way to write the mnemonic is:

P

E

MD

AS

Or, simply as PEMA, where it is taught that multiplication and division inherently share the same precedence and that addition and subtraction inherently share the same precedence. This mnemonic makes the equivalence of multiplication and division and of addition and subtraction clear.

[ edit ]
Edit this content
Prev Concept
Introduction to Exponents
Interval Notation
Next Concept
Subjects
  • Accounting
  • Algebra
  • Art History
  • Biology
  • Business
  • Calculus
  • Chemistry
  • Communications
  • Economics
  • Finance
  • Management
  • Marketing
  • Microbiology
  • Physics
  • Physiology
  • Political Science
  • Psychology
  • Sociology
  • Statistics
  • U.S. History
  • World History
  • Writing

Except where noted, content and user contributions on this site are licensed under CC BY-SA 4.0 with attribution required.