Exact arithmetic on integers with up to 10,000 digits: add, subtract, multiply, divide, raise to a power, take factorials and compare, with every digit preserved. Ordinary calculators quietly lose precision past 15 digits; this one never rounds.
Almost every calculator, spreadsheet and programming language stores numbers in floating point form, the IEEE 754 standard, which packs a value into 64 bits: one sign bit, an exponent, and 52 bits of precision. Fifty-two binary digits translate to about 15 to 17 decimal digits, and that is a hard ceiling. Past it, the low digits are silently discarded, no matter how important they are.
The effect is easy to reproduce. Add 123456789123456789 and 987654321987654321. The exact answer is 1111111111111111110, nineteen digits. A floating-point calculator may report 1111111111111111100, because the last two digits were rounded away. Each number individually fit the 15-digit budget, but their nineteen-digit sum did not, and the calculator had no way to warn you.
The sharpest illustration is squaring: 999,999,999 × 999,999,999 is 999999998000000001, eighteen digits ending in seven zeros and a 1. Round the inputs to 15 significant digits and the 1 at the end simply cannot survive.
Arbitrary-precision arithmetic, which this calculator uses, abandons the fixed 64-bit box. Instead, a number is stored as a list of digits, exactly the way you would write it on paper, and every operation runs the schoolbook algorithm: add column by column with carries, multiply digit against digit, subtract with borrows. If a result needs 500 digits, the software just keeps a 500-element list, and the only limit is memory and patience.
Modern browsers expose this machinery natively as BigInt, an integer type with no size ceiling, and that is what the engine on this page runs on. Multiplying two thousand-digit numbers takes a computer a fraction of a millisecond, work that would take a person an afternoon with pencil and paper.
The trade-off is honesty about scope: this calculator handles integers only. There are no decimals, no square roots and no negative-fractional exponents here, because exact decimal results of division often never terminate (1 ÷ 3 = 0.333... forever), and infinity cannot be printed. Division therefore reports a quotient and an exact remainder, the way long division does.
2^100 = 1267650600228229401496703205376, thirty-one digits,
exact.100! has 158 digits. The statistics calculators on
this site rely on the same idea for exact combinatorics, such as C(69, 5) = 11,238,513
lottery combinations.Results longer than 5,000 digits are shown in truncated form with the exact total digit count stated, so you always know precisely how big the answer is even when the middle digits scroll past.
It is not broken; it is rounding. Standard calculators store numbers in 64-bit floating point, which carries only about 15 to 17 significant decimal digits. Anything beyond that is dropped silently. Adding two 17-digit numbers produces a 19-digit result that cannot fit, so the low digits change. This page stores every digit separately and never rounds.
Each input accepts up to 10,000 digits, which is far beyond any hand computation and comfortably beyond the 600-digit keys used in everyday cryptography. Multiplication of two maximum-size inputs yields a 20,000-digit result, and the page reports the exact digit count even when it displays only the first 5,000 digits of the answer.
Because exact division of integers often never ends: 1 divided by 3 is 0.333 with infinitely many threes, and no finite display can hold it. This calculator therefore answers in the language of long division, a quotient plus an exact remainder, which is always finite and always correct. For decimal answers at ordinary sizes, use a standard calculator.
Factorials run up to 5,000, whose result has more than 16,000 digits, and powers accept exponents up to 10,000 for any base. Both are computed by repeated exact multiplication. The practical limit is the display: results beyond 5,000 digits are summarized with their exact total digit count.
BigInt is the arbitrary-precision integer type built into modern browsers. Unlike the ordinary number type, which is a 64-bit float, a BigInt stores its digits individually and grows as needed. Arithmetic on BigInts follows the same column-by-column rules you learned in school, which is exactly why results of any size stay exact.
Mathematically 0123 and 123 are the same number, so a leading zero usually means a stray paste, a formatting artifact or a typo rather than intent. Rejecting it catches those mistakes early instead of silently computing on possibly wrong input. Zero itself, written as 0, is accepted like any other value.
Negative numbers work throughout, since the minus sign is part of exact integer arithmetic. Decimals do not, because exact decimal division usually requires infinitely many digits. For values with fractional parts, the scientific notation calculator handles the magnitude and a standard calculator handles the precision trade-off; this page covers the exact-integer territory between them.
No. Every calculation runs in your browser. Nothing is stored or transmitted.