Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Number System and Arithmetic
  • Algebra
  • Set Theory
  • Probability
  • Statistics
  • Geometry
  • Calculus
  • Logarithms
  • Mensuration
  • Matrices
  • Trigonometry
  • Mathematics
Open In App
Next Article:
Order Of Operations – Definition, Rules & Examples
Next article icon

Order Of Operations – Definition, Rules & Examples

Last Updated : 05 Dec, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

Order of Operations is a collection of mathematical principles that determine the order in which computations are to be executed in an expression. These guidelines guarantee that everyone gets the same solution while solving a problem.

The order of operations and rules are expressed here:

  • Brackets ( ), { }, [ ]
  • Exponents
  • Division (÷) and Multiplication (×)
  • Addition (+) and Subtraction (-)

Here, Parentheses come first, followed by exponents, multiplication and division (from left to right), and addition and subtraction.

There are multiple acronyms used to define the order of operation, such as BODMAS, BEDMAS, BIDMAS or PEDMAS .

Order-Of-Operation

Order of Operations Rules-PEMDAS vs BODMAS

Order of Operations principles specify the order in which mathematical equations are solved, maintaining consistency and correctness throughout calculations. These criteria are critical for preventing misunderstanding and producing accurate outcomes. They include parentheses, exponents, multiplication and division, and addition and subtraction, which are often known by acronyms like as PEMDAS or BODMAS.

PEMDAS Rule

PEMDAS is an abbreviation for Parentheses, Exponents, Multiplication and Division (from left to right), and Addition and Subtraction. This rule prioritizes calculations in brackets first, then exponents, multiplication and division, and finally addition and subtraction.

Order of operation in PEDMAS are,

  • P stands for Parentheses ( ), { }, [ ]
  • E stands for Exponents (ab)
  • M stands for Multiplication(×)
  • D stands for Division(÷)
  • A stands for Addition(+)
  • S stands for Subtraction(-)

Examples of PEMDAS

Let's solve the expression (3 + 2) × 4 - 6 ÷ 2 using PEMDAS

Step 1: Inside Parentheses: (3 + 2) × 4 - 6 ÷ 2 = 5 × 4 - 6 ÷ 2
Step 2: Multiplication: 5 × 4 - 6 ÷ 2 = 20 - 6 ÷ 2
Step 3: Division: 20 - 6 ÷ 2 = 20 - 3
Step 4: Subtraction: 20 - 3 = 17

So, the result is 17

BODMAS Rule

BODMAS is an abbreviation for brackets, orders (or exponents), division and multiplication (from left to right), and addition and subtraction (from left to right). BODMAS, like PEMDAS, emphasizes the significance of prioritizing computations within brackets or brackets first, followed by exponents, division and multiplication, and lastly addition and subtraction. BODMAS provides consistency and precision in mathematical computations.

Order of operation in BODMAS are:

  • B stands for Brackets ( ), { }, [ ]
  • O stands for Order
  • D stands for Division (÷)
  • M stands for Multiplication (×)
  • A stands for Addition (+)
  • S stands for Subtraction (-)

Examples of BODMAS:

Let's solve the expression 6 + 3 × 2 - 4 ÷ 2 using BODMAS

Step 1: Multiplication: 6 + 3 × 2 - 4 ÷ 2 = 6 + 6 - 4 ÷ 2
Step 2: Division: 6 + 6 - 4 ÷ 2 = 6 + 6 - 2
Step 3: Addition: 6 + 6 - 2 = 12 - 2
Step 4: Subtraction: 12 - 2 = 10

So, the result is 10

How to Use Order of Operations?

To utilize the Order of Operations, go in the following order: parentheses, exponents, multiplication and division (from left to right), and addition and subtraction. Begin with completing operations within brackets, then assess exponents, multiplication and division, and ultimately addition and subtraction.

Order of Operations with Parentheses

First, solve any calculations in brackets. The remainder of the phrase should then be evaluated in accordance with the Order of Operations.

Example:Simplify 2 × (3+4)

Step 1: Solve inside the parentheses: 2 × (3+4) = 2 × 7
Step 2: Multiply: 2 × 7 = 14

Following the Order of Operations, the equation equals 14

Order of Operations with Exponents

After the brackets, address any exponents or powers in the phrase. Compute these before proceeding to the remaining operations.

Example:Simplify 23 × 4

Step 1: Evaluate the exponent: 23 × 4 = 8 x 4
Step 2: Multiply: 8 x 4 = 32

Following the Order of Operations, the equation equals 32

Order of Operations with Multiplication or Division and Addition or Subtraction

After working with parentheses and exponents, execute multiplication and division from left to right, followed by addition and subtraction from left to right.

Example:Simplify 6 + 4 × 3 - 2

Step 1: Multiply: 6 + 4 × 3 - 2 = 6 + 12 − 2
Step 2: Add: 6 + 12 - 2 = 18 − 2
Step 3: Subtract: 18 - 2 = 16

Following the Order of Operations, the equation equals 16.

Solved Examples on Order of Operations

Example 1: Solve expression: 8 + (5 × 3) − 22 using PEMDAS.

Solution:

Step 1: Parentheses: 8 + (5 × 3) − 22 = 8 + (15) − 22
Step 2: Exponents: 8 + (15) − 22 = 8 + 15 − 4
Step 3: Addition: 8 + 15 − 4 = 23 − 4
Step 4: Subtraction: 23 − 4 = 19

Therefore, the solution is 19

Example 2: Solve expression: 12 − 4 × (6 ÷ 2) + 5 using BODMAS.

Solution:

Step 1: Brackets: 12 − 4 × (6 ÷ 2) + 5 = 12 − 4 × 3 + 5
Step 2: Multiplication: 12 − 4 × 3 + 5 = 12 − 12 + 5
Step 3: Addition: 12 − 12 + 5 = 12 - 17
Step 4: Subtraction: 12 - 17 = 5

Therefore, the solution is 5

Example 3: Solve expression: 3 × (4 + 2)2 − 10 using Order of operation.

Solution:

Step 1: Parentheses: 3 × (4 + 2)2 − 10 = 3 × (6)2 − 10
Step 2: Exponents: 3 × (6)2 − 10 = 3 × 36− 10
Step 3: Multiplication: 108− 10
Step 4: Subtraction: 98

Therefore, the solution is 98


Next Article
Order Of Operations – Definition, Rules & Examples

C

chetanpahwa
Improve
Article Tags :
  • Mathematics

Similar Reads

    BODMAS Rule - Order of Operations in Maths
    BODMAS rule is a set of guidelines used to determine the sequence in which mathematical operations must be performed when solving an expression. Following the correct order of operations is vital to getting accurate results.The term BODMAS is an acronym used to remember the order of operations to be
    6 min read
    PEMDAS Rule | Order of Operations
    PEMDAS is an acronym for a mathematical rule that defines the order to solve arithmetic problems effectively.The PEMDAS rule tells us the sequence in which the expression with multiple operations is solved. The order is PEMDAS: Parentheses, Exponents, Multiplication, Division (from left to right), A
    7 min read
    Real Life Applications of Arithmetic Operations
    Arithmetic operations are basic calculations you do with numbers. They include addition (combining numbers), subtraction (taking one number away from another), multiplication (repeated addition), and division (sharing or grouping numbers). Arithmetic operations are core foundation of mathematics. In
    8 min read
    Order of Operations Practice Problems with answers
    Order of operations is a set of rules that dictate the correct sequence to evaluate a mathematical expression. Following this sequence ensures that everyone solves the expression the same way and gets the same result. The order of operations can be remembered using the acronym BODMAS or PEMDAS:PEMDA
    5 min read
    Distributive Property | Definition and Examples
    Distributive Property in Maths refers to the distribution of the number over the other operations. It is usually called the Distributive Law of Multiplication over Addition and Subtraction as the number which is to be multiplied is distributed over addition or subtraction of the numbers.In this arti
    8 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences