Order of operations calculator

Supports numbers, parentheses and + − × ÷ ^.

Your inputs

Input format

Use this format with your own values:

2 + 3 * (4 - 1)

Use the units shown.

Result
11

Your calculation
How is this calculated?

Supports numbers, parentheses and + − × ÷ ^. Uses a bounded mathematical parser, never JavaScript evaluation. Exponentiation is right-associative.

Try an example

Worked example

Result: 11

Inputs
  • Expression: 2 + 3 * (4 - 1)

Compare inputs

Result: 512

Inputs
  • Expression: 2^3^2
Share this page
Share this calculator

Leave unchecked to share the page without your entered values.