Skip to main content

Factorial Calculator

Free · No sign-up · Works in your browser

Common Factorials

0!1
1!1
2!2
3!6
4!24
5!120
6!720
7!5040
8!40320
9!362880
10!3628800
12!479001600
15!1307674368000
20!2432902008176640000
25!15511210043330985984000000
50!30414093201713378043612608166064768844377641568960512000000000000
100!93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000

About Factorials

The factorial function (n!) multiplies all positive integers up to n. It's fundamental in permutations, combinations, probability, and many areas of mathematics. This calculator uses BigInt for exact results even for very large factorials.

A factorial is the product of every whole number from one up to n, written n!. It counts the number of ways a set can be arranged: three books can sit on a shelf in 3! = 6 orders, and ten books in 3,628,800. That is the whole idea, and it is why factorials appear wherever arrangements, orderings or selections are being counted.

Factorials grow faster than almost anything else in elementary mathematics. 20! already exceeds two quintillion, and 70! overflows a standard double-precision float. Growth this steep is the reason brute-force approaches to ordering problems become impossible so quickly.

How fast it grows

nn!Scale
5120Trivial
103,628,800Millions
151,307,674,368,000Trillions
202.43 × 10¹⁸Exceeds a 64-bit signed integer
528.07 × 10⁶⁷Orderings of a deck of cards
701.20 × 10¹⁰⁰Larger than a googol

Why 0! equals 1

There is exactly one way to arrange nothing — the empty arrangement — so 0! = 1 by definition, and it is not an arbitrary convention. It also falls out of the recurrence n! = n × (n−1)!: setting n = 1 gives 1! = 1 × 0!, which requires 0! to be 1. Defining it this way keeps the permutation and combination formulas working at their boundaries instead of needing special cases.

Permutations and combinations

  • Permutations, where order matters: P(n,r) = n! ÷ (n−r)!. Choosing a first, second and third place from eight runners gives 336 outcomes.
  • Combinations, where order does not: C(n,r) = n! ÷ (r!(n−r)!). Choosing three people from eight for a committee gives 56.
  • The difference is the r! in the denominator, which divides out the orderings you do not want to count separately.

A number worth sitting with

A shuffled deck of 52 cards has 52! possible orders — about 8 × 10⁶⁷. That is more arrangements than there are atoms in our galaxy. Any deck you shuffle properly has, with overwhelming probability, never existed in that exact order before in human history. Factorial growth is the reason a statement that sounds like hyperbole is simply true.

Related tools

Quick answer

Factorial Calculator is a free browser tool from SimpleCounter. Free online factorial calculator. Calculate n! for any number from 0 to 170. See common factorial values and learn about factorials. Enter your values and the result updates as you type — there is nothing to install and no account to create.

Definition: Factorial Calculator
A factorial calculator takes the numbers you enter and returns the result using the standard formula for that calculation, so you do not have to work it out by hand.

Key facts

Key facts about Factorial Calculator
CostFree, with no account and no usage limit.
Where the maths happensIn your browser. The values you type are not sent to a server.
DevicesAny modern browser on phone, tablet, laptop or desktop.
AccuracyStandard published formulas, shown with the units you selected.
Intended useEstimates for everyday and educational use, not professional advice.

How to use the factorial calculator

  1. Type your value into the first field.
  2. Choose the unit or option that matches your figures, if the tool offers a choice.
  3. Read the result — it recalculates immediately, with no submit button.
  4. Change any input to compare a second scenario side by side.

How this page relates to the rest of the site

Explained in
Guides and how-tos
Published by
SimpleCounter

Disclaimer: This tool is provided for educational and informational purposes only. Results are estimates based on standard formulas and the inputs you provide. For financial, medical, legal, or tax decisions, consult a qualified professional. See our full disclaimer.

Frequently Asked Questions

What is a factorial?

A factorial (n!) is the product of all positive integers from 1 to n. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120.

What is 0 factorial?

0! = 1 by definition. This is needed for combinatorics formulas to work correctly.

What is the largest factorial you can calculate?

Our calculator handles up to 170! using standard precision. Beyond that, the numbers exceed JavaScript's safe range, but we use BigInt for exact results.

Benefits of using the Factorial Calculator

What you actually get compared with a mechanical clicker, a notes app, or trying to hold the number in your head.

Nothing to install, nothing to sign up for

Open the factorial calculator and start counting in the same second. No account, no email, no trial.

Your count survives real life

Totals are saved on your device as you go, so a locked screen, a closed tab, or a lost signal does not reset anything.

Works offline once loaded

Install it to your home screen and it keeps working in a warehouse, a pool hall, a field, or a plane — no connection needed.

Private by default

Counts stay in your browser. There is no cloud sync, no profile, and nothing about what you count is sent to us.

Free, with no sign-up
Works offline once loaded
Counts stay on your device
Installable as an app
Runs in your browser — nothing to download
72+ counter types available

Share your setup

We publish only real, attributed feedback here — so this space is intentionally empty until we have your words to put in it. Tell us what you use the factorial calculator for and we will add your story, with your name, to this page.

Share your experience