Big Number Calculator
Calculate exact factorials, large integer powers, and Fibonacci numbers beyond standard calculator limits. Uses JavaScript BigInt for arbitrary precision arithmetic.
20!
2432902008176640000
About the Big Number Calculator
A big number calculator performs exact arithmetic on very large integers that exceed the limits of standard calculators and floating-point arithmetic — including exact factorials, large integer powers, and high-index Fibonacci numbers. Standard calculators and most programming languages use floating-point numbers with 64-bit precision, which represents integers exactly only up to about 9 quadrillion (9×10¹⁵). Beyond this, rounding occurs and exact answers become unavailable. Our calculator uses JavaScript BigInt — arbitrary precision integer arithmetic — to compute exact results for factorials up to 170!, integer powers up to b^500, and Fibonacci numbers up to F(1000). These calculations have real applications: factorial appears in combinatorics (permutations and combinations), probability, and cryptography; large powers are fundamental to modular arithmetic in RSA encryption; Fibonacci numbers appear in nature (phyllotaxis, spiral patterns) and algorithm analysis (time complexity). The results for large factorials and Fibonacci numbers span hundreds or thousands of digits — seeing the exact digit count contextualizes the staggering scale of these mathematical giants. For numbers too large for exact computation, the calculator switches to logarithmic approximation with digit count.
Formula
n! = Π(k=1 to n) k | b^n = BigInt(b) ** BigInt(n) | F(n) = F(n-1) + F(n-2) | Digits ≈ log₁₀(result)
How It Works
Factorial: n! = 1 × 2 × 3 × ... × n. Using BigInt: n! computed as a loop multiplying BigInt values. 20! = 2,432,902,008,176,640,000 (19 digits). 100! has 158 digits. 170! ≈ 7.26 × 10^306 (307 digits — at the limits of double precision; BigInt still computes exactly). Powers: b^n = b × b × b ... n times, computed with BigInt exponentiation (b**n in JS). 2^100 = 1,267,650,600,228,229,401,496,703,205,376 (31 digits). 2^1000 has 302 digits. Fibonacci: F(n) computed iteratively: F(0)=0, F(1)=1, F(n) = F(n-1) + F(n-2). F(100) = 354,224,848,179,261,915,075. F(1000) has 209 digits. F(n) for large n approximates F(n) ≈ φ^n / √5, where φ = (1+√5)/2 = 1.618... (golden ratio). Number of digits in F(n) ≈ n × log₁₀(φ) ≈ n × 0.20898.
Tips & Best Practices
- ✓Stirling's approximation for factorials: ln(n!) ≈ n×ln(n) − n + 0.5×ln(2πn). This gives the logarithm of n! for any n, enabling digit count estimation: digits ≈ log₁₀(n!) = ln(n!) / ln(10). For 1000!: digits ≈ 2,568.
- ✓Modular arithmetic: cryptography applications like RSA encryption use b^e mod n. The calculator computes exact b^e first, then you can compute the modulus separately. For cryptographic RSA with keys in the hundreds of digits, specialized modular exponentiation algorithms are used in practice.
- ✓Combinatorics: C(n,k) = n! / (k! × (n-k)!) requires exact factorial computation. The number of ways to choose 50 items from 100: C(100,50) = 100! / (50! × 50!) = 100,891,344,545,564,193,334,812,497,256 — a 29-digit number. Compute numerator and denominator factorials separately, then divide.
Who Uses This Calculator
Students checking exact factorial values for combinatorics and probability homework. Mathematicians exploring properties of large Fibonacci numbers and factorial sequences. Cryptography students working with large integer arithmetic concepts. Programming students learning about arbitrary precision arithmetic and the limitations of floating-point representation.
Optimised for: USA · UK · Canada · Australia · Calculations run in your browser · No data stored
Frequently Asked Questions
What is 100 factorial (100!)?
100! = 93,326,215,443,944,152,681,699,238,856,266,700,490,715,968,264,381,621,468,592,963,895,217,599,993,229,915,608,941,463,976,156,518,286,253,697,920,827,223,758,251,185,210,916,864,000,000,000,000,000,000,000,000 — a number with 158 digits.
What is 2^100?
2^100 = 1,267,650,600,228,229,401,496,703,205,376 — a 31-digit number. Standard calculators show this in scientific notation; this calculator shows all digits using arbitrary precision arithmetic.