Numbers and Arithmetic

Commutative, Associative and Distributive Laws in Plain Terms

Understand the three basic laws of arithmetic with pictures and examples, where they fail, and how they power mental math and algebra.

Key takeaways

  • Commutativity is about order: a + b = b + a and a × b = b × a.
  • Associativity is about grouping: (a + b) + c = a + (b + c), and the same holds for multiplication.
  • Distributivity links the two operations: a × (b + c) = a × b + a × c.
  • Subtraction, division and powers do not obey the first two laws, and many algebra errors come from assuming they do.

The commutative law says you can swap the order of two numbers when you add or multiply them. The associative law says you can regroup a chain of additions or of multiplications. The distributive law says that multiplying a sum is the same as multiplying each part and adding the results.

These three rules are behind nearly every shortcut in arithmetic and nearly every step of school algebra. They also have limits, and knowing where they stop is just as useful as knowing what they allow.

Order does not matter: commutativity

For any real numbers a and b:

a + b = b + a
a × b = b × a

Addition is easy to believe. Put three red counters and five blue ones on a table, and the total is eight whichever color you count first.

Multiplication is less obvious if you think of it as repeated addition. Why should four groups of seven equal seven groups of four? A rectangle of dots answers it. Arrange dots in 4 rows of 7. Counted by rows you get 4 sevens. Counted by columns you get 7 fours. The dots have not moved, so the totals agree.

The practical payoff is that you may choose the friendlier order. Finding 7% of 50 is the same as finding 50% of 7, which is 3.5, because both equal 7 × 50 ÷ 100.

Grouping does not matter: associativity

For any real numbers a, b and c:

(a + b) + c = a + (b + c)
(a × b) × c = a × (b × c)

Picture a box of small cubes that is 2 by 3 by 4. You can count it as layers of 6 cubes, stacked 4 high, giving (2 × 3) × 4 = 24. Or you can count slices of 12 cubes, two of them, giving 2 × (3 × 4) = 24.

Together with commutativity, associativity lets you rearrange a long sum or product however you like.

  • 17 + 46 + 3 = (17 + 3) + 46 = 66
  • 25 × 37 × 4 = (25 × 4) × 37 = 3,700
  • 5 × 18 = 5 × (2 × 9) = (5 × 2) × 9 = 90

Associativity is also the reason we can write a + b + c or abc with no parentheses at all. Both possible groupings give the same value, so nothing needs to be specified.

Multiplication over addition: distributivity

For any real numbers a, b and c:

a × (b + c) = a × b + a × c

Again a rectangle makes it visible. A rectangle 6 units tall and 10 + 3 units wide can be cut into two pieces, one 6 by 10 and one 6 by 3. The whole area, 6 × 13 = 78, equals 60 + 18.

The law works with subtraction inside too: 7 × 98 = 7 × (100 − 2) = 700 − 14 = 686. Read backward, it is called factoring: 43 × 17 + 57 × 17 = (43 + 57) × 17 = 1,700.

When both factors are sums, apply the law twice.

17 × 23 = (10 + 7) × (20 + 3)
        = 10 × 20 + 10 × 3 + 7 × 20 + 7 × 3
        = 200 + 30 + 140 + 21
        = 391

This is the whole idea behind long multiplication, and the algebra pattern some students memorize as FOIL is nothing more than this.

17 × 23 as four rectangles
10 × 20 = 200 Tens times tens 10 × 3 = 30 Tens times ones 7 × 20 = 140 Ones times tens 7 × 3 = 21 Ones times ones 10 × 20 = 200 Tens times tens 10 × 3 = 30 Tens times ones 7 × 20 = 140 Ones times tens 7 × 3 = 21 Ones times ones

The identities and inverses that complete the picture

Two special numbers sit alongside the laws. Adding 0 leaves a number unchanged, and so does multiplying by 1. They are the additive and multiplicative identities.

Every number also has an additive inverse (its opposite, so that a + (−a) = 0), and every nonzero number has a multiplicative inverse (its reciprocal, so that a × (1/a) = 1). Zero has no reciprocal, for reasons set out in why you cannot divide by zero.

With these, you can prove familiar facts. To see that a × 0 = 0, note that 0 + 0 = 0, so a × 0 = a × (0 + 0) = a × 0 + a × 0. Subtracting a × 0 from both sides leaves a × 0 = 0. A similar argument explains why a negative times a negative is positive: the distributive law forces it.

Mathematicians gather these properties into the definition of a field, an idea introduced in rings and fields in brief.

How algebra leans on the laws

When letters replace numbers, you cannot simply "work it out," so the laws become your only tools. Each ordinary algebra move rests on one or more of them.

Collecting like terms is distributivity read backward: 3x + 5x = (3 + 5)x = 8x. It also shows why 3x + 5y cannot be merged, since there is no common factor to pull out of both letters.

Expanding brackets applies distributivity twice.

(x + 3)(x + 5)
= x(x + 5) + 3(x + 5)           distribute the first bracket
= x² + 5x + 3x + 15             distribute again
= x² + 8x + 15                  collect like terms

Check with x = 10: 13 × 15 = 195, and 100 + 80 + 15 = 195.

Explaining number tricks is another use. Think of a number, add 5, double the result, subtract 10 and halve. You are back where you started. With n as your number, the steps give 2(n + 5) = 2n + 10, then 2n, then n. The trick is nothing more than distributivity and inverses.

Commutativity and associativity do quieter work. Writing 4 × x × 3 as 12x needs you to swap x with 3 and then regroup the numbers. We do this so automatically that it is easy to miss that a rule is being used. In a setting where multiplication does not commute, such as matrices, that same step would be an error, and expanding (A + B)² gives A² + AB + BA + B², with the two middle terms kept separate.

Where the laws fail

Subtraction and division are neither commutative nor associative.

Test One side Other side
Swap in subtraction 10 − 4 = 6 4 − 10 = −6
Swap in division 12 ÷ 3 = 4 3 ÷ 12 = 0.25
Regroup subtraction (10 − 4) − 3 = 3 10 − (4 − 3) = 9
Regroup division (24 ÷ 6) ÷ 2 = 2 24 ÷ (6 ÷ 2) = 8
Swap in powers 2³ = 8 3² = 9

You can still use the laws if you first rewrite: a − b is a + (−b), and a ÷ b is a × (1/b) when b is not 0. Move a term together with its sign and you will stay safe. This is the idea behind the left-to-right rule in the order of operations.

Division distributes in one direction only. It is true that (12 + 6) ÷ 3 = 12 ÷ 3 + 6 ÷ 3 = 6. But 12 ÷ (2 + 4) = 2, while 12 ÷ 2 + 12 ÷ 4 = 9.

Can subtraction ever commute?

Now and then, but not as a law. a − b equals b − a only when a = b, and for nonzero numbers a ÷ b equals b ÷ a only when a and b are equal or are opposites, such as 3 and −3, where both quotients are −1. A law has to hold for every choice of numbers in its scope, so a few lucky cases do not count.

Subtraction does have a tidy pattern of its own: b − a is always the opposite of a − b. Knowing that lets you reverse a subtraction on purpose and fix the sign afterward. To compute 38 − 91, find 91 − 38 = 53 and attach a minus sign, giving −53. Division behaves similarly with reciprocals, since b ÷ a is the reciprocal of a ÷ b when neither number is zero.

The false laws students invent

Many mistakes come from stretching distributivity to operations it does not cover.

  • Squares. (3 + 4)² = 49, but 3² + 4² = 25. The missing piece is the cross term: (a + b)² = a² + 2ab + b².
  • Roots. √(9 + 16) = 5, but √9 + √16 = 7.
  • Reciprocals. 1/(2 + 3) = 0.2, but 1/2 + 1/3 = 5/6.

A quick test with small numbers exposes each of these. One counterexample is enough to show that a proposed law is false, while any number of successful examples does not prove one true.

What you may and may not do
Always allowed Swap terms in a sum Swap factors in a product Regroup a pure sum or product Multiply through a sum Not allowed Swap across a minus without its sign Regroup a chain of divisions Square each term of a sum separately Split a denominator into two fractions VS Always allowed Swap terms in a sum Swap factors in a product Regroup a pure sum or product Multiply through a sum Not allowed Swap across a minus without its sign Regroup a chain of divisions Square each term of a sum separately Split a denominator into two fractions

Systems that break a law

Commutativity and associativity are independent of each other, and richer mathematics has operations that lack one or both.

  • Turning an object is usually not commutative. Rotate a book a quarter turn about a vertical axis and then about a horizontal one. Reverse the order and it typically ends up facing another way.
  • Multiplication of matrices and of quaternions is associative but not commutative.
  • Averaging two numbers is commutative but not associative. Averaging 2 with 4 and then with 8 gives 5.5, while averaging 4 with 8 and then with 2 gives 4.
  • Rounded computer arithmetic keeps addition commutative but can break associativity.

These cases show why the laws deserve names. They are real properties that an operation may or may not have.

Common questions

Are these laws proved or assumed?

It depends on where you start. For the natural numbers, you can begin with a short list of axioms about counting and successors, define addition and multiplication, and then prove each law by induction. That route is described in Peano arithmetic. In abstract algebra, by contrast, the laws are listed as requirements, and a system that satisfies them earns a name.

Do the laws apply to endless sums?

Not automatically. For a finite list you may reorder and regroup freely. For an infinite series whose positive and negative terms only converge because they cancel, reordering can change the total. This surprising fact is explored in alternating series and rearrangements. If every term is positive, or if the absolute values have a finite sum, reordering is safe.

Does multiplication distribute over multiplication?

No. a × (b × c) is not (a × b) × (a × c). With a = 2, b = 3 and c = 5, the left side is 30 and the right side is 60. Distributivity connects two different operations. Powers behave the same way toward products, though: (b × c)ⁿ = bⁿ × cⁿ for a positive whole number n, because commutativity lets you gather the like factors together.

Using the laws for mental math

Once you notice the laws, you can reshape problems on purpose.

  1. Pair friendly numbers. In 50 × 63 × 2, pair 50 with 2 to get 6,300.
  2. Break a factor. 16 × 25 = 4 × (4 × 25) = 400.
  3. Round and correct. 6 × 49 = 6 × 50 − 6 = 294.
  4. Collect a common factor. 8 × 13 + 2 × 13 = 10 × 13 = 130.

More strategies of this kind appear in mental math for faster multiplication.

For teachers and parents, a good question is "How do you know that still gives the same answer?" A child who answers with a rectangle of squares or a rearranged pile of blocks is using the law, whether or not the word "distributive" has come up yet. The vocabulary can follow the idea, and it is most helpful once there is something concrete for each name to refer to.

Written for 4Mathematics with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 38 articles in Numbers and Arithmetic →

Latest news on this topic