# Math question (order of operations)

**URL:** <https://boards.straightdope.com/t/math-question-order-of-operations/633453>\
**Category:** Factual Questions\
**Created:** [September 2, 2012, 5:06pm UTC](https://boards.straightdope.com/t/math-question-order-of-operations/633453 "2012-09-02T17:06:59Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![CookingWithGas](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cookingwithgas/32/485_2.png) [@CookingWithGas](https://boards.straightdope.com/u/CookingWithGas)\
**Post date:** [September 3, 2012, 3:10am UTC](https://boards.straightdope.com/t/math-question-order-of-operations/633453/21 "2012-09-03T03:10:38Z")

</div>

> [@Terr](#):
>
> The correct answer depends on which order of operations you adopt.

I could adopt any arbitrary order of operations I want but it would be useless for communication if nobody else used it. What order of operations that is actually used by anybody would yield an answer of 1?

---

<div class="post-metadata">

**Author:** ![Terr](https://avatars.discourse-cdn.com/v4/letter/t/839c29/32.png) [@Terr](https://boards.straightdope.com/u/Terr)\
**Post date:** [September 3, 2012, 3:11am UTC](https://boards.straightdope.com/t/math-question-order-of-operations/633453/22 "2012-09-03T03:11:20Z")

</div>

> [@CookingWithGas](#):
>
> I could adopt any arbitrary order of operations I want but it would be useless for communication if nobody else used it. What order of operations that is actually used by anybody would yield an answer of 1?

Left-to-right order.

---

<div class="post-metadata">

**Author:** ![DarrenS](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@DarrenS](https://boards.straightdope.com/u/DarrenS)\
**Post date:** [September 3, 2012, 6:19am UTC](https://boards.straightdope.com/t/math-question-order-of-operations/633453/23 "2012-09-03T06:19:17Z")

</div>

…which is the mode used by Calculator in Windows 7 in “Standard Mode”.

---

<div class="post-metadata">

**Author:** ![zwede](https://avatars.discourse-cdn.com/v4/letter/z/ac91a4/32.png) [@zwede](https://boards.straightdope.com/u/zwede)\
**Post date:** [September 3, 2012, 12:48pm UTC](https://boards.straightdope.com/t/math-question-order-of-operations/633453/24 "2012-09-03T12:48:47Z")

</div>

KCalc (Linux/KDE calculator) gives the answer 7 even in “simple mode”.

---

<div class="post-metadata">

**Author:** ![Enginerd](https://avatars.discourse-cdn.com/v4/letter/e/bcef8e/32.png) [@Enginerd](https://boards.straightdope.com/u/Enginerd)\
**Post date:** [September 3, 2012, 1:52pm UTC](https://boards.straightdope.com/t/math-question-order-of-operations/633453/25 "2012-09-03T13:52:43Z")

</div>

> [@Terr](#):
>
> Left-to-right order.

Who uses that?

---

<div class="post-metadata">

**Author:** ![Dervorin](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@Dervorin](https://boards.straightdope.com/u/Dervorin)\
**Post date:** [September 3, 2012, 2:29pm UTC](https://boards.straightdope.com/t/math-question-order-of-operations/633453/26 "2012-09-03T14:29:34Z")

</div>

> [@Chessic\_Sense](#):
>
> I’ve always wondered this about these threads: Are you guys just abbreviating for the Internet, or do you actually pronounce the word “Pedmas” in your head when you do math? I mean, was there actually a teacher somewhere in your lives that was like “Remember, kids, always follow pedmas when you work out arithmetic.”?
> 
> Because I of course learned O.o.O. in grade school, but until last years I’d never once heard of “PEDMAS” or “BODMAS” or any of these words.

It was actually taught to me as “BODMAS” as an acronym to remember, which was useful until it just became second nature. This was in the late 80s in India, so it’s possible that it’s just another colonial artefact that isn’t used anywhere else, but I’m pretty sure I’ve seen the word in some contemporary maths textbooks here in the UK. I will investigate if possible.

On Google, “BODMAS” returns about 220,000 results, against 17,000 for “BOMDAS” and 6,000 for “BIDMAS” so I suspect “BODMAS” is fairly common. For example: [Order of Operations - BODMAS](http://www.mathsisfun.com/operation-order-bodmas.html)

---

<div class="post-metadata">

**Author:** ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)\
**Post date:** [September 3, 2012, 4:02pm UTC](https://boards.straightdope.com/t/math-question-order-of-operations/633453/27 "2012-09-03T16:02:14Z")

</div>

> [@DarrenS](#):
>
> …which is the mode used by Calculator in Windows 7 in “Standard Mode”.

At least as far back as Windows 3.1, Windows calculator has had a “Standard Mode,” in which it behaves like a basic calculator and uses left-to-right order, and a “Scientific Mode,” in which it behaves like a scientific calculator and follows the rules for the algebraic order of operations.

---

<div class="post-metadata">

**Author:** ![Pasta](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pasta](https://boards.straightdope.com/u/Pasta)\
**Post date:** [September 3, 2012, 4:53pm UTC](https://boards.straightdope.com/t/math-question-order-of-operations/633453/28 "2012-09-03T16:53:34Z")

</div>

[Somewhat related thread from last year.](http://boards.straightdope.com/sdmb/showthread.php?t=606537)

---

<div class="post-metadata">

**Author:** ![Prox](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@Prox](https://boards.straightdope.com/u/Prox)\
**Post date:** [September 3, 2012, 4:54pm UTC](https://boards.straightdope.com/t/math-question-order-of-operations/633453/29 "2012-09-03T16:54:46Z")

</div>

> [@Tim\_R.Mortiss](#):
>
> As for the alternate approach, just going left to right: there is nothing inherently wrong with that, other than the fact that it is different than the accepted standard. If left-to-right \*had \*been the standard all along, everything would work out just fine. As long as the person writing the equation and the person reading the equation had used the same standard.

Left-to-Right actually makes the actually process of doing math more complicated. With standard order of operations, something like 3_2+5=5+2_3, which isn’t true for left-to-right. And part of the power of standard order of operations is the concept of a [term](http://en.wikipedia.org/wiki/Term_(mathematics)), which I’m not sure has an equivalent in left-to-right order. In many case, such as multiplying polynomials or integrating, you can treat terms separately, and you would lose that with left-to-right order of operations.

---

<div class="post-metadata">

**Author:** ![DrCube](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@DrCube](https://boards.straightdope.com/u/DrCube)\
**Post date:** [September 3, 2012, 6:36pm UTC](https://boards.straightdope.com/t/math-question-order-of-operations/633453/30 "2012-09-03T18:36:01Z")

</div>

> [@Enginerd](#):
>
> Who uses that?

Some calculators and programming languages. There is a picture going around the tubes showing four calculators giving four different answers to the same problem. When in doubt, use parentheses.

---

<div class="post-metadata">

**Author:** ![Doug\_K](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@Doug\_K](https://boards.straightdope.com/u/Doug_K)\
**Post date:** [September 3, 2012, 7:07pm UTC](https://boards.straightdope.com/t/math-question-order-of-operations/633453/31 "2012-09-03T19:07:08Z")

</div>

This discussion reminds me of my first math class in college, which was the first class I ever had where we were allowed to use calculators (calculators were forbidden in math classes when I was a lad). On the first day of class the teacher was telling us how to choose a calculator. He said to punch in something like 1 + 2 \* 3, and if the answer it gives is 9, don’t buy it.

On a side note, he said the reason we were allowed to use them in college was that by the time we graduated high school we should already know how to do basic math by “brute force”.

---

<div class="post-metadata">

**Author:** ![Terr](https://avatars.discourse-cdn.com/v4/letter/t/839c29/32.png) [@Terr](https://boards.straightdope.com/u/Terr)\
**Post date:** [September 3, 2012, 7:23pm UTC](https://boards.straightdope.com/t/math-question-order-of-operations/633453/32 "2012-09-03T19:23:03Z")

</div>

The OP is not, strictly speaking, a “math question”. There is nothing inherently, objectively, “right” about the widely adopted order of mathematical operations, it is a convention, nothing else. It’s not “math”, it can’t be proven. In any case, relying on this, both casually and in stuff like programming, is not a good idea. When I code, I always disambiguate with parentheses.

---

<div class="post-metadata">

**Author:** ![thelurkinghorror](https://avatars.discourse-cdn.com/v4/letter/t/7c8e57/32.png) [@thelurkinghorror](https://boards.straightdope.com/u/thelurkinghorror)\
**Post date:** [September 3, 2012, 7:38pm UTC](https://boards.straightdope.com/t/math-question-order-of-operations/633453/33 "2012-09-03T19:38:17Z")

</div>

> [@Doug\_K](#):
>
> This discussion reminds me of my first math class in college, which was the first class I ever had where we were allowed to use calculators (calculators were forbidden in math classes when I was a lad). On the first day of class the teacher was telling us how to choose a calculator. He said to punch in something like 1 + 2 \* 3, and if the answer it gives is 9, don’t buy it.
> 
> On a side note, he said the reason we were allowed to use them in college was that by the time we graduated high school we should already know how to do basic math by “brute force”.

Yeah, for graphing or other calculators that let you punch the whole line in. If it’s a simple calculator that only does one calculation at a time, and you get 7, well I’m not even sure if that’s possible.

---

<div class="post-metadata">

**Author:** ![Leo\_Bloom](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/leo_bloom/32/10377_2.png) [@Leo\_Bloom](https://boards.straightdope.com/u/Leo_Bloom)\
**Post date:** [September 3, 2012, 7:38pm UTC](https://boards.straightdope.com/t/math-question-order-of-operations/633453/34 "2012-09-03T19:38:43Z")

</div>

> [@Terr](#):
>
> Pluto isn’t a planet anymore. My very extroverted maid just served us naked.

I thought it was re-instated…  
Would you mind cross-posting your comment to the current thread on mnemonic sentences?

---

<div class="post-metadata">

**Author:** ![Doug\_K](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@Doug\_K](https://boards.straightdope.com/u/Doug_K)\
**Post date:** [September 3, 2012, 8:05pm UTC](https://boards.straightdope.com/t/math-question-order-of-operations/633453/35 "2012-09-03T20:05:01Z")

</div>

> [@thelurkinghorror](#):
>
> Yeah, for graphing or other calculators that let you punch the whole line in. If it’s a simple calculator that only does one calculation at a time, and you get 7, well I’m not even sure if that’s possible.

I have a 30 year old calculator that isn’t a graphing calculator. If I type in 1 + 2 + 3 =

The display will show as follows:  
type 1, display shows [1]  
type +, display shows [1 +]  
type 2, display shows [2 +]  
type +, display shows [3 +]  
type 3, display shows [3 +]  
type =, display shows [6]

1 + 2 X 3 = yields this:

1 [1]

- [1 +]  
2 [2 +]  
X [2 X]  
3 [3 X]  
= [7]

---

<div class="post-metadata">

**Author:** ![CookingWithGas](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cookingwithgas/32/485_2.png) [@CookingWithGas](https://boards.straightdope.com/u/CookingWithGas)\
**Post date:** [September 3, 2012, 9:07pm UTC](https://boards.straightdope.com/t/math-question-order-of-operations/633453/36 "2012-09-03T21:07:34Z")

</div>

> [@Terr](#):
>
> The OP is not, strictly speaking, a “math question”. There is nothing inherently, objectively, “right” about the widely adopted order of mathematical operations, it is a convention, nothing else. It’s not “math”, it can’t be proven. In any case, relying on this, both casually and in stuff like programming, is not a good idea. When I code, I always disambiguate with parentheses.

Of course it’s a convention. “Convention” means that everyone agrees to use it. The way we write numbers, and the symbols we use to represent mathematical operations are also conventions. It’s not like there are competing schools of thought on how to represent and parse mathematical expressions. Alternate notations didn’t come into play until electronic calculators where things like reverse Polish notation were introduced as a convention, but a convention only for entering expressions into a machine. I agree with the idea of using parentheses in code to make things clearer, but not because there is ambiguity–because people make errors.

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [September 3, 2012, 10:20pm UTC](https://boards.straightdope.com/t/math-question-order-of-operations/633453/37 "2012-09-03T22:20:44Z")

</div>

> [@Prox](#):
>
> Left-to-Right actually makes the actually process of doing math more complicated. With standard order of operations, something like 3_2+5=5+2_3, which isn’t true for left-to-right. And part of the power of standard order of operations is the concept of a [term](http://en.wikipedia.org/wiki/Term_(mathematics)), which I’m not sure has an equivalent in left-to-right order. In many case, such as multiplying polynomials or integrating, you can treat terms separately, and you would lose that with left-to-right order of operations.

No, this is the confusion of superficial notational choices with the underlying mathematics.

A term (in the sense of elementary algebra) is a product of variables and scalars; this exists as a concept independently of how you choose to notate it. Left-to-right vs. conventional order-of-operations has no bearing on this.

Similarly, in left to right order, the equation you intended would instead be written 3 \* 2 + 5 = 5 + (2 \* 3), expressing the same true fact. Nothing is lost; it’s just notated differently. Yes, parentheses would come up, just as they come up when you want to indicate certain things under the current convention. (You can eliminate parentheses altogether if you move away from infix notation [e.g., if we notated addition and multiplication the same way we denote general functions, we’d write +(\*(3, 2), 5) = +(5, \*(2, 3)), or, just as well, + \* 3 2 5 = + 5 \* 2 3, as the parentheses and commas would no longer be necessary. Perhaps ideally, we’d write things in their direct tree form, rather than linearizing them…], but if you cling to infix notation, you’re stuck with these conflicts of precedence, and whatever convention you pick for deciding them, you will sometimes want to move away from its default)

---

<div class="post-metadata">

**Author:** ![njtt](https://avatars.discourse-cdn.com/v4/letter/n/ecd19e/32.png) [@njtt](https://boards.straightdope.com/u/njtt)\
**Post date:** [September 3, 2012, 11:03pm UTC](https://boards.straightdope.com/t/math-question-order-of-operations/633453/38 "2012-09-03T23:03:34Z")

</div>

> [@Dervorin](#):
>
> It was actually taught to me as “BODMAS” as an acronym to remember, which was useful until it just became second nature. This was in the late 80s in India, so it’s possible that it’s just another colonial artefact that isn’t used anywhere else, but I’m pretty sure I’ve seen the word in some contemporary maths textbooks here in the UK. I will investigate if possible.
> 
> On Google, “BODMAS” returns about 220,000 results, against 17,000 for “BOMDAS” and 6,000 for “BIDMAS” so I suspect “BODMAS” is fairly common. For example: [Order of Operations - BODMAS](http://www.mathsisfun.com/operation-order-bodmas.html)

Yes, I was taught BODMAS in high school in the UK, although that was back in the 1960s. In British English, “brackets” usually means what Americans call parentheses. We would not have understood the word “parentheses”. (These things - - we call “square brackets”, on the rare occasions we need to refer to them.)

I was told the **O** of BODMAS stands for “of”, and was equivalent to multiplication, but I suppose it is really just there for pronouncability. (At that stage of things, I don’t think we had been introduced to the term “exponent” at all, though we probably knew about “powers”.)

---

<div class="post-metadata">

**Author:** ![lisiate](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@lisiate](https://boards.straightdope.com/u/lisiate)\
**Post date:** [September 4, 2012, 1:46am UTC](https://boards.straightdope.com/t/math-question-order-of-operations/633453/39 "2012-09-04T01:46:41Z")

</div>

48,000 Google hits for BEDMAS, which is what I was taught in New Zealand.

The only other order of operations convention that I know of is [Polish notation](http://en.wikipedia.org/wiki/Polish_notation), where the operators are placed to the left of the operands. So 1+2 in conventional notation is expressed as + 1 2. But the equaiton in the OP doesn’t make sense in Polish notation.

---

<div class="post-metadata">

**Author:** ![lisiate](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@lisiate](https://boards.straightdope.com/u/lisiate)\
**Post date:** [September 4, 2012, 1:51am UTC](https://boards.straightdope.com/t/math-question-order-of-operations/633453/40 "2012-09-04T01:51:31Z")

</div>

Oh and I think the equation in the OP expressed in Polish notation would be:

- 6 \* 1 0 + / 2 2

[Previous page](https://boards.straightdope.com/t/math-question-order-of-operations/633453.md?page=1)

[Next page](https://boards.straightdope.com/t/math-question-order-of-operations/633453.md?page=3)
