Use this free PEMDAS calculator to type any arithmetic expression with parentheses and powers and get the correct order-of-operations answer instantly, every time.

Pemdas Calculator

Type the whole expression and let PEMDAS sort it out — parentheses, exponents, then multiply/divide, then add/subtract.

Free to use Full expressions Parentheses & powers Save PDF · PNG · Share

Enter your values

Fill in the fields below — the result appears with every step shown.

Shown on the printed, PDF and PNG copies of your result. Leave blank to stay anonymous.

Enter a valid value for arithmetic expression.

Use + - * / ^ and parentheses, e.g. (3 + 4) * 2 ^ 2. Multiplication can be written x too.

Local browser calculation

Review your inputs and the tool’s supported scope before using the result.

Calculator loading… If this message stays, this view is not running the calculator's script — open this file in a full browser tab, then press Calculate.

Your result will appear here

Enter your values above, then press Calculate — or press Enter in any field.
TinyExe Pemdas Calculator tinyexe.comFree online calculators

TinyExe · Pemdas Result

Calculated locally in your browser

Calculated on
—

–
—

Name

—

Arithmetic expression

—

Input 2

—

Result

—

How this was calculated

    What to do next

      TinyExe · tinyexe.com — Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.

      Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      Embed this tool

      Add this Pemdas Calculator to your own page — copy the code below and paste it where you want the tool to appear.

      The embed loads the live calculator in a frame, so it stays up to date automatically. Choose a width, check the code, then copy it. When you publish on WordPress, keep the src pointing at your live tool URL.

      Works in WordPress (Custom HTML block), HTML pages, and most site builders.

      The short answer

      A PEMDAS calculator evaluates an arithmetic expression by doing parentheses first, then exponents, then multiplication and division left to right, then addition and subtraction left to right. That is why 3 + 4 x 2 equals 11, while the same numbers grouped as (3 + 4) x 2 equal 14.

      • PEMDAS = Parentheses, Exponents, Multiplication, Division, Addition, Subtraction
      • Multiplication and division share a level and run left to right; so do addition and subtraction
      • Parentheses always override the default order

      PEMDAS precedence levels

      Reference values for this calculator.

      LevelOperationsExample
      1Parentheses ( )(3 + 4) x 2 = 14
      2Exponents ^2^3 = 8
      3Multiply / Divide, left to right10 / 2 x 3 = 15
      4Add / Subtract, left to right9 - 4 + 2 = 7

      The formula

      The exact formula this calculator uses — every variable in it is explained in the card below.

      The formula

      PEMDAS: Parentheses -> Exponents -> Multiplication & Division (left to right) -> Addition & Subtraction (left to right)

      Enhancement: a real recursive-descent expression parser (parentheses, powers, unary minus) that enforces PEMDAS precedence exactly, instead of the old two-number arithmetic kernel that could not evaluate an expression at all.

      Worked examples

      Worked examples with the full working shown — try them in the calculator to check.

      Example 1

      The classic trap

      Expression: 3 + 4 * 2

      CalculationSteps
      No parentheses or exponents. Multiplication first: 4 x 2 = 8. Then addition: 3 + 8 = 11.3 + 4 x 2 = 11 — adding first to get 14 breaks PEMDAS.

      Result

      Example 2

      Parentheses flip the answer

      Expression: (3 + 4) * 2

      CalculationSteps
      Parentheses first: 3 + 4 = 7. Then multiplication: 7 x 2 = 14.(3 + 4) x 2 = 14 — same numbers, different grouping, different answer.

      Result

      Example 3

      Powers and division together

      Expression: 2 ^ 3 + 10 / 4

      CalculationSteps
      Exponent first: 2^3 = 8. Division: 10 / 4 = 2.5. Addition: 8 + 2.5 = 10.5.2^3 + 10/4 = 10.5.

      Result

      How to use this calculator

      Step 1

      Type the full expression, using parentheses wherever grouping matters.

      Step 2

      Use ^ for powers, and * or x for multiplication.

      Step 3

      Press calculate — the parser applies parentheses, then exponents, then multiplication/division, then addition/subtraction.

      Step 4

      Read the result and compare it with the same expression typed differently to see how precedence changes answers.

      Step 5

      If you get an error, check for a missing closing parenthesis or a stray character.

      In short: PEMDAS is the conventional order in which the operations in an arithmetic expression must be performed so that everyone gets the same answer.

      Frequently asked questions

      Why is 3 + 4 x 2 equal to 11 and not 14?

      Because multiplication is done before addition in PEMDAS. 4 x 2 = 8 first, then 3 + 8 = 11. To get 14 you must write (3 + 4) x 2, forcing the addition inside parentheses to happen first.

      Do multiplication and division have equal priority?

      Yes — they are done left to right as they appear. 10 / 2 x 3 means (10 / 2) x 3 = 15, not 10 / (2 x 3). The same applies to addition and subtraction.

      What does PEMDAS stand for?

      Parentheses, Exponents, Multiplication, Division, Addition, Subtraction — the standard order of operations taught in US schools. The UK/Australia equivalent acronym is BODMAS/BIDMAS, with Brackets and Indices/Orders.

      Can it handle negative numbers and decimals?

      Yes. Unary minus is supported, so -3 + 5 and 2 * -4 both work, as do decimals like 1.5 ^ 2.

      What expressions are not supported?

      No variables, functions or factorials — this tool is purely arithmetic order of operations. For sin, log, square roots and factorials, use the Web Scientific 2.0 Calculator.

      About this calculator

      A PEMDAS calculator evaluates a complete arithmetic expression — not just two numbers — by applying the standard order of operations: parentheses first, then exponents, then multiplication and division from left to right, and finally addition and subtraction from left to right. You type the expression exactly as it appears in a textbook or worksheet and get the single answer that the convention produces.

      Order of operations exists because arithmetic notation is ambiguous without it. The string 3 + 4 x 2 has two plausible readings, and mathematics resolved the ambiguity by convention: multiplication binds tighter than addition. PEMDAS is that convention, memorised in US classrooms with phrases like 'Please Excuse My Dear Aunt Sally'.

      Two subtleties cause most wrong answers. First, multiplication and division are equals — whichever appears first from the left goes first, so 10 / 2 x 3 is 15. Second, exponents apply before a leading minus in strict convention (-2^2 is read as -(2^2) = -4 on many calculators), while parentheses remove all doubt. This parser follows the standard rules and treats a minus sign in front of a number or parenthesis as negation of that term.

      This calculator uses a recursive-descent parser: it reads the expression in layers — sums of terms, terms of factors, factors of atoms — which is exactly the PEMDAS hierarchy expressed as code. That structure is why it cannot accidentally do the addition first: an addition is only ever combined after both of its neighbouring terms have been fully multiplied out.

      Use it for homework checks, for settling arguments about viral maths puzzles on social media, for verifying a spreadsheet formula you typed by hand, or any time an expression mixes operations and you do not want to track precedence in your head.

      How to calculate it yourself

      Step 1

      Look for parentheses and evaluate the innermost group first.

      Step 2

      Evaluate every exponent (power).

      Step 3

      Scan left to right doing all multiplications and divisions in the order they appear.

      Step 4

      Scan left to right again doing all additions and subtractions.

      Step 5

      Check the result by re-reading the expression — if you intended a different grouping, add parentheses and rerun.

      Real-life examples

      Settling a viral puzzle

      A social media post claims 8 / 2(2 + 2) is both 1 and 16, and a family chat is divided. Typed into this calculator as 8/2*(2+2), the parser does the parentheses (4), then works left to right: 8 / 2 = 4, then 4 x 4 = 16.

      Following PEMDAS strictly, 8/2 x (2+2) = 16. The '1' answer comes from an older convention about implied multiplication — the calculator shows which convention it used, so the argument becomes about notation, not arithmetic.

      Result: 16 under the standard modern PEMDAS reading, with the ambiguity explained rather than hidden.

      Checking a worksheet before marking

      A teacher prepares an answer key for the problem 18 - 6 / 3 + 2 x 5 and wants to be certain before printing it.

      Division and multiplication first: 6 / 3 = 2 and 2 x 5 = 10. Then left to right: 18 - 2 + 10 = 26.

      Answer key confirmed: 26 — no student will be marked wrong for the teacher's precedence slip.

      Ideas & use cases

      • Test your own precedence instincts: predict the answer to 5 + 5 x 5 before running it, then try to write the parentheses that produce the answer you first guessed.
      • Turn a word problem into one expression: write a shopping total like 2 x 3.50 + 4 x 1.25 as a single line and let the parser total it.
      • Compare conventions: run an expression here and on a basic four-function phone calculator (which often works left to right with no precedence) and see where they disagree.

      Limitations & sources

      • Arithmetic only: no variables, functions, factorials or fractions-as-objects (type 3/4 for three quarters). Division by zero and malformed expressions return an error rather than a guess.

      Sources: Order of operations convention: PEMDAS as taught in US curricula (Common Core 5.OA/6.EE); parser structure after standard recursive-descent expression evaluation

      Pemdas Calculator · TinyExe calculator suite Free to use · No sign-up · Instant results