Skip to content
Tips & Advice

GEMDAS: Order of Operations, Worked Examples

By SchoolFinderPH TeamAugust 16, 202611 min read
GEMDAS: Order of Operations, Worked Examples

TL;DR: GEMDAS stands for Grouping symbols, Exponents, Multiplication and Division, Addition and Subtraction, and it is the same rule the rest of the world calls PEMDAS or BODMAS. Philippine schools teach it in stages: MDAS in Grade 4, GMDAS or PMDAS in Grade 5, and GEMDAS by the end of Grade 6 once exponents appear, with Grade 7 applying it to integers. The acronym hides two rules that cause most errors: multiplication and division are one step done left to right, and addition and subtraction are one step done left to right. Grouping covers more than round brackets, including the fraction bar, the radical sign and absolute value bars.

If you searched for GEMDAS examples with answers, what follows is eleven of them, each solved line by line with the reason for every step, plus a table of the wrong answers these expressions usually produce and why. For the wider subject this sits in, see our DepEd mathematics curriculum guide.

GEMDAS, PEMDAS, BODMAS: Same Rule, Different Names

The order of operations is a convention, an agreement that everyone reads the same string of symbols the same way. Different countries built different mnemonics for it, and none of them describes a different mathematics.

AcronymWhere it is commonFirst letters stand for
GEMDASPhilippinesGrouping symbols, Exponents
PEMDASUnited StatesParentheses, Exponents
BODMASUnited Kingdom and much of the CommonwealthBrackets, Orders
BIDMASUnited Kingdom, alternative formBrackets, Indices
BEDMASCanadaBrackets, Exponents

The last four letters are identical in all of them: Multiplication and Division, then Addition and Subtraction. So a Filipino learner reading a British worksheet and a British learner reading a Filipino one will get the same answers.

The reason for preferring G over P is practical. Parentheses are only one grouping device, and learners who memorise "parentheses first" often do not recognise that a fraction bar or a square root sign groups too.

Grouping symbolExampleWhat it groups
Parentheses(4 + 2)Everything between them
Brackets and braces[ ] and { }Usually used to nest around parentheses
Fraction bar (vinculum)the bar in a fractionThe whole numerator and the whole denominator, separately
Radical signthe square root symbolEverything under the bar
Absolute value bars| |Everything between them

How Philippine Schools Introduce It, Grade by Grade

The MATATAG mathematics curriculum builds the rule in stages rather than teaching the whole acronym at once, which is why a Grade 4 learner and a Grade 7 learner will name it differently and both be right.

LevelWhat the curriculum expectsName used
Grade 4Perform two or more different operations on whole numbersMDAS rules
Grade 5Simplify a series of operations on whole numbers involving more than two operations, now with grouping symbolsPMDAS or GMDAS rule
End of Grade 6Exponential form, including calculation using the rulesGEMDAS rules
Grade 7Simplify numerical expressions involving integers using number properties and the order of operationsGEMDAS

The E only appears once exponents do. That is the whole reason a Grade 5 worksheet says GMDAS and a Grade 7 worksheet says GEMDAS. For the phased rollout of this curriculum, see our MATATAG curriculum guide.

The Two Rules the Acronym Hides

Rule 1: multiplication and division are one step, worked left to right. The M sitting before the D in the acronym is an accident of spelling, not a ranking.

Rule 2: addition and subtraction are one step, worked left to right. Same reason.

Almost every wrong answer in the next section comes from ignoring one of these two.

Eleven Worked Examples

Example 1: MDAS with no grouping

8 + 6 × 3 − 4 ÷ 2

  • Multiplication and division first, left to right: 6 × 3 = 18, then 4 ÷ 2 = 2
  • The expression becomes: 8 + 18 − 2
  • Addition and subtraction, left to right: 8 + 18 = 26, then 26 − 2 = 24

Answer: 24. Working strictly left to right instead would give 42 at the first step and a wrong final answer.

Example 2: division before multiplication

24 ÷ 4 × 2

  • Equal rank, so left to right: 24 ÷ 4 = 6
  • Then 6 × 2 = 12

Answer: 12. Doing the multiplication first gives 24 ÷ 8 = 3, which is the classic error.

Example 3: subtraction before addition

20 − 8 + 5

  • Equal rank, so left to right: 20 − 8 = 12
  • Then 12 + 5 = 17

Answer: 17. Doing the addition first gives 20 − 13 = 7, which is wrong for the same reason as Example 2.

Example 4: GMDAS with two groupings

