← All calculators / Math

Big number arithmetic

Up to 2,000 decimal digits per input.

01 / Your inputsBrowser-only calculation
Big number arithmetic
—
How it works

The formula

Exact integer arithmetic using arbitrary-precision integers

Example inputs

First integer: 12345678901234567890 · Second integer: 9876543210 · Operation: Add

Result: 12345678911111111100 · Exact integer result

What the Big number arithmetic works out

The Big number arithmetic turns the figures below into big number arithmetic, using the formula Exact integer arithmetic using arbitrary-precision integers. Up to 2,000 decimal digits per input.

What each field means

First integer
Entered as text rather than a single number — the example uses 12345678901234567890. Keep the same separators shown there.
Second integer
Entered as text rather than a single number — the example uses 9876543210. Keep the same separators shown there.
Operation
Choose between Add, Subtract, Multiply, Divide. The worked example below uses Add, and switching it changes which rule set the calculator applies.

A worked example

With the values this page opens on — First integer 12345678901234567890, Second integer 9876543210, Operation Add — the answer is 12,345,678,911,111,110,656. The supporting detail reads: Exact integer result. Reset restores exactly these numbers.

Reading the result

The headline number is big number arithmetic. Change any field and the figure, along with the graph beside it, is recomputed from the values you typed — nothing is rounded before the arithmetic runs.

Assumptions and limits

Up to 2,000 decimal digits per input. Division returns an integer quotient and remainder.

Your privacy

Nothing you type leaves your browser.

Related calculators

Number sequence ↗ · Fraction arithmetic ↗ · Random number generator ↗ · Time arithmetic ↗