Math Atlas

연산 순서Order of Operations

Pre-AlgebraPre-Algebra · 1. 정수와 연산 순서1. Integers & Order of Operations

학습 목표
  • 계산 순서를 약속해야 하는 이유와, 그 약속이 자연스러운 이유를 설명할 수 있다.
  • 괄호 → 거듭제곱 → 곱셈·나눗셈 → 덧셈·뺄셈 순서로 식의 값을 구할 수 있다.
  • 같은 계급의 연산(곱셈·나눗셈, 덧셈·뺄셈)을 왼쪽부터 처리한다.
  • 분수 막대가 숨은 괄호라는 것을 알고 바르게 계산한다.

한 식, 두 답?

3+4×23 + 4 \times 2를 두 사람이 계산한다. 한 사람은 곱셈부터 해서 3+8=113 + 8 = 11, 다른 사람은 앞에서부터 읽어 7×2=147 \times 2 = 14. 같은 식에서 답이 두 개 나왔다.

수학 식은 전 세계가 함께 쓰는 문장이다. 같은 식을 읽는 사람마다 값이 달라진다면 식은 아무것도 전달하지 못한다. 그래서 읽는 순서를 약속해 두었고, 그 약속에 따르면 옳은 값은 1111이다.

이 약속은 아무렇게나 정한 것이 아니다. 4×24 \times 2는 "2를 4번 더한 것", 즉 2+2+2+22 + 2 + 2 + 2를 줄여 쓴 덩어리다. 덩어리를 먼저 하나의 수로 뭉쳐야 바깥의 덧셈이 말이 된다.

3 + 4 × 2 = 3 + 8 = 11 3 + 4 × 2 = 8
3 + 4 × 2는 점 3개에 2개들이 묶음 4개를 더한 것이므로 11이다.

점 3개에 "2개들이 묶음" 4개를 합치면 3+8=113 + 8 = 11개다. 곱셈이 덧셈보다 먼저인 이유는 한마디로 곱셈이 덧셈의 묶음이기 때문이다.

순서 사다리

정의연산 순서
  1. 괄호 안을 가장 먼저 계산한다.
  2. 거듭제곱을 계산한다.
  3. 곱셈과 나눗셈을 왼쪽에서 오른쪽으로 계산한다.
  4. 덧셈과 뺄셈을 왼쪽에서 오른쪽으로 계산한다.
먼저 나중에 1 괄호 안 2 거듭제곱 3 곱셈 · 나눗셈 (왼쪽에서 오른쪽으로) 4 덧셈 · 뺄셈 (왼쪽에서 오른쪽으로)
연산 순서 사다리: 괄호, 거듭제곱, 곱셈·나눗셈, 덧셈·뺄셈 순서.

2번의 거듭제곱은 같은 수를 거듭 곱한 것을 줄여 쓰는 표기다:

23=2×2×2=8.2^3 = 2 \times 2 \times 2 = 8.

곱해지는 수 22를 밑, 곱한 횟수 33을 지수라고 부른다. 거듭제곱이 곱셈보다 먼저인 이유도 아까와 같다 — 거듭제곱은 곱셈의 묶음이니까. 거듭제곱은 4단원에서 본격적으로 다루고, 이 차시에서는 이 표기만 쓴다.

주의

232^32×3=62 \times 3 = 6이 아니다. 22세 번 곱한 88이다. 처음 이 표기를 만나면 십중팔구 한 번은 하는 실수이니, 지금 확실히 갈라 두자.

예제 1 · 기본 순서

7+20÷47 + 20 \div 4의 값을 구하여라.

풀이. 나눗셈이 덧셈보다 먼저다.

7+20÷4=7+5=12.7 + 20 \div 4 = 7 + 5 = 12.

앞에서부터 읽어 27÷427 \div 4를 먼저 하면 안 된다 — 나눗셈은 덧셈보다 높은 계급이다.

같은 계급은 왼쪽부터 — 함정 주의

순서 사다리에서 곱셈과 나눗셈은 같은 계급이다. 곱셈이 나눗셈보다 먼저가 아니다. 같은 계급끼리 만나면 왼쪽에서 오른쪽으로 처리한다. 덧셈과 뺄셈도 마찬가지다.

