Home » Math Theory » Operations of Numbers » Basic Order Of Operations (DMAS)

Basic Order Of Operations (DMAS)

Quick answer

DMAS stands for Division, Multiplication, Addition, Subtraction. Do × and ÷ first, working left to right, then + and −, working left to right. Division does not have to come before multiplication, or addition before subtraction: 2 + 3 × 5 = 17 and 18 − 6 + 2 = 14.

Reviewed by the Helping with Math Team · Updated 10 October 2026

Introduction

In simplifying mathematical expressions consisting of the same type of operation, we perform one operation at a time generally starting from the left towards the right. If an expression has more than one fundamental operation, you cannot perform operations in the order they appear. Some operations have to be performed before others, because each operation has its own precedence. Division and multiplication come first (left to right), then addition and subtraction (left to right). But when the expressions make use of brackets as well, we have a set of rules that defines the precedence of the operations. Let us learn the manner in which this rule is defined.

Let us understand this through an example.

Suppose we want to find the value of 2 + 3 × 5

There are two ways to find the value of the above expression.

In the first method, let us move from left to right, solving the expression in that order. This means, first we will find the sum of 2 and 3. We will get, 2 + 3 = 5.

Now we have 2 + 3 × 5 = 5 x 5

Now, we find the product of 5 with 5 to get the answer as 25. Therefore, we have,

2 + 3 × 5 = 25 ……………………………….. ( 1 )

Now, let us find the value of this expression through another method.

We will first find the value of 3 × 5 and add this product to 2. So, we get,

3 × 5 = 15 and 15 + 2 = 17

Hence, now we have,

2 + 3 × 5 = 17 ………………………… ( 2 )

From ( 1 ) and ( 2 ) we can see that both the results obtained are not the same. This validates the need for having precedence of operators so as to receive the same answer to the given algebraic expression. This precedence is known as the order of operations.

What is the Basic Order of Operations?

Order of operation can be defined as a standard procedure that guides you on which calculations to begin within an expression with several arithmetic operations. Without consistent order of operation, one can make big mistakes during computation. There are a number of rules that define the order of operations, depending upon the involvement of the operators, brackets exponents and other mathematical symbols for operations. This rule is known as DMAS, where

D stands for Division ( ÷ )

M stands for Multiplication ( x )

A stands for Addition ( + )

S stands for subtraction ( – )

Let us understand the rule in further detail.

What is DMAS?

DMAS (also written MDAS) is the basic order of operations. In other words, it defines the order in which operations on numbers are to be performed when an expression has two or more operations in an expression. So, we have the order of operations as –

DMAS order of operations chartD÷DivisionM×MultiplicationA+AdditionS−Subtraction1st: ÷ and ×2nd: + and −equal: left to rightequal: left to right
DMAS: first division and multiplication (equal priority, left to right), then addition and subtraction (equal priority, left to right).

Let us consider an example. Suppose we want to find the value of 3 + 5 × 2.

Here, we have two operators, namely ( x ) and ( + ). We know that in mathematics, we can perform operations between two numbers only in one go. If we have more than 2 numbers, the result from the first operation is used for performing the next operation. So, in the above example, there are two operations to be performed, ( 3 + 5 ) and ( 5 × 2 ). We need to decide, which one to start with. This is where the MDAS rule comes into play.

From this rule, we can see that Multiplication precedes addition. Therefore, we will perform the operation multiplication first. The result thus obtained will be added to 3. The steps involved in this process will be –

3 + 5 × 2

= 3 + 10

= 13

Hence, 3 + 5 × 2 = 13

Try it: pick an expression and press Next step. The highlighted part is worked out next, with the DMAS reason.

Let us consider another example.

Example

Simplify the following expression using the Order of Operations –

6 + 5 – 4 × 2

Solution

We have been given the expression 6 + 5 – 4 × 2

It is important to note that there are three operations involved. Based on the order of operations, multiplication takes precedence over addition and subtraction, so we multiply first. Then we add and subtract in order from left to right.

Therefore, we have,

6 + 5 – 4 × 2

= 6 + 5 – 8 ( Here we have solved 4 × 2 which has given us the result 8 )

Next, working left to right, we add 6 and 5 to get 11, then subtract 8. So, we have,

6 + 5 – 8 = 11 – 8 = 3

Hence, 6 + 5 – 4 × 2 = 3

Use of Brackets in Order of Operations

We have just learned about the precedence of fundamental operations of addition, subtraction, multiplication and division. Multiplication and division come first, left to right, then addition and subtraction, left to right. But sometimes we need one part of an expression to be worked out before the rest. For example, if we want the addition to be performed before a division or multiplication then we need to use a bracket.

Brackets are used to provide clarity in the order of operations, the order in which several operations should be done in a mathematical expression. Bracket indicates that the operations within it ought to be performed before the operations outside it. For example, the expression 24 ÷ 3 × 4 would generally be solved as –

24 ÷ 3 × 4

= 8 × 4 = 32

However, If we wish to multiply 3 and 4 first and then divide 24 by the resulting number we write the expression as

24 ÷ ( 3 × 4 )

Now, according to the order of operations, we will solve the brackets first to get,

24 ÷ ( 3 × 4 )

= 24 ÷ 12

= 2

In longer expressions we sometimes need brackets inside other brackets. Using different shapes of bracket makes this easier to read. The three most common types are:

Brackets Name

( ) Parentheses or round brackets

{ } Braces or Curly Brackets

[ ] Brackets or Square Brackets

It is important to note here that, the left part of each bracket symbol indicates the start of the bracket and the right part indicates the end of the bracket. In writing mathematical expressions consisting of more than one bracket, parenthesis is used in the innermost part followed by braces and these two are covered by square brackets.

Removal of Brackets

In order to simplify expressions involving more than one bracket, we will use the steps as explained below –

  1. See whether the given expression contains vinculum or not. If a vinculum is present, work out the part under it first; otherwise go to the next step. A vinculum is a horizontal line placed over an expression to show that everything below the line is one group, for example $\overline{2 \times 3}$.
  2. Now, look for the innermost bracket and perform operations within it.
  3. Remove the innermost bracket by using the following steps –
    1. If a bracket is preceded by a plus sign, remove it by writing its terms as they are.
    2. If a bracket is preceded by a minus sign, change every + sign inside it to − and every − sign to +.
    3. If there is no sign between a number and a grouping symbol then it means multiplication.
    4. If there is a number just before a bracket, multiply the value inside the bracket by that number.
  4. Look for the next innermost bracket and perform operations in it. Remove that bracket using the same rules. Continue this process till all the brackets are removed.

Let us understand the above steps using an example.

Example

Simplify: 37 – [ 5 + { 28 – ( 19 – 7 ) } ]

Solution

We have been given the expression, 37 – [ 5 + { 28 – ( 19 – 7 ) } ]

We will use the order of operations to solve the given expression.

First, we will remove the innermost bracket to get,

37 – [ 5 + { 28 – 12 } ] …………………… [ Removing the innermost bracket ( ) ]

Next, we will remove the curly braces to get

37 – [ 5 + 16 ] …………………………. [ Removing the curly braces ]

Now, we will remove the square brackets to get,

37 – 21 ………………………… [ removing the square brackets ]

Last, we will find the difference between 37 and 21 to get 16.

Hence 37 – [ 5 + { 28 – ( 19 – 7 ) } ] = 16.

How to Solve Expressions using Order of Operations?

Now, that we have understood what we mean by order of operations let us learn about the steps involved in solving mathematical expressions using order of operations. The steps involved are –

  1. Always start by calculating all expressions within parentheses

The first thing is that we should look for removing any grouping symbols in the algebraic expression. This means that at the top of the list, remember to always simplify everything inside the grouping symbols. Examples of grouping symbols are parentheses ( ), brackets, and braces { }. For nested grouping symbols, work it out from the inside and out.

  1. Simplify all the exponents such as square roots, squares, cube, and cube roots

After having removed the parenthesis, we come to the next step of solving all exponential values in the algebraic expression. Exponential expressions which may include squares and square roots, cube, and cube roots etc. are calculated or evaluated first before performing any of the four fundamental arithmetic operations, namely: addition, subtraction, multiplication, and division.

  1. Perform the multiplication and the division starting from left to right

Next, multiply and/or divide whichever comes first from left to right before performing addition and subtraction. This tells us that multiplication and division have a higher level of importance than addition and subtraction.

  1. Finally, do the addition and subtraction similarly, starting from left to right.

Let us understand it using an example.

Example Find the value of the expression 4 ( 10 + 15 ÷ 5 × 4 – 2 × 2 )

Solution We have been given the expression 4 ( 10 + 15 ÷ 5 × 4 – 2 × 2 ). We need to solve it using MDAS.

Since the expression contains brackets, we work inside the brackets first, using DMAS there.

Divide first: 15 ÷ 5 = 3, giving 4 ( 10 + 3 × 4 – 2 × 2 )

Next multiply, left to right: 3 × 4 = 12 and 2 × 2 = 4, giving 4 ( 10 + 12 – 4 )

