Skip to main content
K12 LibreTexts

1.4.1: Order of Operations

  • Page ID
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    Evaluate Numerical and Variable Expressions Using the Order of Operations

    Figure \(\PageIndex{1}\)

    eb enters his name into a draw to win a handheld game system from his local electronics megastore. A week later he visits the store for the draw and his name is picked! In order to claim the prize, he must correctly answer a skill testing question.

    The question is:45[30−(4×2−3)]

    Jeb has to answer the skill testing question without the use of technology. How can Jeb answer this question correctly to claim the prize?

    In this concept, you will learn to use the order of operations to solve numerical and variable expressions.

    Order of Operations

    In mathematics, you will often hear the word evaluate. Before you begin, it is important for you to understand what the word evaluate means. When you evaluate a mathematical sentence, you figure out the value of the number sentence. Often times you think of evaluating as solving, and it can be that, but more specifically, evaluating is figuring out the value of a sentence.

    In mathematics, you can evaluate different types of number sentences. Sometimes you will be working with equations and other times you will be working with expressions. First you need to know the difference between an equation and an expression.

    An equation is a statement that two mathematical expressions have the same value. An equation has an equal sign such that the quantity on the left side of the equal sign is equal to the quantity on the right side of the equal sign. This means both sides of the equation stand for the same number. 5x=30 is an equation. It states that "5x" and "30" have the same value.

    An expression is a general term in mathematics for a group of numbers, symbols and variables representing numbers and operations. You evaluate an expression to figure out the value of the mathematical statement itself, you are not trying to make one side equal another, as with an equation. 3a−2b+8 is an expression. There is no equal sign.

    Let’s start with an example of evaluating expressions.

    Two eighth grade math students evaluated the expression 2+3×4÷2. Macy’s answer was ten and Cole’s answer was eight. The students you are asked to write their step by step solutions on the board.

    Macy‘s Solution:


    Cole‘s Solution:


    It appears that each student performed the indicated operations in different orders. Of course, there cannot be two correct solutions for the same expression. There is actually a specific order in which operations must be performed.

    The order of operations is a rule that tells you which operation you need to perform and the order in which it must be done to achieve the correct answer. The order of operations is often called PEMDAS and each of the letters represents one part of the rule. P: parenthesis and grouping symbols; E: exponents; M: multiplication; D: division; A: addition; S: subtraction. MD (multiplication and division) are performed in the order they appear in the expression from left to right. AS (addition and subtraction) are also performed in the order they appear in the expression from left to right.

    Looking at the two solutions for evaluating the expression 2+3×4÷2, who has the correct answer?





    Macy evaluated the expression by performing the addition first, followed by multiplication and division. Cole performed the multiplication and division first, then addition. Macy simply completed the operations as they appeared from left to right. Cole completed the multiplication and division as they appeared from left to right and then performed the addition as his final step. Cole used the order of operations rule, PEMDAS, and his answer is correct.

    This is called evaluating or simplifying a numerical expression. A numerical expression is an expression made up only of numbers and operations.

    In addition to numbers, expressions can also have letters. The letters in an expression are called variables. These variables represent an unknown quantity. When an expression is written with a variable in it, you call it a variable expression.

    A variable expression is evaluated using the order of operations in the same way as a numerical expression is evaluated. In this Concept there will be a value given for the variable and you will substitute it into the variable expression before evaluating the expression.

    Evaluate the variable expression:

    60÷2⋅2a+16−4 when a=5.

    First, substitute the given value for a in the expression:


    Remember that, used this way, parenthesis mean you are multiplying 2 times (5).

    Now apply the order of operations (PEMDAS) and continue to evaluate the expression.

    First, divide: 60÷2=30, and write the new expression.


    Next, multiply: 30⋅2=60, since this is the first multiplication from left to right.


    Next, multiply: 60(5)=300 and write the new expression.


    Next, add: 300+16=316 and write the new expression.


    Then, subtract: 316−4=312

    The answer is 312.

    Now let’s add in the grouping symbols. The grouping symbols that you will be working with are brackets [ ] and parenthesis ( ). According to the order of operations (PEMDAS), you perform all operations inside the grouping symbols BEFORE any other operation in the list.

    Evaluate the numerical expression


    First, perform the operation in the parenthesis: 15÷5=3, and write the new expression.


    Next, multiply 4(3)=12 to clear the parenthesis and write the new expression.

    7+12−6Next, add:7+12=19 and write the new expression.


    Then, subtract: 19−6=13

    The answer is 13.

    Brackets can be used to group more than one operation. When you see a set of brackets, remember that brackets are a way of grouping numbers and operations with other groups already in parenthesis. Always evaluate grouping symbols from the innermost to the outermost.

    Evaluate the numerical expression.


    First, evaluate the innermost grouping symbols: the parenthesis.

    Multiply:4×6=24 and write the new expression.


    Next, perform the operation inside the brackets.

    Add:5+24=29 and write the new expression.


    Next, add:6+29=35 and write the new expression.

    35−17Then, subtract: 35−17=18

    The answer is 18.


    Example \(\PageIndex{1}\)

    Earlier, you were given a problem about Jeb and his (almost) prize.

    Remember, when solving a problem like this skill testing question, you need to complete the indicated operations in the order of PEMDAS.



    Notice there are parenthesis within the brackets. You need to evaluate from the inside out. So start with the parenthesis. According to PEMDAS multiplication comes before subtraction, and this is just as true within a group as without.

    First, multiply: 4×2=8 and write the new expression.

    45[30−(8−3)]Next, subtract: 8−3=5 and write the new expression.


    Next, subtract: 30−5=25 and write the new expression.


    Next, multiply:45×251=1005 and write the new expression.


    Then, divide: 1005=20

    The answer is 20.

    Jeb needs to answer 20 to claim his prize.

    Example \(\PageIndex{1}\)

    Evaluate the expression 3+9⋅2÷3+8


    First, multiply 9⋅2=18, and write down the new expression.


    Next, divide 18÷3=6 and write down the new expression.


    Next add 3+6=9 and write down the new expression.

    9+8Then, add 9+8=17.

    The answer is 17.

    Example \(\PageIndex{1}\)

    Evaluate the variable expression 6y+3−(2×4) when y=15.


    First, substitute y=15 into the expression.


    Next, perform the operation inside the parenthesis.

    Multiply: 2×4=8 and write the new expression.


    Next, multiply: 6(15)=90 to clear the parenthesis and write the new expression.


    Next add: 90+3=93 and write the new expression.

    93−8Then, subtract:

    93−8=85The answer is 85.

    Example \(\PageIndex{1}\)

    Evaluate the numerical expression.



    Remember to evaluate the grouping symbols from the innermost to the outermost.

    First, perform the operation inside the parenthesis.

    Multiply: 3×2=6 and write the new expression.


    Next, perform the operation inside the brackets.

    Add: 4+6=10 and write the new expression.


    Then multiply 4×10=40.


    Next, add: 7+40=47 and write the new expression.

    47−5 Finally, subtract


    The answer is 42.

    Example \(\PageIndex{1}\)

    Evaluate the variable expression.

    14×2÷7+3b−4 when b=12.


    First substitute b=12 into the expression.


    First, multiply:14×2=28 and write the new expression.


    Next, divide:28÷7=4 and write the new expression.


    Then, multiply again: 3×12=36, and write another new expression.


    Next, add:4+36=40 and write the new expression.


    Finally, subtract : 40−4=36

    The answer is 36.


    Evaluate each numerical expression using the order of operations.

    1. 4+5×2−3


    3. 5+5×8÷2+6






    9. 12+4×4÷8−3

    10. 12×2+6÷2−12

    Evaluate each variable expression. Remember to use PEMDAS when necessary.

    11.4y+6−2,when y=6

    12.9+3x−5+2,when x=8

    13.6y+2y−5,when y=3

    14.8+3y−5,when y=4

    15.7x−2×3÷3+12,when x=5

    Review (Answers)

    To see the Review answers, open this PDF file and look for section 1.4.


    Term Definition
    Brackets Brackets [ ], are symbols that are used to group numbers in mathematics. Brackets are the 'second level' of grouping symbols, used to enclose items already in parentheses.
    Equation An equation is a mathematical sentence that describes two equal quantities. Equations contain equals signs.
    Evaluate To evaluate an expression or equation means to perform the included operations, commonly in order to find a specific value.
    Expression An expression is a mathematical phrase containing variables, operations and/or numbers. Expressions do not include comparative operators such as equal signs or inequality symbols.
    Grouping Symbols Grouping symbols are parentheses or brackets used to group numbers and operations.
    nested parentheses Nested parentheses describe groups of terms inside of other groups. By convention, nested parentheses may be identified with other grouping symbols, such as the braces "{}" and brackets "[]" in the expression {3+[2−(5+4)]}. Always evaluate parentheses from the innermost set outward.
    Numerical expression A numerical expression is a group of numbers and operations used to represent a quantity.
    Parentheses Parentheses "(" and ")" are used in algebraic expressions as grouping symbols.
    PEMDAS PEMDAS (Please Excuse My Daring Aunt Sally) is a mnemonic device used to help remember the order of operations: Parentheses, Exponents, Multiplication/Division, Addition/Subtraction.
    Real Number A real number is a number that can be plotted on a number line. Real numbers include all rational and irrational numbers.
    Variable A variable is a symbol used to represent an unknown or changing quantity. The most common variables are a, b, x, y, m, and n.
    Variable Expression A variable expression is a mathematical phrase that contains at least one variable or unknown quantity.

    Additional Resources:

    PLIX: Play, Learn, Interact, eXplore: Order of Operations: Barrels of Candy

    Video: Order of Operations (PEMDAS)

    Practice: Order of Operations

    Real World Application: Everyone Loves a Bargain!

    Activities: PEMDAS Discussion Questions

    This page titled 1.4.1: Order of Operations is shared under a CC BY-NC license and was authored, remixed, and/or curated by CK-12 Foundation via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.