Saved

Press the star next to a tool's name to save it.

All my tools

Math Properties Calculator

Use this math properties calculator to test the associative and distributive properties with your numbers, and to see why subtraction, division and modulo are not associative.

Restored your last values ·

Choose a property and enter three numbers a, b and c. The calculator works out both sides of the equation, with the brackets in the different places, and tells you whether they match for those numbers and whether the property holds in general.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Choose a property, enter three numbers, then press Check.

See full result

A math properties calculator tests the associative and distributive properties with your own numbers. It works out both sides of the equation, with the brackets in different places, and tells you whether they match and whether the property holds for all numbers. It also tests whether subtraction, division and the modulo operation are associative, which they are not. Choose the property, enter three numbers and press the button. It is an associative property calculator and a distributive property calculator, and a quick way to see whether the modulo operation is associative.

How to use the math properties calculator

  1. Choose the property to test.
  2. Enter the numbers a, b and c.
  3. Press Check.

The associative property

An operation is associative if the grouping of three numbers does not change the result. Addition is associative: (a + b) + c equals a + (b + c). For 1, 2 and 3, both sides are 6. Multiplication is associative as well: (2 × 3) × 4 and 2 × (3 × 4) both give 24. Because of this, you can add or multiply a long list in any grouping, which makes mental arithmetic easier and lets computers add in parallel.

The distributive property

The distributive property links multiplication and addition: a × (b + c) equals a × b + a × c. For a = 2, b = 3 and c = 4, the left side is 2 × 7, which is 14, and the right side is 6 + 8, which is also 14. The property is the reason why you can expand brackets in algebra and why long multiplication works, since a number such as 12 × 14 can be split as 12 × 10 + 12 × 4.

Subtraction and division are not associative

Grouping matters for subtraction and division. For 10, 4 and 3, (10 − 4) − 3 is 3, but 10 − (4 − 3) is 9. For 24, 4 and 2, (24 ÷ 4) ÷ 2 is 3, but 24 ÷ (4 ÷ 2) is 12. One example where the two sides differ is enough to show that a property fails. The calculator shows both sides and marks the property as not holding in general.

Is modulo associative?

The modulo operation gives the remainder after division. The Wikipedia pages on modular arithmetic and the modulo operation define a mod n as the remainder, and note that conventions differ for negative numbers. The calculator uses the remainder that is never negative. Modulo is not associative. Take a = 5, b = 7 and c = 3. First, (5 mod 7) is 5, and 5 mod 3 is 2. Next, 7 mod 3 is 1, and 5 mod 1 is 0. The two sides, 2 and 0, differ. Some choices of numbers do match, for example 8, 5 and 3, which both give 0. That is a coincidence and does not prove associativity, and the calculator reminds you of this.

Checking a property with examples

An example can show that a property fails, but it cannot show that a property holds for every number. To prove the associative law for addition for all numbers needs an argument from the definition of addition. The calculator therefore says whether a match is a rule or a coincidence. When computers add decimal numbers, tiny rounding differences can appear between the two groupings, as with 0.1 + 0.2 + 0.3, but the calculator treats numbers that agree to nine digits as equal.

Why the properties matter

The properties of arithmetic are the rules that make algebra possible. Knowing which operations are associative tells you when you can regroup terms without changing the answer, and when you must keep the order. Subtraction can be turned into addition of a negative number, and division into multiplication by a reciprocal, which restores the associative property.

Other properties of arithmetic

Besides the associative and distributive properties, there are other laws. The commutative property says that order does not matter for addition and multiplication: a + b equals b + a, and a × b equals b × a. Subtraction and division are not commutative. The identity property says that adding 0 or multiplying by 1 leaves a number unchanged. The inverse property says that adding the opposite or multiplying by the reciprocal gives the identity. These laws are the basis of algebra, and each can be checked with example numbers like the ones in this calculator.

A worked example with the distributive property

To calculate 7 × 98 in your head, write 98 as 100 − 2. The distributive property gives 7 × 100 − 7 × 2, which is 700 − 14, or 686. In the calculator, choose the distributive property, enter a = 7, b = 100 and c = −2, and both sides equal 686. The same trick makes many products easy: 15 × 12 is 15 × 10 + 15 × 2, which is 150 + 30, or 180.

Why the modulo operation is not associative

The modulo operation is a division in disguise, since it keeps only the remainder, and division is not associative. In the expression (a mod b) mod c, the remainder is taken in two steps with b and then c, but in a mod (b mod c), the divisor is itself a remainder, which can be small or even 1. A divisor of 1 always gives remainder 0, as in the example of 5, 7 and 3. Understanding why a property fails is as important as finding a counterexample.

Common mistakes

  • Calling subtraction associative. The grouping changes the result.
  • Taking one match as a proof. A property must hold for all numbers.
  • Mixing up associative and commutative. Associative is about grouping, commutative is about order.
  • Forgetting to distribute to every term. a × (b + c) multiplies both b and c.
  • Using a zero for b or c in division and modulo. It is not allowed.

What next

Use this often? Add Math Propert to your Home screen.

Frequently asked questions

What is a math properties calculator?

A tool that tests properties such as the associative and distributive laws with the numbers you enter, showing both sides of each equation.

What is the associative property?

Grouping does not change the result: (a + b) + c = a + (b + c), and (a × b) × c = a × (b × c).

What is the distributive property?

a × (b + c) = a × b + a × c. For a = 2, b = 3, c = 4 both sides equal 14.

Is modulo associative?

No. For 5, 7 and 3, (5 mod 7) mod 3 = 2, but 5 mod (7 mod 3) = 0.

Are subtraction and division associative?

No. (10 − 4) − 3 = 3 but 10 − (4 − 3) = 9, and (24 ÷ 4) ÷ 2 = 3 but 24 ÷ (4 ÷ 2) = 12.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Math Tools