Home · Everyday · Arithmetic · Integer Calculator

Integer Calculator

Apply the core operations to two integers in one place: sum, difference, product, exact quotient, remainder, and power.

Your figures

Also used as the exponent, so it is kept small

Example result — edit the figures to make it yours

12

Sum a + b

Computed from the inputs on this page with the formula below — change any figure and every result updates.

Difference a − b-8
Product a × b20
Exact quotient a / b0.2000
Remainder2
Power a^b1,024

What this calculator does

Apply the core operations to two integers in one place: sum, difference, product, exact quotient, remainder, and power. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.

The formula and method

a + b, a − b, a × b, a ÷ b, a mod b, a^b

Integers are whole numbers, positive, negative, or zero, and this page runs the six everyday operations on a pair of them at once. Sum, difference, and product of two integers are always integers; the quotient is shown exactly to four decimal places because integers do not always divide evenly, and the remainder gives what division leaves behind under the mathematical (non-negative) convention.

The power a^b grows very quickly, so the exponent b is limited to a small range to keep results readable and exact; 2^10 = 1024 is the default example. Keep b non-zero when you care about the quotient and remainder, since division by zero is undefined, and remember that a negative base with a whole-number exponent alternates sign with each power.

Worked example

With the example inputs this page opens with (first integer (a) 2, second integer (b) 10), the result is 12 — sum a + b. Computed from the inputs on this page with the formula below — change any figure and every result updates.

Quick reference

Quick reference — varying Second integer (b)
Second integer (b)Sum a + bDifference a − bProduct a × bExact quotient a / bRemainderPower a^b
2404104
35-160.66666728
46-280.5216
57-3100.4232
68-4120.333333264
810-6160.252256
1012-8200.221024

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

Why is the quotient not always a whole number?

Integers are closed under addition, subtraction, and multiplication, but not division: 2 ÷ 10 = 0.2 leaves the integers, which is why the exact quotient is shown with decimals.

How does the Integer Calculator work?

Apply the core operations to two integers in one place: sum, difference, product, exact quotient, remainder, and power. Integer a · Integer b → Sum. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Integer Calculator need?

Integer a · Integer b → Sum. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Integer Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.