Use this free big number calculator to do exact arithmetic with numbers that are too large for an ordinary calculator. Add, subtract, multiply, and divide huge integers, raise them to powers, find factorials, remainders (modulo), GCD, and integer square roots. Every digit of the answer is correct, with no rounding and no scientific notation unless you ask for it. No signup needed.
Perform exact calculations on very large whole numbers without losing digits. Commas, spaces and underscores are accepted.
You can use commas, spaces, or underscores to make long numbers easier to read. The calculator removes them. Negative numbers are allowed
123456789012345678901234567890.Most calculators and programs store numbers as floating-point values, which keep only about 15 to 17 significant digits. Beyond that, digits are lost.
| Problem | What you see |
|---|---|
| 2⁵³ + 1 | An ordinary calculator shows 9,007,199,254,740,992, but the exact answer is 9,007,199,254,740,993. |
| 10²² + 1 | An ordinary calculator shows 1E22, but the exact answer is 10,000,000,000,000,000,000,001. |
| 0.1 + 0.2 | An ordinary calculator may show 0.30000000000000004. |
This calculator uses arbitrary-precision integers. The number of digits is limited only by memory and by the limits set on this page, so the result is exact.
| Operation | Notation | What it gives |
|---|---|---|
| Add | a + b | The exact sum |
| Subtract | a − b | The exact difference |
| Multiply | a × b | The exact product |
| Divide | a ÷ b | The quotient and the remainder, plus a decimal |
| Power | aⁿ | The exact power, for a whole-number exponent |
| Factorial | n! | n × (n − 1) × … × 1 |
| Modulo | a mod m | The remainder after division |
| Modular power | aⁿ mod m | The remainder of a power, calculated efficiently |
| GCD | gcd(a, b) | The greatest common divisor |
| Integer square root | ⌊√a⌋ | The largest whole number whose square is at most a |
Division with remainder: a = q × b + r, with 0 ≤ r < |b|
Factorial: n! = n × (n − 1) × (n − 2) × … × 2 × 1, and 0! = 1
Number of digits of a positive integer N: ⌊log₁₀ N⌋ + 1
Modular exponentiation (square and multiply): this finds aⁿ mod m without calculating the huge power first
GCD (Euclid’s algorithm): gcd(a, b) = gcd(b, a mod b)
Integer square root (Newton’s method): repeat x ← (x + a ÷ x) ÷ 2 with whole numbers until it stops decreasing
All answers are exact.
123,456,789,012,345,678,901,234,567,890 + 987,654,321,098,765,432,109,876,543,210
= 1,111,111,110,111,111,111,011,111,111,100
987,654,321,098,765,432,109,876,543,210 − 123,456,789,012,345,678,901,234,567,890
= 864,197,532,086,419,753,208,641,975,320
12,345,678,901,234,567,890 × 98,765,432,109,876,543,210
= 1,219,326,311,370,217,952,237,463,801,111,263,526,900 (40 digits)
10³⁰ ÷ 7
| n | n! |
|---|---|
| 10 | 3,628,800 |
| 20 | 2,432,902,008,176,640,000 |
| 25 | 15,511,210,043,330,985,984,000,000 |
| 30 | 265,252,859,812,191,058,636,308,480,000,000 |
| 50 | 30,414,093,201,713,378,043,612,608,166,064,768,844,377,641,568,960,512,000,000,000,000 (65 digits) |
100! has 158 digits, and 1,000! has 2,568 digits.
The 100th Fibonacci number, found by adding the previous two repeatedly:
F(100) = 354,224,848,179,261,915,075
Modular power finds these without writing out the huge power.
gcd(2⁶⁴ − 1, 2⁴⁸ − 1) = 2¹⁶ − 1 = 65,535
9,999,999,999,999,999 × 9,999,999,999,999,999
= 99,999,999,999,999,980,000,000,000,000,001
An ordinary calculator rounds this and loses the final digits.
2⁵³ + 1 = 9,007,199,254,740,993. An ordinary calculator gives 9,007,199,254,740,992, because it cannot represent the odd number just above 2⁵³.
The number 12,34,56,789 in the South Asian style is 123,456,789 in the Western style. The calculator can show either.
Western (Short Scale)
| Power of 10 | Name |
|---|---|
| 10³ | thousand |
| 10⁶ | million |
| 10⁹ | billion |
| 10¹² | trillion |
| 10¹⁵ | quadrillion |
| 10¹⁸ | quintillion |
| 10²¹ | sextillion |
| 10²⁴ | septillion |
| 10²⁷ | octillion |
| 10³⁰ | nonillion |
| 10³³ | decillion |
| 10¹⁰⁰ | googol |
Some countries use the “long scale”, where a billion means 10¹². The short scale is the common usage in English today.
| Number | Name | Written with commas |
|---|---|---|
| 10⁵ | lakh | 1,00,000 |
| 10⁷ | crore | 1,00,00,000 |
| 10⁹ | arab (100 crore) | 1,00,00,00,000 |
| 10¹¹ | kharab (100 arab) | 1,00,00,00,00,000 |
In the South Asian style, the first group from the right has 3 digits, and every group after that has 2 digits. 1 crore = 10 million, and 1 arab = 1 billion.
A calculator that does exact arithmetic with very large numbers, with every digit correct. It uses arbitrary-precision integers, so there is no rounding.
Most calculators store numbers in floating-point form, which keeps only about 15 to 17 significant digits. Digits beyond that are lost.
Thousands of digits for most operations, limited by browser speed and memory. The limits are shown on the tool.
Use the factorial operation. For example, 25! = 15,511,210,043,330,985,984,000,000, and 100! has 158 digits.
1,267,650,600,228,229,401,496,703,205,376.
Use the modulo operation. For example, 7²²² mod 1,000 = 49.
Count the digits, or use ⌊log₁₀ N⌋ + 1. For 2¹⁰⁰⁰, that is 302.
10¹⁰⁰, which is a 1 followed by 100 zeros, with 101 digits.
A lakh is 100,000 (10⁵), and a crore is 10,000,000 (10⁷). They are used in South Asia. 1 crore equals 10 million.
An arab is 100 crore, or 1,000,000,000 (10⁹, one billion). A kharab is 100 arab, or 10¹¹.
No. Integer answers are exact. Decimal results of a division are cut to the number of places you choose.
Yes. It is free, with no registration and no limits on use (apart from the size limits shown on the tool).
Integer operations are exact, since the calculator uses arbitrary-precision arithmetic.
A few of the most-used tools in each hub.
This calculator is for general and educational use. Integer results are exact within the size limits of this tool. It is not designed or approved for cryptography, security, or any use where an error could cause harm. Check important results with a second method before using them for work, finance, or science.