If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Order of operations with rational numbers

Let's go deeper with the order of operations. How do negation, absolute value, reciprocals fit into the order of operations? How do other properties like the distributive property or commutative property of addition relate?

Order of operations review

When there are lots of operations in an expression, we need to agree on which to evaluate first. That way, we will all agree that the expression has the same value. We could just use parentheses to always show what to do first, but we like to write things shorter when we can.
So instead, we agree to evaluate more powerful operations sooner. Multiplication is repeated addition, so we multiply before we add. Powers are repeated multiplication, so we take powers before we multiply.
  • Grouping symbols: We evaluate what is inside of grouping symbols first. There are lots of grouping symbols. Some common ones are parentheses, fraction bars, and absolute value symbols.
  • Exponents: Next we evaluate powers. There are a couple of operations that undo exponents (it takes 2 operations because powers are not commutative). They happen in this step, too.
  • Multiplication: Then we multiply. Division undoes multiplication, so it happens in the same step.
  • Addition: Last of all, we add. Subtraction undoes addition, so it happens in the same step.
Fun fact: There are operations that grow a number faster than exponents. One of them shows up a lot in probability.
Can you think of any operations that change a number more slowly than addition? Tell us about it in the comments.

Exponents with negatives

How do negative signs fit in with order of operations? In the expression 42, do we apply the negative sign or the exponent first? A negative sign means we take the opposite of a number. That's the same as multiplying the number by 1. So we take the opposite in the multiplication and division step.
Let's evaluate (4)2 and 42.
(4)2=4(4)Evaluate groups.=16Multiply.
With (4)2, we took the opposite of 4 first, because the negative sign was inside the grouping symbols.
42=(44)Evaluate the power.=16Take the opposite.
With 42, we squared 4 first, because exponents come earlier in the order operations than multiplying by 1 does.
Problem 1.1
Evaluate.
34=
  • Your answer should be
  • an integer, like 6
  • a simplified proper fraction, like 3/5
  • a simplified improper fraction, like 7/4
  • a mixed number, like 1 3/4
  • an exact decimal, like 0.75
  • a multiple of pi, like 12 pi or 2/3 pi

Exponents with fractions

Recall that fractions have three grouping symbols built in: the numerator, the denominator, and the entire fraction. If there are no parentheses or other grouping symbols visible, then the exponent is inside the numerator or denominator.
For example, in the expression (32)4, the entire fraction is inside a grouping symbol, the parentheses. The exponent 4 is outside the parentheses. So we are raising the entire fraction to the power of 4.
(32)4=32323232=8116
On the other hand, in the expression 342, the only grouping symbol is the fraction bar. The exponent 4 is in the numerator. So we only raise the 3 to the power of 4.
342=33332=812
Problem 2.1
Evaluate.
272=
  • Your answer should be
  • a simplified proper fraction, like 3/5
  • a simplified improper fraction, like 7/4

Absolute value

Suppose we have the expression 412|711100|. We know we evaluate the multiplication before the subtraction, but when do we take the absolute value?
First of all, the absolute value symbols are a grouping symbol. So stuff inside the symbols happens at the same step as other grouping symbols. So first, we multiply 711 to get 77, then subtract 100 to get 23 inside of the absolute value symbols.
Then we take the absolute value during the same step as we apply exponents.
Fun fact: There are other operations that go at this same step because they undo powers the way subtraction undoes addition.
Problem 3.1
Evaluate.
412|711100|=
  • Your answer should be
  • an integer, like 6
  • a simplified proper fraction, like 3/5
  • a simplified improper fraction, like 7/4
  • a mixed number, like 1 3/4
  • an exact decimal, like 0.75
  • a multiple of pi, like 12 pi or 2/3 pi

Add and subtract left to right?

Maybe you learned that you should evaluate addition and subtraction from left to right. That's because subtraction does not commute or associate. Luckily, we can rewrite subtraction as addition of the opposite.
Let's rewrite 4+63+1.
4+63+1=4term+6term+(3term)+1term
Now that we're adding, we can change the order and groups!
Once we get used to thinking of subtracting as adding the opposite, we can take shortcuts. Often, people leave out the extra + symbols.
4term+6term3term+1term
Each time we reach a + or that's not in a grouping symbol, it's the start of a new term. The stays with its term. Then we can commute and associate any terms we want.
4+63+1=6+134=(6+1)+(34)=7+(7)
Problem 4.1
Which 2 of the following expressions are equivalent to 0.25+(8)13+0.7?
Choose 2 answers:

Multiply and divide left to right?

The reciprocal of a number tells us how many groups of it we can make from 1. The great thing about reciprocals is that we can rewrite dividing by a number as multiplying by its reciprocal.
Here are a few examples.
  • 8÷6=816
  • 37÷611=37116
  • 11÷0.25=11÷14=11×4
