Big Number Calculator

Spreadsheets such as Excel keep 15 digits, so with bigger numbers only the first 15 digits can be right. This calculator works on every digit you type, up to 10,000 of them, and shows the whole answer. Pick an operation and type two numbers, with a decimal point, commas or E-notation such as 6.02e23 if you like.

Answer
121,932,631,137,021,795,226,185,032,733,622,923,332,237,463,801,111,263,526,900 Exact

1234567890…567890 (30 digits) × 9876543210…543210 (30 digits) is 121,932,63…26,900 (60 digits), exactly.

Digits 60
Scientific notation 1.2193 × 10⁵⁹
Exact? Yes

Why a big number calculator?

Excel keeps 15 digits of precision. Multiply two 30-digit numbers there and only the first 15 digits of the answer can be right. Here every digit is kept: the default example has 60 digits, all of them right. Decimals stay exact too: 0.1 + 0.2 is exactly 0.3.

Source Microsoft Support · Excel specifications and limits (number precision: 15 digits) ↗

How the big number calculator works

Each number is read straight from its digits into an exact whole number or fraction, so nothing is rounded along the way. An answer is exact whenever its decimal ends within 100 places; one that goes on forever, like 1 ÷ 3 or √2, is rounded to 100 decimal places, half away from zero. Answers can have up to 10,000 digits.

a × b, on the exact digits

Here it is with your numbers:

  1. Read a and b digit by digit, as whole numbers and exact fractions, so nothing is rounded on the way
  2. Work out a × b: the answer ends, so every digit is shown
  3. The answer has 60 digits, which is 1.2193 × 10⁵⁹ in scientific notation

It means 1234567890…567890 (30 digits) × 9876543210…543210 (30 digits) is 121,932,63…26,900 (60 digits) exactly.

Source ECMAScript Language Specification · 6.1.6.2 The BigInt Type ↗

Big number examples

Modulo gives what is left after taking whole b’s out of a, with the sign of b, the same as our Modulo Calculator: −7 mod 3 is 2.

FAQs

How to represent extremely large numbers?

Use scientific notation: a number from 1 up to 10 times a power of 10. 2¹⁰⁰ is 1,267,650,600,228,229,401,496,703,205,376, which is about 1.2677 × 10³⁰. The calculator shows both.

Source OpenStax Prealgebra 2e · 10.5 Integer Exponents and Scientific Notation ↗

How to multiply very large numbers?

By long multiplication: multiply by each digit of the bottom number in turn, shift each row one place left, and add the rows. The calculator does the same on every digit, so a 30-digit number times a 30-digit number gives all 60 digits.

Source OpenStax Prealgebra 2e · 1.4 Multiply Whole Numbers ↗

How do computers evaluate huge numbers?

Spreadsheets such as Excel keep 15 digits. For more, programs use whole numbers of any size: JavaScript’s BigInt “may be any size”, and its operations are designed to give exact answers. This calculator uses BigInt.

Source ECMAScript Language Specification · 6.1.6.2 The BigInt Type ↗

Sources

Related calculators