# Big Number Calculator - Arbitrary Precision, 2^1000, 1000!

> Arbitrary-precision calculator: exact + − × ÷, 2^1000, 1000!, n choose k, Fibonacci, modular power, GCD/LCM, integer roots, primality and base conversion.

- URL: https://qilingtools.com/en/math/big-number
- Category: Math Tools (https://qilingtools.com/en/math)
- Tags: [Math](https://qilingtools.com/en/tags/math), [Education](https://qilingtools.com/en/tags/education), [Algorithms](https://qilingtools.com/en/tags/algorithm)
- Last updated: 2026-10-26
- Price: Free, no sign-up
- Privacy: Runs locally in the browser; files are never uploaded

Ordinary calculators give up after about 16 digits and show 1.07e301; this one uses the browser’s built-in BigInt, so every digit is exact — all 302 digits of 2^1000, all 2568 digits of 1000!, C(100, 50) or the 1000th Fibonacci number. The input is a full expression: + − × ÷ (division is an exact fraction, shown as a decimal to your chosen number of places and as quotient and remainder), // floor division, % remainder, ^ powers, n! factorials and brackets, plus functions such as C(n,k), P(n,k), fib(n), gcd, lcm, powmod, modinv, isqrt, a high-precision sqrt, isprime and digitsum. Results can be grouped with commas or spaces, shown in any base from 2 to 36, and come with the digit count, digit sum, bit length and a scientific-notation approximation. The work runs in a background Web Worker, so even 200000! (nearly a million digits) never freezes the page, and you can cancel at any time. A second tab converts integers with tens of thousands of digits between any bases.

## How to use

1. Type an expression such as 2^1000, 1000!, C(100, 50) or powmod(3, 10^100, 10^9+7), or click an example
2. Set the decimal places for division, the digit grouping and the output base; the result updates when you stop typing (or press Enter)
3. Copy the full result and read the digit count, digit sum and scientific notation; cancel long jobs, or use the base converter tab

## Features

- Exact BigInt integers and fractions — every digit is correct
- + − × ÷, floor division, remainder, powers, factorials, brackets and implicit multiplication
- Combinations, permutations, Fibonacci numbers (fast doubling) and factorials (product tree)
- gcd, lcm, modular power and inverse, integer nth roots, high-precision square roots, Miller-Rabin primality
- Digit count, digit sum, bit length and a scientific-notation approximation
- Comma or space grouping and output in any base from 2 to 36
- Runs in a Web Worker with a cancel button; results up to about a million digits
- Big base converter between bases 2–36 with decimal, binary, octal and hex at once

## FAQ

### What are 2^1000 and 1000 factorial?

2^1000 has 302 digits, starting 10715086071862673209…, and its digits add up to 1366 (Project Euler problem 16). 1000! has 2568 digits, ends in 249 zeros and has a digit sum of 10539; 100! has 158 digits, about 9.3326 × 10^157. Type 2^1000, 1000! or digitsum(2^1000) to see and copy the full values.

### Why does division show both a fraction and a decimal?

Division is exact: 22/7 is kept as the fraction 22/7, shown as a decimal truncated to the number of places you choose (3.142857…), and as quotient and remainder, 3 … 1/7. Use // when you only want the whole-number quotient and % or mod for the remainder. A division that comes out even, like 10^20/4, is shown as an integer or terminating decimal.

### How big can the numbers get, and will it freeze my browser?

To avoid running out of memory, a single result is limited to about 3.4 million bits, roughly one million decimal digits — enough for 200000! (973,351 digits), 3^2000000 or fib(2000000), each in about a second. Everything runs in a background Web Worker, so the page stays responsive; long jobs show a timer and a cancel button. Anything over the limit is rejected up front with a “too large” message.

### How reliable is the isprime test?

isprime runs the Miller-Rabin test with the first 20 primes as bases. For numbers below 3.3 × 10^24 that set of bases is proven to give the right answer every time; above that there is a theoretical but vanishingly small chance of error. For example isprime(2^127 − 1) returns 1 (a Mersenne prime) and isprime(561) returns 0 (a Carmichael number). Inputs are limited to 20,000 bits to keep the test fast.

## Related tools

- [Graphing Calculator](https://qilingtools.com/en/math/graph): Free online function graphing calculator: type sin(x), x^2 or 1/x and see the curve at once, with several functions, parametric and polar curves, PNG export.
- [Scientific Calculator](https://qilingtools.com/en/math/calculator): Free online scientific calculator: type 2*(3+4)^2, sin(pi/6) or log(8,2) and see the answer as you type, with degrees or radians and a history list.
- [Equation Solver](https://qilingtools.com/en/math/equation): Free online equation solver: enter coefficients for linear, quadratic (with discriminant, vertex and complex roots) and cubic equations, plus 2×2 systems.
- [Fraction Calculator](https://qilingtools.com/en/math/fraction): Free online fraction calculator: add, subtract, multiply and divide fractions with automatic reduction, plus fraction ↔ decimal with repeating digits.
- [Percentage Calculator](https://qilingtools.com/en/math/percentage): Free online percentage calculator: X% of Y, X as a percent of Y, increase and decrease, a value after a percentage change and the original behind it.
- [Prime Factorization](https://qilingtools.com/en/math/prime): Free online prime factorization: factor an integer with exponents, list every divisor and their sum, test primality with neighbouring primes, or list a range.
- [GCD and LCM](https://qilingtools.com/en/math/gcd-lcm): Free online GCD and LCM calculator: works with two or more integers, says whether they are coprime, shows each prime factorization and every Euclidean step.
- [Statistics Calculator](https://qilingtools.com/en/math/statistics): Free online statistics calculator: paste a data set for the mean, median, mode, range, quartiles, variance, standard deviation, standard error and outliers.
