home / data / big-number-calculatorlocal
Big Number Calculator (uint256 and Wei Maths)
Add, subtract, multiply, divide, raise to a power or square-root huge numbers with exact precision: wei, 2^256, 1e18 and hex.
big-number-calculatorready · runs in this browser
Runs locally in your browser. Nothing you type is sent anywhere.
data tools · free · runs in your browser · no sign-up · no wallet
01 // about this tool
Normal calculators and spreadsheets lose digits after about 15 significant figures, which breaks wei amounts and uint256 values. This uses exact integer maths with 36 decimal places of precision.
02 // how to use it
- Enter the first number. You can type 1e18, 0x hex or 2^256.
- Pick the operation and enter the second number.
- Press Run.
03 // faq
Why does Excel show the wrong wei amount?
It stores numbers as 64-bit floats, which keep only about 15 to 17 digits.
Is division exact?
It keeps 36 decimal places, then cuts off. Integers are exact.