5 × (12 − 8) + 36 ÷ (2 + 4)

  • Grouping first, both of them: 12 − 8 = 4 and 2 + 4 = 6
  • The expression becomes: 5 × 4 + 36 ÷ 6
  • Multiplication and division, left to right: 5 × 4 = 20, then 36 ÷ 6 = 6
  • Addition: 20 + 6 = 26

Answer: 26.

Example 5: nested grouping

3 × [18 − (4 + 2 × 3)] + 10

  • Innermost grouping first, and the order of operations applies inside it too: 2 × 3 = 6, then 4 + 6 = 10
  • The expression becomes: 3 × [18 − 10] + 10
  • Remaining grouping: 18 − 10 = 8
  • Multiplication: 3 × 8 = 24
  • Addition: 24 + 10 = 34

Answer: 34. Note the step people skip: inside a bracket you do not simply work left to right, you apply the whole rule again.

Example 6: GEMDAS with an exponent

4 + 3 × 2³ − 10 ÷ 5

  • Exponent first: 2³ = 8
  • The expression becomes: 4 + 3 × 8 − 10 ÷ 5
  • Multiplication and division, left to right: 3 × 8 = 24, then 10 ÷ 5 = 2
  • Addition and subtraction, left to right: 4 + 24 = 28, then 28 − 2 = 26

Answer: 26.

Example 7: an exponent applied to a group

(6 − 2)² ÷ 8 + 7

  • Grouping first: 6 − 2 = 4
  • The expression becomes: 4² ÷ 8 + 7
  • Exponent: 4² = 16
  • Division: 16 ÷ 8 = 2
  • Addition: 2 + 7 = 9

Answer: 9. Squaring before subtracting would give 36 − 4, a different expression entirely.

Example 8: the fraction bar as a grouping symbol

(15 + 9) over (2 × 3), written as a single fraction

  • The bar groups the numerator and the denominator separately, so both are finished first: 15 + 9 = 24 and 2 × 3 = 6
  • Then divide: 24 ÷ 6 = 4

Answer: 4. If you rewrite a fraction on one line, you must add brackets, because 15 + 9 ÷ 2 × 3 is a different expression with a different value.

Example 9: GEMDAS with integers

−5 + 3 × (−4) − (−6) ÷ 2

  • Multiplication and division, left to right: 3 × (−4) = −12, then (−6) ÷ 2 = −3
  • The expression becomes: −5 + (−12) − (−3)
  • Addition and subtraction, left to right: −5 + (−12) = −17, then −17 − (−3) = −17 + 3 = −14

Answer: −14. Subtracting a negative is the step that trips learners here, not the ordering.

Example 10: where the negative sign sits

−3² compared with (−3)²

  • In −3², the exponent attaches to the 3 only, so this reads as the negative of 3 squared: 3² = 9, and the answer is −9
  • In (−3)², the grouping symbols make the negative number itself the base: (−3) × (−3) = 9

Answers: −9 and 9. Same digits, different values, and the only difference is a pair of brackets.

Example 11: a word problem

A class buys 4 boxes of 12 pencils, sets aside 15 pencils for a contest, and shares the rest equally among 3 groups. How many does each group get?

  • Write the expression, using grouping to show what must happen first: (4 × 12 − 15) ÷ 3
  • Inside the grouping, multiplication before subtraction: 4 × 12 = 48, then 48 − 15 = 33
  • Division: 33 ÷ 3 = 11

Answer: 11 pencils per group. The grouping symbols are doing real work here: without them, 4 × 12 − 15 ÷ 3 means something the problem never said.

The Expression Everyone Argues About

6 ÷ 2(1 + 2)

Under the GEMDAS convention taught in Philippine schools:

  • Grouping first: 1 + 2 = 3, giving 6 ÷ 2(3)
  • The number written against a bracket means multiplication, so this is 6 ÷ 2 × 3
  • Multiplication and division are equal rank, worked left to right: 6 ÷ 2 = 3, then 3 × 3 = 9

Answer under GEMDAS: 9.

The reason this circulates online is that a different convention exists. In some scientific and typesetting practice, multiplication written without a symbol, as in 2(3), is treated as binding more tightly than division, which turns the expression into 6 ÷ 6 and gives 1. Neither side is doing arithmetic wrong; they are reading the same marks under different notation rules. The professional response is that the expression is badly written, and the fix is a bracket: write either (6 ÷ 2)(1 + 2) or 6 ÷ [2(1 + 2)] and the argument disappears. Take the 9 for a Philippine classroom answer, and never write an expression like this yourself.

Wrong Answers and Where They Come From

