Compute arithmetic with arbitrarily large integers and high-precision decimals.
Acceptable formats include: integers, decimal, or the E-notation form of scientific notation, i.e. 23E18, 3.5e19, etc.
Click the buttons below to calculate
A big number calculator performs arithmetic on numbers that exceed the precision limits of standard computer arithmetic. Ordinary calculators use 64-bit floating-point numbers, which lose precision for integers larger than about 16 digits and cannot represent very large integers exactly. This calculator uses arbitrary-precision arithmetic to handle numbers of any size with complete accuracy.
Supported input formats: plain integers, decimal numbers, and E-notation scientific notation (e.g., 1.5e10, 23E18).
Adds two numbers of any size. Digit-by-digit addition with carry propagation, exact for integers.
Subtracts Y from X. Handles negative results correctly.
Multiplies two numbers. The product has roughly the sum of the digit counts of the operands.
Divides X by Y with configurable decimal precision. The result is computed to the specified number of digits after the decimal point. Division by zero is not allowed.
Raises X to the integer power Y. Y must be a non-negative integer. Results can become extremely large very quickly.
Computes the square root of X to the specified precision using digit-by-digit or Newton's method.
Multiplies X by itself. A special case of exponentiation with exponent 2.
Computes the factorial of X (product of all positive integers up to X). X must be a non-negative integer. Factorial grows faster than exponentially — 100! already has 158 digits.
Returns the remainder when X is divided by Y. Defined for integer operands.
Finds the largest integer that divides both X and Y without remainder. Uses the Euclidean algorithm for efficiency even with enormous numbers.
Finds the smallest integer divisible by both X and Y. Computed via the GCD relation: LCM(a,b) = |a×b| / GCD(a,b).
Clears all number input fields (X and Y) and resets the precision to its default value. The result panel and digit comparison chart are also cleared.
| n | n! | Digit count |
|---|---|---|
| 5 | 120 | 3 |
| 10 | 3,628,800 | 7 |
| 20 | 2,432,902,008,176,640,000 | 19 |
| 50 | ~ 3.04 × 10⁶⁴ | 65 |
| 100 | ~ 9.33 × 10¹⁵⁷ | 158 |
| 1000 | ~ 4.02 × 10²⁵⁶⁷ | 2568 |
1. Knuth, Donald E. "The Art of Computer Programming, Volume 2: Seminumerical Algorithms." Addison-Wesley. 1997.
2. Crandall, Richard and Pomerance, Carl. "Prime Numbers: A Computational Perspective." Springer. 2005.
3. von zur Gathen, Joachim and Gerhard, Jürgen. "Modern Computer Algebra." Cambridge University Press. 2013.
4. Brent, Richard P. and Zimmermann, Paul. "Modern Computer Arithmetic." Cambridge University Press. 2010.
5. Menezes, Alfred J. et al. "Handbook of Applied Cryptography." CRC Press. 1996.
6. Hardy, G. H. and Wright, E. M. "An Introduction to the Theory of Numbers." Oxford University Press. 2008.