Then add and subtract, left to right: 10 + 12 = 22, then 22 – 4 = 18, giving 4 ( 18 )

A number written next to a bracket means multiply: 4 × 18 = 72

Therefore, 4 ( 10 + 15 ÷ 5 × 4 – 2 × 2 )= 72

The steps used can be shown as

Steps for 4(10 + 15 ÷ 5 × 4 − 2 × 2)4(10 + 15 ÷ 5 × 4 − 2 × 2)Divide: 15 ÷ 5 = 3 (in brackets: × and ÷ first, left to right)4(10 + 3 × 4 − 2 × 2)Multiply: 3 × 4 = 12 (in brackets: × and ÷ first, left to right)4(10 + 12 − 2 × 2)Multiply: 2 × 2 = 4 (in brackets: × and ÷ first, left to right)4(10 + 12 − 4)Add: 10 + 12 = 22 (in brackets: + and − last, left to right)4(22 − 4)Subtract: 22 − 4 = 18 (in brackets: + and − last, left to right)4(18)Bracket done: 4(18) means 4 × 18 = 7272Answer
Each step does one operation (in orange): inside the brackets, ÷ and × first, then + and −, left to right; finally 4(18) = 4 × 18 = 72.

Real-Life Applications of Order of Operations

We have learned that in mathematics, the order of operations helps you find the correct value for an expression. However, it is not restricted to problems in mathematics. Order of operations matters in daily life, too. For example, you use a fixed order of activities to be performed for cooking a dish. Similarly, in chemical reactions, a certain order is to be followed to get the desired results. Coming back to mathematics, there are many everyday situations where we use DMAS.

Let us understand it through an example.

Example

John buys 2 shirts for £8.00 each. He also buys a pair of jeans for £ 20.00 that gets a £ 3.00 discount. How much does he pay in all?

Solution

We have been given that John buys 2 shirts for £8.00 each. He also buys a pair of jeans for £ 20.00 that gets a £ 3.00 discount. We need to find how much John pays for the shirts and the jeans. To find this, we must first place all the values in the form of an expression. We will get,

Price of 2 shirts + Price of the pair of jeans -Discount = Total cost paid by John

Hence,

Total cost paid by John = 2 × 8 + 20 – 3

Here we can see that there are three operations involved. Based on the order of operations, multiplication takes precedence over addition and subtraction, so we multiply first. Then we add and subtract in order from left to right. Therefore, we get,

Total cost paid by John = 16 + 20 – 3 = 36 – 3 = £ 33

Hence, the total cost paid by John for 2 shirts and a pair of jeans = £ 33

More practice: basic order of operations worksheets, order of operations worksheets and order of operations and grouping symbols 5th grade worksheets.

DMAS Rule FAQs

What is the DMAS rule?

DMAS gives the order for working out a calculation: Division and Multiplication first, then Addition and Subtraction. Within each pair, work from left to right.

What is the full form of DMAS?

D = Division, M = Multiplication, A = Addition, S = Subtraction.

Does division always come before multiplication in DMAS?

No. Division and multiplication have equal priority, so do whichever comes first from left to right: 24 ÷ 3 × 4 = 8 × 4 = 32, not 24 ÷ 12 = 2.

Does addition always come before subtraction?

No. They have equal priority, so go left to right: 18 − 6 + 2 = 12 + 2 = 14, not 18 − 8 = 10.

Are DMAS and MDAS the same?

Yes. Both mean × and ÷ before + and −, left to right. DMAS is the name used in Pakistan and India; MDAS is common in the Philippines. With brackets and powers it becomes BODMAS or PEMDAS.

What is 10 − 2 × 3 + 8 ÷ 4?

Multiply and divide first: 2 × 3 = 6 and 8 ÷ 4 = 2. Then left to right: 10 − 6 + 2 = 6.

Practise with worksheets

Link/Reference Us

We spend a lot of time researching and compiling the information on this site. If you find this useful in your research, please use the tool below to properly link to or reference Helping with Math as the source. We appreciate your support!

  • "Basic Order Of Operations (DMAS)". Helping with Math. Accessed on November 18, 2026. https://helpingwithmath.com/basic-order-of-operations-dmas/.

  • "Basic Order Of Operations (DMAS)". Helping with Math, https://helpingwithmath.com/basic-order-of-operations-dmas/. Accessed 18 November, 2026.

  • Basic Order Of Operations (DMAS). Helping with Math. Retrieved from https://helpingwithmath.com/basic-order-of-operations-dmas/.