Big Number Calculator
Performs exact arithmetic on numbers far beyond 64 bits, including power, modulo and factorial.
Arithmetic on integers far beyond what a calculator can hold: powers, factorials, modular arithmetic, all exact. An ordinary calculator stops telling the truth at 2^53, where 9007199254740992 and 9007199254740993 become the same number, and everything after that comes back confidently wrong.
Expression
+ − × ÷ % ^ and ! with brackets. Digits may be grouped with commas or underscores; hex (0xFF), binary (0b1010) and octal (0o17) literals are read too.
Result
115,792,089,237,316,195,423,570,985,008,687,907,853,269,984,665,640,564,039,457,584,007,913,129,639,936
digits
78
exact
yes
Functions
abs(a)— Magnitude, without the signgcd(a, b)— Greatest common divisorlcm(a, b)— Least common multiplepow(a, b)— a to the power of b — same as a^bmodpow(a, b, m)— a^b mod m, computed without ever forming a^bfact(n)— n factorial — also written n!sqrt(n)— Integer square root, rounded downmin(a, b)— The smaller of twomax(a, b)— The larger of two
How to use it
Type the expression
Plus, minus, times, divide, modulo, power and factorial with brackets. Digits can be grouped with commas or underscores, and hex, binary and octal literals are read too.
Read the digit count
Beside the answer, because at this size the number of digits is often the more useful fact. 100! has 158 of them.
Group the digits to read them
A 158-digit number is unreadable in one run. Grouping puts separators in without changing the value.
Common questions
What happens when I divide?
Integer division: the answer is truncated and the remainder is shown beside it. Everything here is integer arithmetic. For an exact fractional value use the fraction calculator.
Why was my power refused?
Because the answer would have more than 100,000 digits, and computing and rendering it would freeze the tab. The limit is on how long something would take rather than on how large a number can be.
Is modular exponentiation supported?
Yes, and it is done by repeated squaring rather than by computing the power first. That is the difference between an instant answer and a number with a million digits that then gets thrown away.
Feed it from
Number Base Converter
Converts between binary, octal, decimal, hexadecimal and any base up to 36, with bitwise views.
Factors, GCD & LCM
Factorises an integer and computes GCD, LCM, divisors and primality for one or several numbers.
Matrix Calculator
Multiplies, inverts, transposes and row-reduces matrices in exact rational arithmetic, and finds determinant, rank and trace.
Unit Converter
Converts length, weight, area, volume, temperature, speed, pressure and data units, including Korean units.
Next
These accept what this tool produces, so the result can go straight in.
Matrix Calculator
Multiplies, inverts, transposes and row-reduces matrices in exact rational arithmetic, and finds determinant, rank and trace.
Number Base Converter
Converts between binary, octal, decimal, hexadecimal and any base up to 36, with bitwise views.
Factors, GCD & LCM
Factorises an integer and computes GCD, LCM, divisors and primality for one or several numbers.
CSV Viewer
Opens a large delimited file with type detection, column stats and sorting, without loading it all into memory.
Currency Converter
Converts between about thirty currencies at the ECB’s daily reference rates, crossed through the euro, or at a rate you type in.
Date Difference
Counts days, weeks, months and years between two dates, with a D-day view and business-day option.