Math glossary

Integers in Math: Definition, Number Line, and Rules

Learn what integers are, how to compare them, and which sign rules apply to addition, subtraction, multiplication, and division.

TL;DR

Integers are the whole-number values to either side of zero, together with zero itself. Use the number line to compare them, and use sign rules to add, subtract, multiply, or divide them.

Key Points

  • The set Z\mathbb Z includes negative integers, zero, and positive integers.
  • A number farther right on the number line is greater, even when both numbers are negative.
  • Absolute value is distance from zero and is always nonnegative.
  • Adding, subtracting, or multiplying two integers produces an integer. Division can give a non-integer quotient.

What are integers in math?

Integers are 00, the positive counting values, and their negatives. The symbol Z\mathbb Z denotes the set.

Z={…,−3,−2,−1,0,1,2,3,…}.\mathbb Z=\{\ldots,-3,-2,-1,0,1,2,3,\ldots\}.

The pattern extends forever in both directions. OpenStax’s contemporary mathematics lesson classifies them by position relative to zero.

Type Examples Where it sits
Negative integers −5,−4,−3,−2,−1-5,-4,-3,-2,-1 Left of zero
Zero 00 The origin
Positive integers 1,2,3,4,51,2,3,4,5 Right of zero

Zero is an integer and is neither positive nor negative. Values such as 3/23/2 and 2\sqrt2 lie between integers and are outside this set. A decimal or fraction notation can still represent an integer if the value simplifies to a whole-number value. For example, 2.0=22.0=2 and 6/3=26/3=2. OpenStax’s real-number classification chapter explains that every integer is rational because it can be written with denominator 1.

How do you compare integers on a number line?

Place zero between the negative and positive values, with equally spaced marks. The number farther right is greater. For example, −3>−7-3>-7 even though 7 has the larger magnitude. −3-3 is closer to zero on the left side. The number-line guide shows how to identify direction, distance, and order.

Number line with negative three and positive three at equal distances on opposite sides of zero
Negative 3 and positive 3 are opposites. Each is three units from zero, so both absolute values equal 3.

The opposite of aa is −a-a, the number that adds to aa to give zero. The absolute value |a|\lvert a\rvert is the distance from zero. OpenStax’s introduction to integers distinguishes finding an opposite from finding a distance. For example, the opposite of −3-3 is 3, while the absolute values of both −3-3 and 3 are 3.

How do you add and subtract integers?

When adding on a number line, a positive amount moves you right and a negative amount moves you left. Two numbers with the same sign combine their magnitudes and keep the sign. With opposite signs, subtract the smaller magnitude from the larger and use the sign of the larger magnitude. Equal magnitudes with opposite signs add to zero.

Subtraction reverses the direction of the second number. Rewrite it as adding the opposite.

a−b=a+(−b).a-b=a+(-b).

For example, 4−(−6)=4+6=104-(-6)=4+6=10. The minus sign outside the parentheses specifies subtraction, while the sign inside names the second number. The Australian Mathematical Sciences Institute’s integers module explains this connection between subtraction and adding an opposite.

How do multiplication and division signs work?

For two nonzero factors, the product is positive when their signs match and negative when they differ. The same sign rule applies to an exact quotient, provided the divisor is nonzero. OpenStax’s intermediate algebra examples apply these rules to expressions with more than one operation.

Signs of the two numbers Product or quotient sign
Positive and positive Positive
Negative and negative Positive
Positive and negative Negative
Negative and positive Negative

The product of zero and any integer is zero. Dividing zero by any nonzero integer gives zero. Division by zero is undefined. For example, dividing −9-9 by 4 gives −9/4-9/4, which is rational but is outside the set of integers.

To see why two negative factors give a positive result, use distribution. Since 3+(−3)=03+(-3)=0, multiplying that sum by −2-2 gives zero. The expansion equals (−2)(3)+(−2)(−3)=−6+(−2)(−3)(-2)(3)+(-2)(-3)=-6+(-2)(-3). The second term must be 6 to make the sum zero.

Which properties of integers matter?

Property What it means for integers
Closure Addition, subtraction, and multiplication stay inside the integers. Division does not always stay inside.
Commutative Reordering terms in addition or factors in multiplication preserves the result.
Associative Regrouping an addition or multiplication preserves the result.
Distributive Multiplying a sum multiplies each term, as in a(b+c)=ab+aca(b+c)=ab+ac.
Identity Adding zero or multiplying by one leaves a value unchanged.
Additive inverse Adding aa and −a-a gives zero.

Subtraction and division are generally neither commutative nor associative. Most nonzero integers also lack a multiplicative inverse within the integers. Only 1 and −1-1 have integer reciprocals. The inverse operations lesson explains how identities and inverses relate.

Examples of Integers

Example 1

Put 2,−7,0,−32,-7,0,-3 in increasing order.

  1. Place −7-7 and −3-3 on the left side of zero.
  2. −7-7 is farther left, so it comes first.
  3. The order is −7<−3<0<2-7<-3<0<2.

Example 2

The temperature is −4∘-4^\circC and rises by 7∘7^\circC.

  1. Represent the rise as +7+7.
  2. Add −4+7-4+7. Four of the seven units take the temperature to zero.
  3. The remaining three bring it to 3∘3^\circC.

Example 3

Find −3−(−8)-3-(-8).

  1. A first glance might suggest moving eight places left. The second number is already negative, so subtracting it reverses that direction.
  2. Write −3+8-3+8.
  3. The answer is 5.

Example 4

Find (−3)(7−9)(-3)(7-9) and check with division.

  1. Evaluate inside the parentheses to get −2-2.
  2. Multiply (−3)(−2)=6(-3)(-2)=6.
  3. Divide 66 by −3-3 to recover −2-2.

Example 5

Are 12/(−3)12/(-3) and −9/4-9/4 both integers?

  1. Dividing 12 by −3-3 gives −4-4, an integer.
  2. Dividing −9-9 by 4 gives −2.25-2.25.
  3. The latter lies between −3-3 and −2-2, so it is not an integer.

Example 6

Evaluate (−3)2−9/(−3)(-3)^2-9/(-3).

  1. With parentheses, the whole negative integer is squared, giving 9.
  2. Perform the division to get −3-3.
  3. Subtract: 9−(−3)=9+3=129-(-3)=9+3=12.

What mistakes should you check for?

Mistake 1: Comparing negative numbers by magnitude alone

The value −12-12 has greater magnitude than −5-5, but it sits farther left. So −12<−5-12<-5. Use the number line when the direction feels unclear.

Mistake 2: Losing parentheses around the base of a power

The expression (−3)2(-3)^2 squares the entire number, giving 9. The expression −32-3^2 first squares 3 and then applies the negative sign, giving −9-9. The parentheses decide which value is the base.

Mistake 3: Carrying the sign rule for multiplication into addition

Two negative factors have a positive product. Two negative terms have a negative sum. For example, (−2)(−5)=10(-2)(-5)=10, whereas −2+(−5)=−7-2+(-5)=-7.

Try It Yourself

  1. Give the opposite and absolute value of −11-11.
  2. Find −6+2-6+2 and 2−(−6)2-(-6).
  3. Is −14/7-14/7 an integer? Is −14/5-14/5?

Answers and Reasoning

  1. Its opposite is 11 and its absolute value is also 11.
  2. −6+2=−4-6+2=-4, and 2−(−6)=2+6=82-(-6)=2+6=8.
  3. −14/7=−2-14/7=-2 is an integer. −14/5=−2.8-14/5=-2.8 is not.

Questions About Integers

Is there a smallest integer?

No. Subtract 1 from any integer to get a smaller integer.

Are all whole numbers integers?

Yes. In the usual school convention, whole numbers are 0,1,2,…0,1,2,\ldots. The integers include all of these and the negative values too.

Is zero even?

Yes. An even integer is a multiple of 2, and 0=2·00=2\cdot0.

Conclusion

  • Read order left to right on the number line.
  • Treat absolute value as distance and subtraction as adding the opposite.
  • Check whether a division result stays inside the integers.

Read More

Research Behind This Article

  1. OpenStax, Contemporary Mathematics: The Integers. OpenStax
  2. OpenStax, Algebra and Trigonometry 2e: Real Numbers, Algebra Essentials. OpenStax
  3. OpenStax, Prealgebra: Introduction to Integers. OpenStax
  4. Australian Mathematical Sciences Institute, The Improving Mathematics Education in Schools Teacher Modules: Integers. AMSI
  5. OpenStax, Intermediate Algebra 2e: Integers. OpenStax