Free Online Factorial Calculator With Every Digit
Work out a factorial with every digit correct. Ordinary calculators stop being exact at 23 factorial and give up entirely at 171, where the answer overflows to infinity. This one multiplies whole numbers, so a thousand factorial comes out in full, with its digit count, its trailing zeros and the multiplication written out.
The sum runs in your browser. Nothing you type is sent anywhere.
❗ The number
A factorial is every whole number from one up to n, multiplied together. It has to be a whole number and it cannot be negative.
The multiplication written out, and where the running total passes the point at which an ordinary calculator stops being exact.
| Step | Multiply by | Running total |
|---|
| When | Calculation | Actions |
|---|
Number formatting
Rounding only changes what you see. The sum itself always runs at full precision, so a rounded number never feeds into the next step.
Display
Full screen hides the page around the tool. Press Escape, or the button in the bar, to come back.
History
Your data
Settings, history and saved setups live in this browser and nowhere else. There is no account and no server, which also means clearing them here is final.
Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.
How to Work Out a Factorial
Three steps, and the third is where the interesting part is.
What to Know About Factorials
Where calculators stop being right, which is not where you would guess.
Key Features & Capabilities
What it does, and what it deliberately does not.
About Factorials
A factorial is the simplest possible piece of arithmetic to describe and one of the easiest to get quietly wrong. Multiply every whole number from one up to n. Five factorial is a hundred and twenty. That is the whole definition, and it is the reason factorials appear everywhere that counting arrangements appears: how many orders a deck of cards can be in, how many ways a team can be picked, how many terms a series needs.
The problem is size. Factorials grow faster than almost anything else you meet, and they outgrow ordinary number formats early. Where exactly is a more interesting question than it looks. The format a calculator uses keeps about sixteen significant digits, so twenty one factorial, which has twenty, ought to be the first one it gets wrong. It is not, because that format holds a whole number multiplied by a power of two, and factorials are stuffed with factors of two. Twenty one and twenty two factorial both survive. Twenty three factorial is the first one that comes back wrong, and it is wrong by 1,572,864 with nothing at all to say so.
That is the dangerous failure, because the answer still looks like a precise whole number ending in a tidy run of zeros. If you are using the factorial to count something, or inside a combination, the missing digits are the answer. By a hundred and seventy one it stops pretending and returns infinity, which at least tells you something went wrong. This page avoids both by multiplying whole numbers rather than decimals, using the big integer support browsers have had for years, so a thousand factorial comes out in full, all 2,568 digits, every one of them right.
Two numbers beside the answer are usually more useful than the answer itself. The digit count tells you the scale at a glance. The number of trailing zeros is a question in its own right, and the way to get it is not to divide by five: you count the multiples of five, then of twenty five, then of a hundred and twenty five, because each of those contributes an extra factor of five and it is the fives that are scarce. A hundred factorial ends in twenty four zeros, and the quick guess of twenty is wrong.
Frequently Asked Questions
Zero, negatives, fractions, and how big it can go.
Every Other Math Tool
35 more tools in this set. All free, all in your browser.