Factorial Calculator screenshot

Factorial Calculator

Compute n factorial in your browser for whole numbers up to 170. Larger, negative and fractional inputs are refused with the ceiling.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Instant
No signup

What this factorial calculator does

The page multiplies one through n, which is the factorial: twenty reports 2432902008176640000 exactly. Doubles stay exact through twenty-two factorial, and the loop runs to one hundred and seventy, whose three-hundred-and-seven digits still fit a double; one hundred and seventy-one refuses with the ceiling named. Negatives have no factorial here, fractions are not whole numbers, and both are refused rather than rounded into an answer the visitor never asked for.

How to use it

Factorial Calculator: paste the whole number into the box above, and press Run to get the factorial below.

Worked example

Input:

20

Output:

20! = 2432902008176640000

Why it runs in your browser

The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads whole number and returns factorial; reloading the page discards both.

The page multiplies one through n, which is the factorial: twenty reports 2432902008176640000 exactly. Doubles stay exact through twenty-two factorial, and the loop runs to one hundred and seventy, whose three-hundred-and-seven digits still fit a double; one hundred and seventy-one refuses with the ceiling named. Negatives have no factorial here, fractions are not whole numbers, and both are refused rather than rounded into an answer the visitor never asked for.

Compute n factorial in your browser for whole numbers up to 170. Larger, negative and fractional inputs are refused with the ceiling.

How to use it

Factorial Calculator: paste the whole number into the box above, and press Run to get the factorial below.

Why it runs in your browser

The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads whole number and returns factorial; reloading the page discards both.

What to Expect

Best for

  • Converting whole number to factorial when the data is already on screen.

What this tool keeps

  • Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.

Sample input

20

Sample output

20! = 2432902008176640000

Frequently asked questions

How do I use the factorial calculator?

Factorial Calculator: paste the whole number into the box above, and press Run to get the factorial below.

Is my input uploaded?

No. The text is parsed on this page with JavaScript and is never posted to a server.

Is there a size limit?

Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.