That's great news, because we can commute and associate multiplication factors in any order.
Let's rewrite 3÷824.
3÷824=31824=32418=3(2418)=3(24÷8)
Like with adding and subtracting, sometimes we take shortcuts and move the division symbol with the implied factor.
3factor÷8factor of 1824factor=324÷8
We cannot start an expression with a ÷ symbol. So if we move the division to the start of an expression or grouping symbol, then we must write it as a factor of the reciprocal.
3factor÷8factor of 1824factor=18324
Note, we cannot commute a factor into a different term. Whenever we see a + or symbol that is not inside a grouping symbol, that's the start of a new term. For example, the expression 1025 has 2 terms: 102 and 5.
102510522051010150
Problem 5.1
Which 2 of the following expressions are equivalent to 34÷85÷6?
Choose 2 answers:

Grouping symbols or distributing first

Recall that the distributive property allows us to write equivalent expressions involving parentheses and multiplication. So we get the same value whether we distribute first or evaluate what's inside the parentheses first.
Let's try it out.
12+(7)(20+5)=12+(7)(15)Evaluate the group.=12+(7)+15Multiply 1 and 15.=20Add.
Now we'll distribute first.
12+(7)(20+5)=12+(7)+205Distribute 1.=20Add.
We get the same value both ways.
Note, the distributive property does not apply to all grouping symbols, just to parentheses.
7|34||7(3)+(7)(4)|77

Want to join the conversation?

  • duskpin ultimate style avatar for user Red Siren Song
    I found it helps when I read through the parts I don't understand a few times, and read them slowly. I try saying them out loud to find out how it makes sense.
    (13 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user eanf
    Why does the U.S.A. educational system force students into spending hundreds of hours doing techniques that statistics show they will most likely never use in the rest of their life besides future grades.
    (4 votes)
    Default Khan Academy avatar avatar for user
  • starky ultimate style avatar for user Viktor
    Fun fact: There are operations that grow a number faster than exponents

    It's a factorial, right?
    But I can't figure out this:
    Can you think of any operations that change a number more slowly than addition?

    I could make an addition very slow, like f(x)=x+0.0001, but something slower than addition? Could someone point a direction, please?
    (2 votes)
    Default Khan Academy avatar avatar for user
    • leafers ultimate style avatar for user Koi
      If "slow" means very little difference, then yes, it just depends on how you utilize it. Multiplication can potentially be slower than addition.
      -----
      For example, if you multiply 5 with 1.0001, the product will be 5.0005, which is evidently less difference (with 0.0005) than if you added 5 and 1.0001, which would be 6.0001, which has a difference of 1.0001. When put on a graph, you can see that multiplication has the least difference when used this way. However, this only works when used in specific ways.
      (2 votes)
  • blobby green style avatar for user Tarou Yamamoto
    About Exponents with fractions
    The exponent 4 is outside the parentheses. So we are raising the entire fraction to the power of 3.←I think not 3 but 4.Is this right??
    (2 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user Gary Penna
    Regarding an operation that change a number more slowly than addition; if exponents grow a number faster than multiplication and addition, might taking roots change a number slower than addition?
    (2 votes)
    Default Khan Academy avatar avatar for user
  • starky sapling style avatar for user JiaYuan13
    Why is the question so hard for me?
    (2 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user omarsherazam
    what is 9+6 to the power of two minas 2.8
    (2 votes)
    Default Khan Academy avatar avatar for user
  • mr pants pink style avatar for user s9107483
    What is the most difficult exponential problem?
    (1 vote)
    Default Khan Academy avatar avatar for user
  • aqualine ultimate style avatar for user Colten J.
    For something faster than powers is the ! mark. I'm actually not kidding. Here is an example. 3!= 3x2x1, which is 6. 6!= 6x5x4x3x2x1, which is 720. now 720! on a calculator is just infinity. That's how powerful it is.
    (1 vote)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user Fatima
    how do u do this
    (1 vote)
    Default Khan Academy avatar avatar for user
    • stelly blue style avatar for user maylay
      If you're wondering about the order of operations, than you have to remember G.E.M/D.A/S to remember the orders. First, (G)roupings (which could be parenthesis, brackets or anything of that sort). Then, it's (E)xponents (the mini numbers on top righthand corner of the numbers, like 5³, which makes you do 5 ∘ 5 ∘ 5). Next, it's (M)ultiplication or (D)ivision (I recommend doing whichever is first). Lastly, it's (A)ddition or (S)ubtraction (I recommend doing whichever is first). Hope this helped.
      (3 votes)