Nested Brackets and the Order to Peel Them
Simplify brackets inside brackets from the inside out, know when working from the outside is faster, and keep every sign straight.
Key takeaways
- Parentheses, square brackets and braces mean the same thing; the different shapes only help you see which ones pair up.
- Working inside out always applies: simplify the deepest group, combine like terms, then move one layer out.
- A minus sign or a number in front of a bracket multiplies every term inside it.
- In an equation, dividing or subtracting to strip the outer layer can avoid expanding altogether.
- Rewrite one layer per line and substitute your answer into the original expression to confirm it.
When brackets sit inside other brackets, the reliable approach is to simplify the innermost pair first and work outward, one layer per line. In an equation you may also peel from the outside, by undoing whatever is done to the outermost group. Both routes reach the same answer.
Most errors come from rushing: two layers removed at once, or a minus sign that reaches only the first term. A slow, regular routine prevents nearly all of them.
Reading the structure
Brackets group terms so that they are treated as a single quantity. Writers often alternate the shapes, with parentheses ( ) innermost, square brackets [ ] next and braces { } outermost. The meaning is identical. In some contexts braces and square brackets have other jobs, such as listing sets or matrices, but inside school expressions they are grouping marks.
Before simplifying, pair them up. Read left to right and count: add 1 at each opening mark and subtract 1 at each closing mark. The count should never go below zero and should end at zero. The highest count tells you the depth.
In 2[3(x − 1) + 4], the count goes 1 at the square bracket, 2 at the parenthesis, back to 1, then 0. The depth is two, and x − 1 is the deepest group.
Spending five seconds on this stops you from pairing a bracket with the wrong partner. It is part of the larger rules in order of operations.
Which pair is innermost?
The innermost pair is one that contains no other brackets. An expression can have several of them at once. In 3[2(x + 1) − (x − 4)] + 5, both (x + 1) and (x − 4) are innermost, and you may clear them in the same step because they do not interfere.
3[2(x + 1) − (x − 4)] + 5
3[2x + 2 − x + 4] + 5
3[x + 6] + 5
3x + 18 + 5
3x + 23 Test with x = 1. The original is 3[4 − (−3)] + 5 = 3 · 7 + 5 = 26, and 3 · 1 + 23 = 26.
What you may not do is let the outer 3 reach inside before the square bracket is settled and also distribute the inner 2 in the same breath. It can be done correctly, since 3 times 2(x + 1) is 6(x + 1), but each extra factor you carry is another chance to forget one. Keeping the 3 waiting outside until the square bracket holds just two terms is the calmer choice.
Inside out, one layer at a time
Solve 2[3(x − 1) + 4] = 20.
2[3(x − 1) + 4] = 20
2[3x − 3 + 4] = 20 (innermost: distribute 3)
2[3x + 1] = 20 (combine inside the square bracket)
6x + 2 = 20 (distribute 2)
6x = 18
x = 3 Check in the original: 3(3 − 1) + 4 = 10, and 2 · 10 = 20.
Two habits make this work. First, copy everything you are not changing, including the outer brackets. Second, combine like terms inside a bracket before multiplying it by anything. Combining early keeps the numbers small and the number of terms low, using the routine in combining like terms.
Outside in, when you have an equation
Because an equation has two sides, you can undo the outer operations first. Take the same problem.
2[3(x − 1) + 4] = 20
3(x − 1) + 4 = 10 (divide both sides by 2)
3(x − 1) = 6 (subtract 4)
x − 1 = 2 (divide by 3)
x = 3 No distributing was needed and the numbers shrank at each step. This is backtracking: list what happens to x in order, then reverse the list.
Outside in works smoothly when x appears only once. If x shows up in two different layers, or on both sides, you will usually have to expand at some point. It also helps when the right side divides evenly by the outer factor; otherwise you get fractions, which are legal but may be less pleasant.
| Situation | Usually easier |
|---|---|
| x appears once | outside in |
| x appears in several places | inside out |
| right side divides cleanly | outside in |
| no equals sign, only simplifying | inside out |
Minus signs in front of brackets
A minus sign in front of a bracket means multiply by −1. Every term inside changes sign. A subtraction in front of a number and a bracket, such as −2[...], means multiply every inside term by −2.
Solve 5 − 2[x − 3(2 − x)] = 1.
5 − 2[x − 3(2 − x)] = 1
5 − 2[x − 6 + 3x] = 1 (multiply 2 − x by −3)
5 − 2[4x − 6] = 1 (combine)
5 − 8x + 12 = 1 (multiply by −2)
17 − 8x = 1
x = 2 Check: 2 − x = 0, so the square bracket equals 2, and 5 − 2 · 2 = 1.
Two traps hide here. The 5 is not combined with the −2 first; multiplication comes before subtraction, so 5 − 2[...] is not 3[...]. And −3(2 − x) gives −6 + 3x, with a plus on the second term. The distributive property explains both.
Why the order is a choice, not a law
Expanding from the outside is also correct algebra. In 5 − 2[x − 3(2 − x)], you could distribute the −2 across the square bracket first and get 5 − 2x + 6(2 − x). Then 6(2 − x) = 12 − 6x, and the total is 17 − 8x, the same result as before.
The distributive property does not care which layer goes first, as long as each multiplier reaches every term of its own group exactly once. Inside out is recommended because it lets like terms combine early, so there is less to carry. Outside-first expansion passes each multiplier down through the layers, and the signs pile up.
One thing does have a fixed order: you cannot add a term outside a bracket to a term inside it until the bracket has been removed. In 7 + 2(x + 1), the 7 and the 1 only meet after the 2 has multiplied the 1, giving 2x + 9.
Three layers
Solve 4{x − [2x − (x + 3)]} = 3x + 7.
4{x − [2x − (x + 3)]} = 3x + 7
4{x − [2x − x − 3]} = 3x + 7 (remove parentheses)
4{x − [x − 3]} = 3x + 7 (combine)
4{x − x + 3} = 3x + 7 (remove square brackets)
4{3} = 3x + 7 (combine)
12 = 3x + 7
x = 5/3 Notice that the left side lost its x completely. That is perfectly possible: the left side is the constant 12 in disguise.
Check with x = 5/3. The parentheses give 14/3. Then 2x − 14/3 = 10/3 − 14/3 = −4/3. Next, x − (−4/3) = 5/3 + 4/3 = 3, and 4 · 3 = 12. The right side is 3 · 5/3 + 7 = 12.
Fraction bars are brackets too
A fraction bar groups its whole numerator and its whole denominator, even though no bracket is drawn. A root sign with a long bar does the same.
Solve (2(x + 1)/3 + 1)/5 = 1.
(2(x + 1)/3 + 1)/5 = 1
2(x + 1)/3 + 1 = 5 (multiply by 5)
2(x + 1)/3 = 4 (subtract 1)
2(x + 1) = 12 (multiply by 3)
x + 1 = 6
x = 5 Check: 2 · 6/3 = 4, then 4 + 1 = 5, and 5/5 = 1.
When you type such expressions into a calculator or a spreadsheet, you must add the invisible brackets yourself. Typing x + 1/3 means x plus one third, while (x + 1)/3 is the fraction you probably intended.
A bracket around the whole equation side
Sometimes the cleanest move is to treat a repeated group as a single object. Solve 5(2x − 3) − 2(2x − 3) = 3[(2x − 3) − 4] + x + 9.
Let u stand for 2x − 3. The left side is 5u − 2u = 3u. The right side begins with 3(u − 4) = 3u − 12.
3u = 3u − 12 + x + 9
0 = x − 3
x = 3 Check: u = 3, so the left side is 15 − 6 = 9. The right side is 3(−1) + 3 + 9 = 9.
Nothing was expanded until it had to be. A temporary letter like u is useful whenever the same bracket turns up several times. Just remember to return to x, and to use u only where the group matches exactly: 2x − 3 and 2x + 3 are not the same object.
Errors and how to catch them
- Partial distribution. Writing 3(x − 1) as 3x − 1. Draw a small mark under each inside term as you multiply it.
- Distributing across an addition outside. In 3(x − 1) + 4, the 3 never touches the 4.
- Lost sign after a minus. Writing −(x + 3) as −x + 3. It is −x − 3.
- Skipping layers. Removing two bracket pairs in one line invites sign errors.
- Dropping a bracket. If your counts of opening and closing marks differ, stop and compare with the line above.
A quick numeric test finds the faulty line. Pick a value such as x = 2 and evaluate each line of your simplification. The first line whose value differs from the one above contains the mistake. This works for expressions; for equation steps, test the solution in each line instead.
Building nested expressions from words
Writing brackets is the reverse skill, and practicing it makes reading them easier. Take this recipe: start with x, subtract 2, triple the result, add 5, then double everything.
Each new instruction wraps the previous expression: x − 2, then 3(x − 2), then 3(x − 2) + 5, then 2[3(x − 2) + 5]. If the final value is 40, peel in reverse: halve to get 20, subtract 5 to get 15, divide by 3 to get 5, and add 2 to get x = 7.
The last instruction given is the outermost layer, and the first one to undo.
Practice
Try these, then compare.
- 3[2(x + 4) − 5] = 27
- 10 − [4 − (x − 2)] = 9
- 2{3[x − 1] + x} − x = 15
1. divide by 3: 2(x + 4) − 5 = 9, so 2(x + 4) = 14, x + 4 = 7, x = 3
2. inside: 4 − x + 2 = 6 − x; then 10 − 6 + x = 9, so x = 5
3. inside braces: 3x − 3 + x = 4x − 3; then 8x − 6 − x = 15, 7x = 21, x = 3 Once these feel routine, the same layered habit carries into multi-step equations with parentheses on both sides and into longer simplifications with powers, where an exponent outside a bracket applies to the whole group.