Use this integer calculator to add, subtract, multiply, or divide two whole numbers. Results truncate any decimal portion to give you an integer result.
Integer calculator
Table of Contents show ▼
Using the calculator
Enter two integers in the Number 1 and Number 2 fields. Select your operation from the Operation dropdown: addition, subtraction, multiplication, or division.
Results calculate instantly, with conversions to binary, octal, and hexadecimal shown below. For division, any remainder is truncated to give you a whole number result.
What is an integer?
An integer is any whole number, positive or negative, including zero. Unlike floating-point numbers, integers have no decimal component.
