🟢 Beginner Level
Suitable for Grade 4–5 · Ages 9–11 · Whole numbers · 2–3 operations · No negatives

DMAS — Order of
Operations

DMAS is the rule that tells you exactly which mathematical operation to do first. Without it, the same expression can give different answers. By the end of this course you will solve any expression correctly — every time.

5Operations
25+Examples
3Graded exams
60Questions
Priority 1 — Do first (left to right)
D
Division
÷
M
Multiplication
×
→ then →
Priority 2 — Do after (left to right)
A
Addition
+
S
Subtraction
DMAS rule: Always do ÷ and × first (left to right), then + and − (left to right). Brackets ( ) override everything.
01

What is DMAS?

When an expression has more than one operation, DMAS tells you the exact order to follow. Get the order wrong and the answer is always wrong. DMAS is used in Arabic-speaking countries and corresponds to BODMAS / PEMDAS internationally.

Why we need DMAS
2 + 3 × 4 = ?

Without rules: left to right gives 5×4=20. With DMAS: 3×4=12 first, then 2+12=14. The answer is always 14.

Priority 1 (highest)
× and ÷

Multiplication and Division are always done before Addition and Subtraction. They have equal priority — resolve left to right.

Priority 2 (lowest)
+ and −

Addition and Subtraction come last. They also have equal priority — resolve left to right after all × and ÷ are done.

The left-to-right rule
12 ÷ 4 × 3 = 9 not 1

When two operations have equal priority, work left to right. 12÷4=3 first (leftmost), then 3×3=9. Never do 4×3 first.

BeginnerExample 1 — Prove why order matters: evaluate 10 − 2 × 3
Wrong (left to right): 10−2=8, then 8×3=24. This ignores DMAS.
1
DMAS says × before −. Find the multiplication: 2 × 3
2
Compute: 2 × 3 = 6
3
Now subtract: 10 − 6 = 4
Answer: 4
BeginnerExample 2 — Two operations: 5 + 15 ÷ 3
1
Division before addition: 15 ÷ 3 = 5
2
5 + 5 = 10
Answer: 10
MediumExample 3 — Three operations: 4 + 3 × 2 − 1
1
Find × first: 3 × 2 = 6
2
Expression becomes: 4 + 6 − 1
3
Left to right: 4 + 6 = 10
4
10 − 1 = 9
Answer: 9
🧠 Memory trick: Think of × and ÷ as strong operations and + and − as weak operations. Strong always goes before weak. When two strong (or two weak) operations meet, go left to right.
02

Division (D ÷) — The First Letter

The D in DMAS stands for Division. Division shares the top priority with Multiplication. When you see ÷ anywhere in an expression (with no brackets), it must be resolved before any + or −.

What division means
12 ÷ 4 = 3

Splitting into equal groups. 12 items split into 4 groups = 3 per group. The symbol ÷ and / both mean "divided by".

Division before + and −
6 + 10 ÷ 5 → 6 + 2 = 8

Always complete the division before touching any + or − sign in the expression.

Left to right with ×
8 ÷ 4 × 2 = 4 (not 1)

Do the leftmost ÷ or × first. 8÷4=2, then 2×2=4. If you did 4×2=8 first: 8÷8=1 — wrong!

Division by 1
any number ÷ 1 = itself

Dividing by 1 gives the same number. Useful shortcut when you spot it in an expression.

BeginnerExample 1 — Simple: 20 ÷ 4 + 3
1
Division first: 20 ÷ 4 = 5
2
Addition: 5 + 3 = 8
Answer: 8
BeginnerExample 2 — Before subtraction: 18 ÷ 3 − 2
1
18 ÷ 3 = 6
2
6 − 2 = 4
Answer: 4
BeginnerExample 3 — Left to right: 12 ÷ 4 × 3
1
Equal priority (÷ and ×) — go left to right. Leftmost is ÷: 12 ÷ 4 = 3
2
3 × 3 = 9
Answer: 9 (NOT 1)
MediumExample 4 — Mixed: 2 + 30 ÷ 5 − 3
1
Division first: 30 ÷ 5 = 6
2
Expression: 2 + 6 − 3
3
Left to right: 2 + 6 = 8, then 8 − 3 = 5
Answer: 5
03

Multiplication (A ×) — Second Letter

The A in DMAS stands for الضرب — Multiplication. It shares the top priority with Division. Multiplication must be done before any + or −.

Multiplication symbols
a × b = a · b = ab

All three mean the same thing. In algebra, placing letters together (3x) implies multiplication.

Always before + and −
3 + 4 × 2 = 3 + 8 = 11

Never add before multiplying. The multiplication 4×2 must happen first no matter where it appears.

Multiplying by 0
any × 0 = 0

Any number times 0 is always 0. Useful shortcut: if you see ×0 in an expression, that whole product becomes 0.

Two multiplications
2×3 + 4×5 → 6+20 = 26

When there are two separate multiplication groups, compute both first, then add/subtract the results.

BeginnerExample 1 — Classic DMAS: 2 + 3 × 4
1
Multiplication first: 3 × 4 = 12
2
2 + 12 = 14
Answer: 14 (not 20)
BeginnerExample 2 — Multiply by 0: 5 + 3 × 0
1
Multiplication: 3 × 0 = 0
2
5 + 0 = 5
Answer: 5
BeginnerExample 3 — Two multiplications: 3×4 + 2×5
1
Left to right, both ×: 3 × 4 = 12
2
2 × 5 = 10
3
Now add: 12 + 10 = 22
Answer: 22
MediumExample 4 — Full expression: 10 − 2 × 3 + 4
1
Multiplication first: 2 × 3 = 6
2
Expression: 10 − 6 + 4
3
Left to right: 10 − 6 = 4, then 4 + 4 = 8
Answer: 8
🧠 Hack — Circle the strong operations: Before solving, draw a circle around every × and ÷ in the expression. Solve all circled ones left to right, then solve what remains. This makes DMAS visual and eliminates errors.
04

Addition (M +) — Third Letter

The M stands for الجمع — Addition. Addition is a lower-priority operation. It is always performed after all × and ÷ have been resolved. Addition and Subtraction share equal priority.

Addition comes after × ÷
Never add before you multiply

No matter where the + sign appears in the expression, it must wait until all × and ÷ are done.

Commutative
a + b = b + a

You can add numbers in any order and get the same result: 3+5=5+3=8. This is the commutative property.

Adding zero
a + 0 = a

Adding 0 to any number gives the same number. Quick simplification when you spot +0.

Equal priority with −
Go left to right

When + and − appear together (after all × ÷ done), work strictly left to right. Never do all additions first.

BeginnerExample 1 — 4 × 3 + 2 × 5
1
Both multiplications first: 4×3=12 and 2×5=10
2
Addition: 12 + 10 = 22
Answer: 22
BeginnerExample 2 — Addition and subtraction together: 10 + 5 − 3
1
No × or ÷. Left to right: 10 + 5 = 15
2
15 − 3 = 12
Answer: 12
BeginnerExample 3 — Mistake to avoid: 8 + 4 − 2 × 3
Wrong: 8+4=12, 12−2=10, 10×3=30
1
Multiplication first: 2×3=6. Expression: 8+4−6
2
Left to right: 8+4=12, then 12−6=6
Answer: 6
05

Subtraction (S −) — Last Letter

The S stands for الطرح — Subtraction. It shares the lowest priority with Addition. After all × and ÷ are done, work through + and − from left to right.

NOT commutative
8 − 3 ≠ 3 − 8

Unlike addition, you cannot swap the numbers in a subtraction. 8−3=5 but 3−8=−5. Order always matters.

Left to right critical
10−3−2=5 (not 9)

10−3=7 first, then 7−2=5. If you did 3−2=1 first, then 10−1=9 — WRONG! Always left to right.

After all × ÷
Always last (with +)

Even if − appears first in the expression left to right, if a × or ÷ appears later, do those first.

Subtracting from left
2 − 10 = −8

At beginner level we mainly use positive results, but know that subtraction can give a negative number if the second number is larger.

BeginnerExample 1 — Left to right: 10 − 3 − 2
1
No × or ÷. Left to right: 10 − 3 = 7
2
7 − 2 = 5
Answer: 5 (NOT 9)
BeginnerExample 2 — Multiplication then subtraction: 5 × 3 − 6
1
Multiplication: 5×3=15
2
15−6=9
Answer: 9
MediumExample 3 — Full: 15 − 2×4 + 12÷3 − 1
1
2×4=8 and 12÷3=4
2
Expression: 15−8+4−1
3
Left to right: 15−8=7, 7+4=11, 11−1=10
Answer: 10
06

Brackets ( ) — The Priority Override

Brackets are not a letter in DMAS, but they are the most important rule. Whatever is inside brackets is always evaluated first, using DMAS rules inside them. Brackets let you change the natural priority order.

Brackets override DMAS
(2 + 3) × 4 = 20

Without brackets: 2+3×4=14. With brackets: (2+3)=5 first, then 5×4=20. Brackets completely change the answer.

DMAS still applies inside
(3 + 2×4) → (3+8) = 11

Inside a bracket, DMAS still governs. 2×4=8 first (inside the bracket), then 3+8=11.

Multiple brackets
Solve each bracket, then continue

If two separate brackets exist: solve each one, then use the results in the rest of the expression.

Nested brackets
[ ( ) ] — innermost first

When brackets are inside other brackets, solve the innermost first, then work outward.

BeginnerExample 1 — Simple brackets: (3 + 5) × 2
1
Brackets first: (3 + 5) = 8
2
Multiplication: 8 × 2 = 16
Answer: 16
BeginnerExample 2 — Brackets with division: 20 ÷ (2 + 3)
1
Brackets: (2+3)=5
2
20÷5=4
Answer: 4
BeginnerExample 3 — Two brackets: (5+3)×(4−2)
1
Both brackets: (5+3)=8 and (4−2)=2
2
8×2=16
Answer: 16
MediumExample 4 — DMAS inside brackets: 3×(10−4×2)
1
Inside bracket, apply DMAS: 4×2=8 first
2
10−8=2. Bracket resolved.
3
3×2=6
Answer: 6
MediumExample 5 — Full: 2+(10−4)÷3×2−1
1
Brackets: (10−4)=6. Expression: 2+6÷3×2−1
2
Left to right ÷×: 6÷3=2, then 2×2=4. Expression: 2+4−1
3
Left to right: 2+4=6, then 6−1=5
Answer: 5
🧠 Complete 4-step checklist for any expression:
1️⃣ Are there brackets? → Solve them first (innermost first)
2️⃣ Are there × or ÷? → Solve left to right
3️⃣ Are there + or −? → Solve left to right
4️⃣ Write your final answer.
06

Practice Exams

Three exams — each 20 questions. Complete each exam before checking your score. Use the 💡 hint on any question if you get stuck.

0 / 20 answered
0 / 20 answered
0 / 20 answered