예제 2 · 같은 계급 두 연산

8÷4×28 \div 4 \times 2103+210 - 3 + 2의 값을 각각 구하여라.

풀이. 둘 다 왼쪽부터.

8÷4×2=2×2=48 \div 4 \times 2 = 2 \times 2 = 4

곱셈을 먼저 해서 8÷8=18 \div 8 = 1로 만들면 틀린다. 나눗셈이 왼쪽에 있으므로 나눗셈이 먼저다.

103+2=7+2=910 - 3 + 2 = 7 + 2 = 9

덧셈을 먼저 해서 105=510 - 5 = 5로 만들면 역시 틀린다.

검산: 8÷4×28 \div 4 \times 2는 "8을 4명이 나눠 가진 뒤 각자 2배로 불린" 상황으로 읽으면 44가 자연스럽다 ✓. 103+210 - 3 + 2는 "10에서 3을 빼고 2를 돌려받은" 것이니 99 ✓.

참고

연산 순서를 영어로는 머리글자를 따서 PEMDAS(Parentheses, Exponents, Multiplication, Division, Addition, Subtraction)라고 외우기도 한다. 편리한 암기법이지만 함정이 있다 — 글자가 M, D 순서라고 곱셈을 나눗셈보다 먼저 하는 게 아니다. M과 D는 한 계급, A와 S도 한 계급이고, 같은 계급은 왼쪽부터다. 예제 2가 바로 그 함정을 밟아 본 것이다.

괄호: 순서를 바꾸는 도구

정해진 순서와 다르게 계산하고 싶을 때 쓰는 것이 괄호다. 괄호는 "여기부터 먼저"라는 표시다. 아까 틀린 답이던 1414도, 괄호를 쓰면 어엿한 옳은 값이 된다:

(3+4)×2=7×2=14.(3 + 4) \times 2 = 7 \times 2 = 14.

괄호 안에 또 괄호가 필요하면 대괄호 [ ][\ ]를 겹쳐 쓰고, 안쪽부터 바깥쪽으로 푼다.

예제 3 · 겹친 괄호

2×[3+(104)÷2]2 \times [\,3 + (10 - 4) \div 2\,]의 값을 구하여라.

풀이. 가장 안쪽 괄호부터.

2×[3+(104)÷2]=2×[3+6÷2]=2×[3+3]=2×6=12.2 \times [\,3 + (10 - 4) \div 2\,] = 2 \times [\,3 + 6 \div 2\,] = 2 \times [\,3 + 3\,] = 2 \times 6 = 12.

대괄호 안에서도 순서 사다리는 그대로다 — 6÷26 \div 23+63 + 6보다 먼저다.

괄호가 눈에 보이지 않는데 괄호 역할을 하는 표기가 하나 있다. 분수 막대다.

1863=(186)÷3=12÷3=4.\frac{18 - 6}{3} = (18 - 6) \div 3 = 12 \div 3 = 4.

분수 막대는 위층 전체와 아래층 전체를 각각 묶는 숨은 괄호다. 186÷3=182=1618 - 6 \div 3 = 18 - 2 = 16으로 읽으면 완전히 다른 식이 된다.

예제 4 · 분수 막대와 거듭제곱

5212×6\dfrac{5^2 - 1}{2 \times 6}의 값을 구하여라.

풀이. 위층과 아래층을 각각 먼저 계산한다.

위층: 521=251=245^2 - 1 = 25 - 1 = 24. 아래층: 2×6=122 \times 6 = 12.

5212×6=2412=2.\frac{5^2 - 1}{2 \times 6} = \frac{24}{12} = 2.

검산: 2×12=242 \times 12 = 24로 나눗셈을 되돌려 보면 위층 값과 일치한다 ✓.

괄호 넣기 퍼즐

순서 규칙을 제대로 아는지 확인하는 좋은 놀이가 있다. 괄호를 넣어서 원하는 값을 만들어 보는 것이다.

예제 5 · 괄호 한 쌍으로 15 만들기

