Big Number Calculator

Number Too Big for Your Calculator? Why It Happens and What to Use

Maintained by the Big Number Calculator team.

Published · Updated

A number can exceed a calculator’s display width, exact-integer range, or largest finite value. These are different limits: E notation alone does not mean the answer is wrong. BigInt avoids the fixed safe-integer range, but this calculator still limits input size and workload to protect your device.

What "too big for the calculator" looks like

Why calculators run out of digits

A handheld calculator has a fixed number of display digits, and most software stores numbers in a fixed-size floating-point format. JavaScript, used by many web calculators, stores ordinary numbers in 64-bit floating point. Whole numbers above 9,007,199,254,740,991 (253 − 1) cannot all be represented exactly in that format, so some results are rounded.

For example, 264 is exactly 18,446,744,073,709,551,616. A floating-point calculator can show it in scientific notation, but it cannot guarantee every digit of larger products. 30! is 265,252,859,812,191,058,636,308,480,000,000, a 33-digit number that many calculators can only display in rounded form.

Scientific notation can be exact or rounded

Scientific notation is a writing format, not a loss of precision by itself: 3.5 × 1019 is exactly 35,000,000,000,000,000,000. If a display keeps only a few leading digits from a longer answer, that display is rounded. This site parses scientific input exactly as written and labels its optional 15-significant-digit result view separately.

How a big integer calculator avoids the problem

A big integer calculator stores a whole number as a sequence of digits that grows as needed instead of a fixed-size value. This site uses JavaScript BigInt for that purpose, so addition, subtraction, multiplication, powers and factorials return every digit, within the published input and workload limits. Decimals are stored as exact fractions.

SituationFloating-point limitationThis exact calculator
264Representable exactly as a binary power, but a short display may omit digits18,446,744,073,709,551,616
30!Not guaranteed exact in a fixed-precision formatAll 33 digits
0.1 + 0.2May show 0.30000000000000004 in softwareExactly 0.3

Options when your number is too big

Sources

More guides