UTILS.
100% in-browser
🔢

Big Number Calculator

Add, subtract, multiply, divide, mod, raise to a power or factorial arbitrarily large integers with exact BigInt precision.

About this tool

Do arithmetic on whole numbers of any length with perfect precision. Enter two integers, pick an operation and get the exact result — no rounding, no scientific notation, no lost digits. It all runs in your browser.

The calculator parses your input directly into native BigInt values (no eval is ever used) and supports addition, subtraction, multiplication, integer division with remainder, modulo, exponentiation and factorial of the first operand. Division shows both the quotient and the remainder; every result also reports its exact digit count.

Use it for cryptography, combinatorics, checksums or any place where ordinary calculators overflow at about 16 digits. Division by zero, negative exponents and negative factorials are rejected, and extremely large powers or factorials are capped so the page stays responsive.

Frequently asked questions

How large can the numbers be?
Addition, subtraction, multiplication, division and modulo work on integers of essentially unlimited length. Powers and factorials are capped so the browser stays responsive.
How does it stay exact?
It uses JavaScript's native BigInt type, which stores arbitrarily large integers exactly, instead of floating-point numbers that lose precision beyond about 16 digits.
How does integer division work?
Division truncates toward zero and reports the quotient plus the remainder, so 17 ÷ 5 gives a quotient of 3 and a remainder of 2. Dividing by zero is rejected.
Can I use decimals?
No. This tool is for exact integer arithmetic only, so decimal points are not accepted; commas, spaces and underscores between digits are ignored.

More tools