Skip to content

Stockertim Dictionary · Technology

Order of operations

Also called operator precedence, BODMAS, BIDMAS, PEMDAS

In short

The fixed order in which a formula is worked out: brackets, then powers, then multiplication and division, then addition and subtraction, left to right within each level.

  • Beginner
  • Concept
  • Checked

In detail

A formula with several operators is not read simply from left to right. Spreadsheets follow the convention taught in schools as BODMAS or BIDMAS: anything in brackets first, then powers (the ^ operator), then multiplication and division, then addition and subtraction. Within one level, the program works from left to right. So =10+20*3 gives 70, not 90, because the multiplication happens before the addition.

Spreadsheets add a few operators of their own to the list. In Excel the full order runs from reference operators such as the colon in a range, through negation, the per cent sign, powers, multiplication and division, addition and subtraction, then the ampersand that joins text, and finally comparisons such as = and >. One consequence surprises people: negation comes before powers, so =-2^2 returns 4 in Excel, whereas the usual mathematical reading gives minus 4.

Mistakes with precedence rarely produce an error message. A classic one is an average written as =A1+A2/2, which halves only the second value and adds it to the first. Another is a growth calculation such as =B2-A2/A2, which divides A2 by itself before subtracting and so returns B2 minus 1.

The remedy is brackets. They cost nothing, they force the intended order and they make the formula easier for the next reader to check. Writing =(A1+A2)/2 or =(B2-A2)/A2 removes the doubt entirely.

Worked example

A trainee at a printing firm wants the average of two monthly costs, 400 and 600.

  1. Written as 400 + 600 / 2, division comes first: 600 / 2 = 300, then 400 + 300 = 700
  2. Written as (400 + 600) / 2, brackets come first: 1,000 / 2 = 500

Only the bracketed version gives the true average of 500.

In practice

Reviewers of financial models look closely at formulas that mix addition with division or multiplication, especially percentage changes and averages, and add brackets wherever the intended order is not obvious at a glance.

Watch out

  • A percentage change needs brackets around the difference: (new - old) / old.
  • The spreadsheet rule for negation and powers differs from the classroom rule, so =-2^2 is 4 rather than minus 4.

Learn it properly

Official sources

Facts last checked on 9 November 2026.

Education, not advice: the Stockertim Dictionary explains what terms mean. It never recommends buying or selling anything.

English