ExpressionCommon wrong answerThe mistakeCorrect
24 ÷ 4 × 23Multiplied first because M precedes D in the acronym12
20 − 8 + 57Added first because A precedes S in the acronym17
8 + 6 × 342Worked strictly left to right, ignoring rank26
2 + 3 × 4²400Worked left to right and applied the exponent last50
−3²9Attached the exponent to the negative sign−9
6 ÷ 2(1 + 2)1Treated 2(3) as a single grouped quantity9 under GEMDAS

The fourth row worked in full: 4² = 16 first, then 3 × 16 = 48, then 2 + 48 = 50. The wrong answer of 400 comes from adding, multiplying and squaring in written order instead of by rank.

A Checking Routine That Catches Errors

  1. Rewrite the entire expression on a new line after every step. Most errors are copying errors, not reasoning errors, and this is the only habit that catches them.
  2. Do one rank per line. All the grouping, then all the exponents, then all the multiplication and division together, then all the addition and subtraction together.
  3. Remove a bracket only when what is inside it is a single number. A half-simplified bracket carried forward is a guaranteed error.
  4. Read left to right within a rank, out loud if necessary. Say "divide first because it comes first".
  5. Estimate before you finish. If 8 + 6 × 3 − 4 ÷ 2 is around 24, an answer of 42 should feel wrong before you check it.
  6. Add brackets to your own work. Nothing in the rules stops you writing (6 × 3) instead of 6 × 3. Redundant brackets cost nothing and prevent misreading.

Why the Rule Exists at All

The order of operations is not a discovered fact about numbers. It is a shared agreement that lets one written expression mean one thing to every reader, in the same way that spelling conventions let one written word mean one thing. That has a useful consequence for learners: grouping symbols always outrank convention. If you are unsure how an expression will be read, add brackets and the ambiguity is gone. For where this fits in the wider programme, see our K to 12 curriculum guide.

Disclaimer: curriculum competencies and their grade placement are set by DepEd and revised from time to time, and the MATATAG curriculum is being rolled out in phases. Confirm what applies to your grade level with your teacher or against the official curriculum guide before relying on this for graded work.

Ready to find the right school? Browse schools or compare programmes, tuition and reviews across hundreds of Philippine schools on SchoolFinderPH.

Sources

Frequently Asked Questions

What does GEMDAS stand for?

Grouping symbols, Exponents, Multiplication and Division, Addition and Subtraction. Grouping covers parentheses, brackets and braces, and also the fraction bar, the radical sign and absolute value bars, all of which tell you to finish what is inside before doing anything else. Multiplication and division share one step, and addition and subtraction share one step.

Why do Philippine schools say GEMDAS instead of PEMDAS?

Because G for grouping is broader than P for parentheses. Round brackets are only one of several grouping devices, and a rule that names only parentheses does not obviously cover a fraction bar or a square root sign. GEMDAS, PEMDAS, BODMAS and BEDMAS all describe the same order; they differ only in which words their first two letters use.

What is the difference between MDAS, GMDAS and GEMDAS?

They are the same rule taught in stages. MDAS is the version for learners who have met only the four operations, and it appears in the Grade 4 mathematics competencies. GMDAS or PMDAS adds grouping symbols and is the Grade 5 version. GEMDAS adds exponents once exponential form is introduced, which the curriculum places by the end of Grade 6, and it is the form used from Grade 7 onward with integers.

Is multiplication always done before division?

No, and this is the most common error the acronym causes. Multiplication and division have equal rank and are performed from left to right in the order they appear. In 24 divided by 4 times 2, the division comes first because it is written first, giving 6 and then 12. Doing the multiplication first would give 3, which is wrong. Addition and subtraction work the same way.

Why is negative three squared equal to negative nine?

Because the exponent attaches to the 3, not to the minus sign, so the expression means the negative of three squared, which is negative nine. To square the negative number itself you need grouping symbols, and then the answer is positive nine. This is one of the clearest cases of grouping changing an answer rather than merely clarifying it.

Why do people disagree about six divided by two times one plus two?

Because the expression is written ambiguously. Under the GEMDAS convention taught in Philippine schools, you resolve the grouping to get three, then work left to right, giving nine. Some scientific and typesetting conventions treat multiplication written without a symbol as binding more tightly, which yields one. The disagreement is about notation, not arithmetic, and the fix is to add brackets so no convention is needed.

Does my calculator follow GEMDAS?

Scientific calculators do; many basic four-function calculators do not, and evaluate as you press. There is a two-second test: enter 2 plus 3 times 4 and press equals. A calculator that respects the order of operations returns 14. One that works strictly left to right returns 20. Know which one you are holding before an exam that allows calculators.