Order of Operations (PEMDAS) Calculator
Type an expression with brackets, powers and fractions and see it solved one operation per step, exactly, with PEMDAS, BODMAS or BIDMAS wording.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Type the expression
Enter it in the box or use the symbol buttons for brackets, powers, × and ÷.
- 2Choose the wording
Pick PEMDAS, BODMAS or BIDMAS so the step names match your lessons.
- 3Set the convention
Decide whether implied multiplication such as 2(3) is treated like × or done first.
- 4Read the steps
Follow each highlighted operation and the rule used, down to the final answer.
- 5Practise
Use the Practice tab for generated questions with instant checking and worked solutions.
- 6Print or save
Print the working, save the problem, or print a worksheet with an answer key.
About this tool
This calculator works an arithmetic expression the way a teacher writes it on the board: one operation per line, with the part being worked highlighted, until a single number is left. It reads round, square and curly brackets, powers written with ^, the signs × ÷ + −, decimals and fractions such as 3/4, and implied multiplication such as 2(3 + 4). Every value is kept as an exact fraction, so 1/3 + 1/6 gives 1/2 rather than 0.4999. Each step names the rule that was used (brackets first, then powers, then multiplication and division from left to right, then addition and subtraction from left to right) in the wording your class uses: PEMDAS, BODMAS or BIDMAS. The answer is shown as a fraction, a mixed number and a decimal, with repeating digits in brackets. A switch handles the famous 8 ÷ 2(2 + 2) question both ways and tells you when an expression is ambiguous. There is also a practice mode with generated questions at three levels, a worksheet maker with an answer key, saved problems and a print view of the working.
Why the order matters
Without an agreed order, 3 + 4 × 2 could be 14 or 11. Mathematicians settled on a convention so that written expressions mean one thing: brackets group what must be done first, powers bind tighter than multiplication, and multiplication binds tighter than addition. Inside one level the work runs from left to right, which is why 6 ÷ 2 × 3 is 9 and 10 − 4 + 1 is 7. The letters in PEMDAS are a memory aid, not a strict sequence: M and D share a level, and so do A and S.
Powers and negative signs
Two details catch students out. A power applies only to the number or bracket directly in front of it, so −3^2 means −(3^2) = −9, while (−3)^2 = 9. Stacked powers are read from the top down: 2^3^2 is 2^9, which is 512, not 8^2. The calculator follows both rules and shows the step where the minus sign is applied.
The 8 ÷ 2(2 + 2) argument
Viral puzzles exploit implied multiplication. Under the usual school reading, 2(2 + 2) is an ordinary multiplication, so the division on its left is done first: 8 ÷ 2 = 4, then 4 × 4 = 16. Some older textbooks and some calculators treat a number written against a bracket as one tight unit, giving 8 ÷ 8 = 1. Choose the convention with the switch; when the two readings disagree the tool says so, which is the real lesson: write the expression with an extra pair of brackets or a clear fraction bar.
Worked example
For 8 ÷ 2(2 + 2) − 3^2 + 1/2 the steps are: 2 + 2 = 4 inside the brackets; 3^2 = 9; 8 ÷ 2 = 4; 4 × 4 = 16; 1 ÷ 2 = 1/2; 16 − 9 = 7; 7 + 1/2 = 15/2. The answer is 15/2, or 7 1/2, or 7.5.
Limits
The calculator handles arithmetic, not algebra with letters, roots, logarithms or trigonometry. Exponents must be whole numbers (positive or negative); a fractional power is a root and is not worked exactly here. Very large powers are refused rather than printed with hundreds of digits. It is a study aid and does not replace the method your teacher asks you to show.
Worked example
3 + 4 × 2 = 11; 8 ÷ 2(2 + 2) = 16 (implied multiplication like ×) or 1 (implied multiplication first); 1/2 + 1/3 = 5/6.
Quick facts
- Category: Study & Education
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: OpenStax Prealgebra 2e, 2.1 Use the Language of Algebra (order of operations)
Frequently asked questions
What does PEMDAS stand for?
Parentheses, Exponents, Multiplication and Division (left to right), Addition and Subtraction (left to right). BODMAS says Brackets, Orders, Division/Multiplication, Addition/Subtraction; BIDMAS uses Indices. They describe the same order.
Is multiplication always done before division?
No. Multiplication and division have equal rank and are done in the order they appear from left to right. So 12 ÷ 3 × 2 is 4 × 2 = 8, not 12 ÷ 6.
What is the answer to 8 ÷ 2(2 + 2)?
With the standard reading, where 2(2 + 2) is an ordinary multiplication, the answer is 16. If implied multiplication is done first, it is 1. The tool shows both and recommends rewriting the expression so it cannot be misread.
Why is −3^2 equal to −9?
The power belongs to the 3 only, and the minus sign is applied afterwards. To square negative three, write (−3)^2, which is 9.
Can I type fractions and decimals?
Yes. Type 3/4 or 0.75; both are worked as exact fractions. Use the Show numbers as switch to see the steps in fractions or in decimals, and the answer appears in all three forms.
How do I make a worksheet?
Open the Worksheets tab, choose a level and the number of questions, and press Print worksheet. A new set of questions is printed in two columns with an answer key and optional worked steps on a separate page.
