Big Number Calculator

Ordinary calculators round after about 15 or 16 digits. This one works with exact whole numbers of any size: 2100 = 1,267,650,600,228,229,401,496,703,205,376, and 30! = 265,252,859,812,191,058,636,308,480,000,000.

FreeNo sign-up
A ^ B
1.267650 × 10^30
The exact answer has 31 digits. The full exact number is in the table below.
Result
Exact answer 1,267,650,600,228,229,401,496,703,205,376
Scientific notation 1.267650 × 10^30
Number of digits 31

How to use the big number calculator

  1. Type or paste whole numbers of any length. Commas, spaces and underscores are ignored.
  2. Choose the operation: the four operations, powers, modulo, GCD and LCM, factorial, or the digit sum.
  3. Press Calculate. The full exact answer is in the table, with its digit count and scientific notation.

Why ordinary calculators lose digits

Most calculators and spreadsheets store numbers as 64-bit floating point, which keeps only about 15 to 17 significant digits. Anything longer is rounded: 264 = 18,446,744,073,709,551,616 often shows as 1.8446744 × 1019. This calculator uses arbitrary-precision integers, so every digit is exact.

Some big numbers

Number Digits
264 20
2100 31
30! 33
100! 158
A googol, 10100 101
1000! 2,568

The number of digits of a positive whole number N is ⌊log₁₀ N⌋ + 1.

Big number practice questions

Test yourself with 6 multiple-choice questions. Choose an answer and press Submit to see if you are right and why. Your score appears at the end.

Question 1 of 6
1. How many digits does 10100 (a googol) have?

Found a mistake? Let us know!

2. What is 5! (5 factorial)?

Found a mistake? Let us know!

3. How many trailing zeros does 25! have?

Found a mistake? Let us know!

4. What is 210?

Found a mistake? Let us know!

5. The digit sum of 123,456,789 is 45. Is the number divisible by 9?

Found a mistake? Let us know!

6. What is 17 mod 5?

Found a mistake? Let us know!

Frequently asked questions

How big can the numbers be?

There is no fixed limit for adding and multiplying; the browser handles numbers with many thousands of digits. Powers are limited to answers of about 200,000 digits and factorials to 20,000! so the page stays fast.

Does it work with decimals?

No. It is built for exact whole numbers. For a decimal answer, multiply both numbers by a power of 10 first, or use a regular calculator.

How is the remainder handled for negative numbers?

The remainder is always 0 or more and smaller than |B|, the usual rule in number theory.

Why is 0! equal to 1?

There is exactly one way to arrange zero objects, and defining 0! = 1 keeps formulas such as n! = n × (n − 1)! working for n = 1.

Sources

Related calculators

Browse all calculators

Related to This Article

What people say about "Big Number Calculator: Exact Math With Huge Integers"?

No one replied yet.

Leave a Reply