Integer Arithmetic Calculator (Negative Numbers)

Addition, subtraction, multiplication, division of positive & negative integers with sign rules and number line visualization.

MATHEMATICS

Integer arithmetic calculator covering addition, subtraction, multiplication, and division with positive and negative numbers. Includes sign rules and a number-line visualization.

Four tabs: addition and subtraction (four sign combinations with explanations), multiplication and division (full sign rules), order of operations (BODMAS / PEMDAS), and visual number line plus a reference table.

Integer Calculator

Learn integer operations (positive & negative): addition, subtraction, multiplication, division, order of operations (BODMAS), and number line. Great for students.

Sign Rules (Addition & Subtraction)

(+a) + (+b)5 + 3 = 8Both positive → add, result positive.
(+a) + (-b)5 + (-3) = 5 - 3 = 2Different signs → subtract absolute values, keep sign of larger.
(-a) + (+b)(-5) + 3 = -(5 - 3) = -2Different signs → subtract, keep sign of larger absolute value.
(-a) + (-b)(-5) + (-3) = -(5 + 3) = -8Both negative → add absolute values, result negative.
(+a) - (+b)5 - 3 = 2Regular subtraction.
(+a) - (-b)5 - (-3) = 5 + 3 = 8Minus a negative → becomes plus.
(-a) - (+b)(-5) - 3 = -8Negative minus positive → more negative.
(-a) - (-b)(-5) - (-3) = -5 + 3 = -2Minus a negative → becomes plus.

Sign Rules Cheat Sheet

(+) × (+) = (+)     (-) × (-) = (+)
(+) × (-) = (-)     (-) × (+) = (-)
(+) ÷ (+) = (+)     (-) ÷ (-) = (+)
(+) ÷ (-) = (-)     (-) ÷ (+) = (-)
a - (-b) = a + b     a + (-b) = a - b

Common Mistakes to Avoid

  • Forgetting that minus a negative becomes plus: 5 - (-3) = 8, not 2.
  • Mixing up signs in multiplication: (-2) × (-3) = +6, not -6.
  • Skipping BODMAS: 5 + 2 × 3 = 11, not 21 (multiply first).
  • Confusing absolute value with sign: |-7| = 7, but the opposite of -7 is +7 too.
  • Dividing by zero is undefined (not zero, not infinity in basic math).

Word Problem Examples

Temperature: The temperature was 5°C, then dropped 8°C. Final = 5 + (-8) = -3°C.

Elevator: An elevator at floor 3 goes down 7 floors, then up 4. Position = 3 - 7 + 4 = 0 (ground floor).

Bank account: Balance Rp 200,000. Withdraw Rp 250,000 (overdraft). Balance = 200,000 - 250,000 = -50,000.

Sea level: A submarine at -120 m rises 45 m. New depth = -120 + 45 = -75 m.

Calculator information

How to use this calculator

  1. Choose the operation: addition, subtraction, multiplication, or division.
  2. Enter two integers (positive or negative), for example -7 and 4.
  3. Click Calculate to see the result with an explanation of the sign rules involved.
  4. For multi-step expressions (BODMAS/PEMDAS), use the expression tab and enter something like '-3 + 4 x (-2)'.
  5. Use the Number Line tab for a visual representation of addition and subtraction.
  6. Refer to the sign-rule reference table for multiplication and division as a study aid.

Integer arithmetic rules

Addition: a + b; Subtraction: a - b = a + (-b); Sign rules for multiplication/division: (+)(+) = +, (-)(-) = +, (+)(-) = -, (-)(+) = -
  • a, b = integers (Z = {..., -2, -1, 0, 1, 2, ...})
  • Division requires b != 0
  • PEMDAS: Parentheses, Exponents, Multiplication/Division, Addition/Subtraction

Dividing two integers does not always produce an integer (e.g., 7/2 = 3.5). Floor division (integer division) is common in programming.

Worked example: Multi-step expression: -3 + 4 x (-2) - 6 / (-3)

Given:
  • Expression: -3 + 4 x (-2) - 6 / (-3)
  • Rule: PEMDAS
Steps:
  1. Step 1 (multiplication): 4 x (-2) = -8
  2. Step 2 (division): 6 / (-3) = -2
  3. Substitute: -3 + (-8) - (-2)
  4. Step 3 (left-to-right addition): -3 + (-8) = -11
  5. Step 4: -11 - (-2) = -11 + 2 = -9

Result: Final answer = -9

Frequently asked questions

Why does a negative times a negative equal a positive?
Multiplying by -1 reverses direction on the number line, so reversing twice returns to the original direction. Algebraically: (-a)(-b) = -1 x a x -1 x b = (-1)^2 x ab = ab. It is also required to keep the distributive law a(b+c) = ab+ac consistent when a or b is negative.
What is the difference between integers and natural numbers?
Natural numbers (N) = {1, 2, 3, ...} or {0, 1, 2, 3, ...} depending on convention. Integers (Z, from the German Zahlen) include negatives, zero, and positives: {..., -2, -1, 0, 1, 2, ...}. Whole numbers = {0, 1, 2, 3, ...}. Every natural number is an integer, but not vice versa.
What are PEMDAS and BODMAS, and are they the same?
They are the same order-of-operations rule with different acronyms. PEMDAS (US): Parentheses, Exponents, Multiplication, Division, Addition, Subtraction. BODMAS (UK): Brackets, Orders, Division, Multiplication, Addition, Subtraction. Multiplication and division share priority (left to right), as do addition and subtraction.
Is 0 positive or negative?
Zero is neutral - neither positive nor negative. It is the additive identity (a + 0 = a) and the multiplicative annihilator (a x 0 = 0). Division by 0 is undefined because no number times 0 equals a nonzero result. In some contexts (real analysis), zero is treated as non-negative.
How can I quickly add a long list of negative numbers?
Group positives and negatives separately, sum each, then combine. Example: -3 + 5 - 7 + 2 - 4 = (5+2) + (-3-7-4) = 7 + (-14) = -7. For long arithmetic series with a pattern, use S = n/2 x (a+L) where n = number of terms, a = first term, L = last term.

Last updated: May 11, 2026