Big Number Calculator

Type an expression like 2^1000, 100! or sqrt(2) and get the exact result with every digit, its digit count, scientific form and a copyable answer.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Type an expression

    Use the keyboard or the keypad buttons.

  2. 2
    Set decimal places

    Choose how many places division and roots should give.

  3. 3
    Read the result

    See every digit, the digit count and scientific form.

  4. 4
    Copy or download

    Copy the exact result or download it as a text file.

  5. 5
    Compare two numbers

    Use the Two numbers tab for GCD, LCM and more.

  6. 6
    Keep a history

    Save results and reopen them later.

About this tool

Ordinary calculators and spreadsheets keep about 15 significant digits, so 2 to the power 100 comes out as 1.26765E+30 and 25 factorial loses its last ten digits. When you need every digit, for number theory homework, checking a programming exercise, cryptography practice or just curiosity, you need arbitrary-precision arithmetic. This calculator does all its work with exact integers of any size and represents decimals as an exact integer with a decimal scale, so 0.1 + 0.2 really is 0.3. Type an expression with plus, minus, times, divide, powers, factorials, square roots, cube roots, nth roots, mod and brackets. The result appears with every digit, optionally grouped with commas, together with the number of digits, the scientific form, the digit sum and the sign. Division and roots continue to as many decimal places as you choose, up to a thousand. A two-number tab gives the sum, difference, product, quotient, remainder, greatest common divisor and least common multiple of two huge integers, and a history keeps past results that you can reopen or download.

What you can type

Use + − * / for the four operations, ^ for powers, ! for factorials, mod for the remainder, and brackets for grouping. Functions are sqrt(x), cbrt(x) and root(x, k) for the k-th root. Numbers can have decimals and an exponent such as 6.02e23. Powers must have whole-number exponents; negative exponents give a decimal result. The keypad buttons insert symbols for phone users, and pressing Enter saves the result to the history.

Exactness and decimal places

Addition, subtraction, multiplication, whole-number powers and factorials are always exact. Division and roots usually never end, so they are calculated to the number of decimal places you set and then cut off, not rounded. For example 1/7 to 20 places is 0.14285714285714285714. If you need more digits, raise the setting. To protect your device, results with more than a million digits are refused.

Two numbers at once

For number theory, the second tab takes two whole numbers of any length and shows their sum, difference, product, whole quotient, remainder, greatest common divisor (by Euclid's algorithm) and least common multiple, plus which is larger. A small table shows factorials from 10 to 100 with their number of digits: 100! has 158 digits.

Worked example

2^128 − 1, the largest value of an unsigned 128-bit integer, is 340282366920938463463374607431768211455, which has 39 digits. A normal calculator shows about 3.4028E+38. The square root of 2 to 30 places is 1.414213562373095048801688724209.

Limits

The calculator handles real numbers only, not complex numbers, and does not support trigonometric or logarithmic functions. Roots of negative numbers are allowed only for odd roots. Very large factorials and powers can take a moment on older phones. It is not a computer algebra system and does not simplify symbolic expressions.

Worked example

2^128 − 1 = 340282366920938463463374607431768211455 (39 digits).

Quick facts

Frequently asked questions

How do I calculate 2 to the power 1000 exactly?

Type 2^1000. The result shows all 302 digits, the digit count and the scientific form.

Why does my normal calculator give a rounded answer?

Most calculators use 64-bit floating point, which keeps about 15 to 17 significant digits. This tool uses exact integers, so no digits are lost.

How precise are division and square roots?

They are calculated to the number of decimal places you set (up to 1000) and truncated after that.

Can it compute factorials?

Yes, with the ! sign, for example 100! or 52!. Factorials up to 20,000 are allowed.

Does 0.1 + 0.2 equal 0.3 here?

Yes. Decimals are stored exactly, so 0.1 + 0.2 = 0.3 with no floating-point error.

Can I find the GCD of two huge numbers?

Yes. The Two numbers tab shows the greatest common divisor and least common multiple of any two whole numbers.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages