Big Number Calculator (Exact Large Integers)

Add, subtract, multiply, divide (quotient and remainder), raise to a power or take a modulo with whole numbers of any size. Exact digits, no rounding.

A whole number up to 1,000 digits. Digits only, with an optional minus sign. Spaces and commas between groups of three digits are fine.
For a power, b is the exponent: a whole number from 0 to 10,000.

Results

Result
9999999999999999999800000000000000000001
Number of digits
40
With thousands separators
9,999,999,999,999,999,999,800,000,000,000,000,000,001
In scientific notation (approx.)
9.999999 × 10^39

How it’s calculated

Ordinary calculators and spreadsheets store numbers in floating point with only about 15 to 17 significant digits, so they are only exact up to about 15 digits and then start to round (and show results like 1.2E+30). This calculator uses exact whole-number arithmetic instead, so every digit of the answer is correct, however long it is.

a = b × quotient + remainder a ^ b = a × a × … × a (b times)

Example: 99,999,999,999 × 99,999,999,999. Write 99,999,999,999 as 10¹¹ − 1. Then (10¹¹ − 1)² = 10²² − 2 × 10¹¹ + 1 = 9,999,999,999,800,000,000,001, a number with 22 digits. A typical calculator would show 1E+22. Another one: 2 to the power 100 is 1,267,650,600,228,229,401,496,703,205,376 (31 digits).

Whole numbers only. For decimals, use the scientific calculator; for the remainder of a division with decimals, use the modulo calculator.

Frequently asked questions

Why does my phone calculator show an E in big answers?

It stores numbers with only about 15 significant digits and switches to scientific notation beyond that. This tool keeps every digit exact instead.

How big a number can I use?

Each input can have up to 1,000 digits and a result up to 10,000 digits. Exponents go up to 10,000.

How are negative numbers divided?

The quotient is rounded toward zero and the remainder takes the sign of the first number, so −17 ÷ 5 = −3 remainder −2. The modulo option instead always gives a result from 0 up, so −17 mod 5 = 3.

Can I use decimals?

No, this calculator works with whole numbers only so that all results stay exact. A decimal answer from a division can be found with the long division calculator.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator