Math & Education
Big Number Calculator (Exact Arbitrary Precision)
Add, subtract, multiply, divide, raise to powers, take square roots and factorials of very large numbers exactly, with thousands of digits and no rounding errors.
How to use
- 1Enter number A (and B for two-number operations). Commas, spaces and e-notation like 6.02e23 are allowed.
- 2Pick the operation. For division, square roots and negative powers, choose how many decimal places to keep.
- 3Read the exact result, its digit count and scientific notation; whole-number results also show the digit sum and whether they're prime.
How it's calculated
Numbers are stored as an integer and a power of ten (BigInt), so +, −, × and whole-number powers are exact. Division and square roots are rounded half away from zero at the chosen decimal place.
Frequently asked questions
Why does my phone calculator give a different answer?
Ordinary calculators keep about 15–16 significant digits, so 2^100 or 30! comes back rounded, and 0.1 + 0.2 can show as 0.30000000000000004 in software. This calculator keeps every digit, so 2^100 = 1,267,650,600,228,229,401,496,703,205,376 exactly.
How big can the numbers be?
Inputs up to 10,000 digits and results up to 100,000 digits. Factorials go up to 20,000! (77,338 digits). Everything runs in your browser, so very large results can take a moment.
How is the prime check done?
With the Miller–Rabin test using the first 13 primes as bases, which is exact for every number below about 3.3 × 10^24 and has a vanishingly small error above it. It's shown for whole-number results up to 300 digits.
What does 'mod' do with negative numbers?
The remainder takes the sign of A, as in most programming languages: −7 mod 3 = −1.
Example: 2 to the power 100
2^100 is 1,267,650,600,228,229,401,496,703,205,376, a 31-digit number. A spreadsheet shows it as 1.26765E+30 and quietly drops the last 15 digits; here every digit is kept because the number is stored as a whole integer rather than a floating-point approximation.
Why 0.1 + 0.2 comes out as exactly 0.3
Most software stores decimals in binary, where 0.1 can't be represented exactly, so 0.1 + 0.2 becomes 0.30000000000000004. This calculator stores 0.1 as the integer 1 with one decimal place, so adding and multiplying decimals is exact, the way you'd do it on paper.
Division and roots that never end
1 ÷ 7 and √2 have infinitely many decimals, so they're cut off at the number of places you choose (up to 1,000) and rounded at the last digit: 1 ÷ 7 to 30 places is 0.142857142857142857142857142857, and the result is labelled 'rounded' rather than 'exact'.
Related tools
- Trigonometry Calculator (Unit Circle)
Get sin, cos, tan, csc, sec and cot of any angle in degrees or radians — with exact values for special angles and the reference angle and quadrant.
- Weighted GPA Calculator (Honors & AP)
Calculate unweighted and weighted high school GPA — adding 0.5 for honors and 1.0 for AP/IB courses — from letter grades and credits.
- Permutation & Combination Calculator (nPr, nCr)
Calculate permutations (nPr) and combinations (nCr), with or without repetition, exactly — even for very large numbers.
- SAT to ACT Score Converter
Convert SAT scores to ACT composites and ACT to SAT using the official concordance tables — with approximate national percentiles to see how a score compares.
- Number Sequence Calculator (Arithmetic, Geometric, Fibonacci)
Find the next numbers and the rule of a sequence, or work out the nth term and sum of arithmetic and geometric sequences and exact Fibonacci numbers.
- Number to Words Converter
Spell out numbers in English words — US or UK style, lakh/crore for South Asia — plus cheque-writing format with cents, for any number up to the quadrillions.