Skip to content
MathAnvil

Order of Operations Calculator (PEMDAS)

Type an arithmetic expression and evaluate it with the correct order of operations (PEMDAS / BODMAS). Shows every step.

Expression
+ − × ÷ ^ ( )
Type an expression and press Solve.

About this calculator

Enter an expression using numbers, + − × ÷ ^ (power), and parentheses. The calculator follows PEMDAS: Parentheses first, then Exponents, then Multiplication and Division (left to right), then Addition and Subtraction (left to right). It evaluates with a safe parser — no code is executed.

Share:

How the order of operations works

PEMDAS (also taught as BODMAS) sets a fixed priority so every expression has one unambiguous value. First evaluate anything inside Parentheses, working from the innermost pair outward. Next resolve Exponents (powers). Then perform Multiplication and Division together, scanning left to right — neither outranks the other. Finally do Addition and Subtraction, again left to right. For example 2 + 3 × 4 = 14, not 20, because the multiplication happens before the addition. This calculator applies those rules with a safe parser and lists each binary operation in the order it is resolved.