Order of Operations
Order of Operations
Nested Parentheses
Evaluate 2 × (3 + (8 − 5)) by working from the inside out. First do the innermost parentheses (8 − 5 = 3), then the outer parentheses (3 + 3 = 6), then multiply (2 × 6 = 12).
innermost-first
When parentheses are nested, start with the innermost group. Replace that group with its value, then work outward one group at a time. After all parentheses are resolved, apply the remaining PEMDAS rules.