3+5×213 + 5 \times 2 - 1에 괄호 한 쌍을 넣어 값이 1515가 되게 하여라.

풀이. 괄호 없이 계산하면 3+101=123 + 10 - 1 = 12다. 괄호를 넣을 수 있는 자리를 하나씩 시험한다.

  • (3+5)×21=8×21=161=15(3 + 5) \times 2 - 1 = 8 \times 2 - 1 = 16 - 1 = 15
  • 3+5×(21)=3+5×1=83 + 5 \times (2 - 1) = 3 + 5 \times 1 = 8
  • 3+(5×21)=3+9=123 + (5 \times 2 - 1) = 3 + 9 = 12 — 괄호가 있으나 없으나 같다

답은 (3+5)×21(3 + 5) \times 2 - 1이다. 셋째 줄처럼 어차피 먼저 계산될 부분을 묶은 괄호는 값을 바꾸지 못한다는 것도 눈여겨보자.

참고

괄호를 어디에 넣어도 값이 안 변하는 식도 있다. 2+3+42 + 3 + 4(2+3)+4(2 + 3) + 4로 읽어도 2+(3+4)2 + (3 + 4)로 읽어도 99다. 우연이 아니라 덧셈이 가진 성질인데, 어떤 연산이 이런 성질을 갖고 어떤 연산이 안 갖는지가 바로 다음 차시의 주제다.

Goals
  • Explain why a calculation order must be agreed on — and why the agreed order is a natural one.
  • Evaluate expressions in the order: parentheses → exponents → multiply/divide → add/subtract.
  • Handle same-rank operations (multiply · divide, add · subtract) from left to right.
  • Treat a fraction bar as hidden parentheses.

One expression, two answers?

Two students compute 3+4×23 + 4 \times 2. One multiplies first and gets 3+8=113 + 8 = 11; the other reads left to right and gets 7×2=147 \times 2 = 14. Same expression, two answers.

A mathematical expression is a sentence the whole world shares. If its value depended on who happened to be reading, it would communicate nothing. So there is an agreed reading order, and under that agreement the correct value is 1111.

The agreement isn't arbitrary. 4×24 \times 2 is shorthand for "add 2 four times" — it's 2+2+2+22 + 2 + 2 + 2, a bundle. You have to collapse the bundle into a single number before the outer addition means anything.

3 + 4 × 2 = 3 + 8 = 11 3 + 4 × 2 = 8
3 + 4 × 2 is 3 dots plus 4 bundles of 2, which makes 11.

Three dots plus four bundles-of-two makes 3+8=113 + 8 = 11 dots. In one sentence: multiplication goes before addition because multiplication is bundled addition.

The order ladder

DefinitionOrder of operations
  1. Work inside parentheses first.
  2. Evaluate exponents.
  3. Do multiplication and division, left to right.
  4. Do addition and subtraction, left to right.
first last 1 Inside parentheses 2 Exponents 3 Multiply · Divide (left to right) 4 Add · Subtract (left to right)
The order ladder: parentheses, exponents, multiply·divide, add·subtract.

Step 2 mentions exponents — shorthand for repeated multiplication:

23=2×2×2=8.2^3 = 2 \times 2 \times 2 = 8.

The repeated number 22 is the base and the count 33 is the exponent. Why do exponents outrank multiplication? Same reason as before: an exponent is bundled multiplication. Exponents get a full unit of their own (Unit 4); in this lesson we only use the notation.

Watch out

232^3 is not 2×3=62 \times 3 = 6. It's 22 multiplied three times: 88. Nearly everyone makes this slip once when the notation is new — settle it now.

Example 1 · The basic order

Evaluate 7+20÷47 + 20 \div 4.

Solution. Division outranks addition:

7+20÷4=7+5=12.7 + 20 \div 4 = 7 + 5 = 12.

Reading left to right and computing 27÷427 \div 4 first is wrong — division sits higher on the ladder than addition.

Same rank? Go left to right — mind the trap

On the ladder, multiplication and division share one rank. Multiplication does not come before division. When operations of the same rank meet, work left to right. The same goes for addition and subtraction.

Example 2 · Two operations of the same rank

Evaluate 8÷4×28 \div 4 \times 2 and 103+210 - 3 + 2.

Solution. Left to right, both times.

8÷4×2=2×2=48 \div 4 \times 2 = 2 \times 2 = 4

Multiplying first to get 8÷8=18 \div 8 = 1 is wrong: the division is on the left, so it goes first.

103+2=7+2=910 - 3 + 2 = 7 + 2 = 9

Adding first to get 105=510 - 5 = 5 is wrong for the same reason.

Check: read 8÷4×28 \div 4 \times 2 as "8 split among 4 people, then everyone doubles their share" — that's 44 ✓. Read 103+210 - 3 + 2 as "pay out 3 from 10, then get 2 back" — that's 99 ✓.

Note

English speakers often memorize the order as PEMDAS — Parentheses, Exponents, Multiplication, Division, Addition, Subtraction ("Please Excuse My Dear Aunt Sally"). Handy, but it hides a trap: the letters M-then-D do not mean multiplication before division. M and D are one rank, A and S are one rank, and ties are broken left to right. Example 2 is exactly the trap the acronym sets.

Parentheses: the order-changing tool

When you want a different order, you use parentheses — they mean "start here." Remember the wrong answer 1414 from the opening? With parentheses it becomes a perfectly correct value:

(3+4)×2=7×2=14.(3 + 4) \times 2 = 7 \times 2 = 14.

If you need grouping inside grouping, switch to square brackets [ ][\ ] and work from the inside out.

Example 3 · Nested grouping

Evaluate 2×[3+(104)÷2]2 \times [\,3 + (10 - 4) \div 2\,].

Solution. Innermost parentheses first:

2×[3+(104)÷2]=2×[3+6÷2]=2×[3+3]=2×6=12.2 \times [\,3 + (10 - 4) \div 2\,] = 2 \times [\,3 + 6 \div 2\,] = 2 \times [\,3 + 3\,] = 2 \times 6 = 12.

Inside the brackets the ladder still applies — 6÷26 \div 2 happens before 3+63 + 6.

One piece of notation acts like parentheses without showing any: the fraction bar.

1863=(186)÷3=12÷3=4.\frac{18 - 6}{3} = (18 - 6) \div 3 = 12 \div 3 = 4.

A fraction bar silently wraps the entire top and the entire bottom in parentheses. Reading it as 186÷3=182=1618 - 6 \div 3 = 18 - 2 = 16 turns it into a completely different expression.

Example 4 · Fraction bar with an exponent

Evaluate 5212×6\dfrac{5^2 - 1}{2 \times 6}.

Solution. Finish the top and the bottom separately first.

Top: 521=251=245^2 - 1 = 25 - 1 = 24. Bottom: 2×6=122 \times 6 = 12.

5212×6=2412=2.\frac{5^2 - 1}{2 \times 6} = \frac{24}{12} = 2.

Check: undo the division — 2×12=242 \times 12 = 24 matches the top ✓.

Parenthesis puzzles

Here's a good game for testing whether you really own the rules: insert parentheses to hit a target value.

Example 5 · Make 15 with one pair

Insert one pair of parentheses into 3+5×213 + 5 \times 2 - 1 so that the value is 1515.

Solution. Without parentheses the value is 3+101=123 + 10 - 1 = 12. Try the possible placements:

  • (3+5)×21=8×21=161=15(3 + 5) \times 2 - 1 = 8 \times 2 - 1 = 16 - 1 = 15
  • 3+5×(21)=3+5×1=83 + 5 \times (2 - 1) = 3 + 5 \times 1 = 8
  • 3+(5×21)=3+9=123 + (5 \times 2 - 1) = 3 + 9 = 12 — same as no parentheses at all

The answer is (3+5)×21(3 + 5) \times 2 - 1. Note the last line: parentheses around something that would have been computed first anyway change nothing.

Note

In some expressions, parentheses can't change the value no matter where you put them: 2+3+42 + 3 + 4 makes 99 whether you read it as (2+3)+4(2 + 3) + 4 or 2+(3+4)2 + (3 + 4). That's no accident — it's a property addition has. Which operations have this property, and which don't, is exactly what the next lesson is about.