In arithmetic and elementary algebra, certain rules are used for the order in which the operations in algebraic expressions are to be evaluated. These precedence rules (which are mere notational conventions, not mathematical facts) are also used in many programming languages and by most modern calculators. In computing the standard algebraic notation is known as infix notation. This article assumes the reader is familiar with addition, division, exponential powerss, multiplication, and subtraction.

## The standard order of operations:

Because of the order**P**arentheses,

**P**owers,

**M**ultiplication/

**D**ivision,

**A**ddition/

**S**ubtraction, the mnemonic "

**P**lease

**P**unch

**M**y

**D**ear

**A**unt

**S**ally" is sometimes used as an aid in learning this sequence.

**1.**Evaluate subexpressions contained within brackets, bars, or parentheses, starting with the innermost expressions.**2.**Evaluate powers; for iterated powers, start from the right:**3.**Evaluate multiplications and divisions, starting from the left:**4.**Evaluate additions and subtractions, starting from the left:

In the UK, the acronym **BODMAS** is used for **B**rackets, *raise to the power* **O**f, **D**ivision, **M**ultiplication, **A**ddition, **S**ubtraction.

### Example

- Given:
- Evaluate the innermost subexpression (7 + 1):
- Evalaute the subexpression within the remaining parenthesis (5 - 8):
- Evaluate the power of (-3)
^{2}: - Evaluate the multiplication 9*(-5):
- Evaluate the subtraction 3-(-45):
- Evaluate the addition 48+2: