Updated on April 18th, 2026

Factorial Calculator

Created By Jehan Wadia

Math Keypad
Try an example:


Factorial Result

10! =

3,628,800
7 digits

Scientific Notation

≈ 3.6288 × 106

Step-by-Step Solution

Hide
10! = 10 × 9 × 8 × 7 × 6 × 5 × 4 × 3 × 2 × 1 = 3,628,800

Common Factorials Reference

n n! Digits

Introduction

A factorial is what you get when you multiply a whole number by every positive number below it. For example, the factorial of 5 (written as 5!) equals 5 × 4 × 3 × 2 × 1 = 120. By definition, 0! always equals 1. Factorials grow very fast — even small numbers can produce huge results.

Factorials are one of the most important building blocks in combinatorics, the branch of math that deals with counting. They help us figure out how many ways we can arrange or choose items from a group. You'll find them inside formulas for permutations, combinations, and probability. Use this factorial calculator to get instant, accurate results for any non-negative whole number.

How to use our Factorial Calculator

Enter a non-negative whole number or a factorial expression, and this calculator will give you the exact factorial result, scientific notation, digit count, and a step-by-step solution.

Simple Mode – Number Input: Type any non-negative whole number (like 5, 10, or 100) into the input field. The calculator will multiply that number by every whole number below it down to 1 and show you the full result. For example, entering 5 gives you 5! = 5 × 4 × 3 × 2 × 1 = 120. You can enter values up to 99,999.

Expression Mode – Factorial Expression Input: Type a math expression that uses factorials, such as 10!/8!, (3+2)!, or 6!/(3!×2!). This mode lets you divide, multiply, add, or subtract factorial values in a single calculation. Use the on-screen math keypad or your keyboard to build your expression.

Example Buttons: Click any of the pre-loaded example buttons like 5!, 0!, 20!, 10!/8!, or (3+2)! to instantly fill in the input and see the result. These are a quick way to explore how factorials work or test common problems.

Calculate Factorial Button: After entering your number or expression, click the "Calculate Factorial" button to run the calculation. You can also press Enter on your keyboard for the same result.

Reset Button: Click "Reset" to clear your input and return the calculator to its default state with 10! as the starting example.

Result Display: The answer appears in a highlighted result card showing the full factorial value with commas for easy reading, the total number of digits, and the value in scientific notation. For very large numbers, you can scroll through the result area to see every digit.

Copy Result Button: Click "Copy Result" to copy the exact numeric answer to your clipboard so you can paste it into other documents or calculators.

Step-by-Step Solution: Below the result, a step-by-step breakdown shows exactly how the factorial was computed. You can click "Show" or "Hide" to toggle this section on or off.

Common Factorials Reference Table: A built-in table at the bottom lists factorial values for commonly used numbers like 0!, 1!, 5!, 10!, 20!, 50!, and 100!, along with their digit counts, so you can quickly look up values without calculating.

What Is a Factorial?

A factorial is the product of a whole number and every whole number below it down to 1. We write it using an exclamation mark. For example, 5! (read as "five factorial") means 5 × 4 × 3 × 2 × 1, which equals 120. The factorial of 0 is defined as 1. This is not a random rule — it is needed to make many math formulas work correctly.

The Factorial Formula

The general formula for any non-negative integer n is:

n! = n × (n − 1) × (n − 2) × … × 2 × 1

Factorials grow extremely fast. While 5! is just 120, the value of 20! is already 2,432,902,008,176,640,000. By the time you reach 100!, the result has 158 digits. This rapid growth is one reason why factorials are so powerful in counting problems. If you need to understand how quickly values change, our percent change calculator can help quantify growth between consecutive factorials.

Why Factorials Matter in Combinatorics

Factorials are the backbone of combinatorics, which is the branch of math that deals with counting arrangements and selections. Here are the three most common places you will see them:

Key Factorial Facts to Remember

Real-World Uses of Factorials

Factorials show up in many real-world situations. Probability problems use them to figure out the odds of events, such as the chance of drawing a specific hand in a card game. Computer scientists use them to measure how many possible orders a sorting algorithm might need to check. Scientists use them in statistical formulas and in series expansions like the Taylor series, where each term divides by a factorial. In statistics, factorials appear in hypothesis testing — tools like our chi-square calculator and p-value calculator rely on distributions built from factorial-based formulas. When analyzing data sets, you may also find factorials embedded in the calculations behind standard deviation, confidence intervals, and sample size determinations.

How to Use This Calculator

Simple Mode lets you type a single number and instantly get its factorial. Expression Mode lets you enter more complex expressions involving multiple factorials, multiplication, division, addition, and subtraction — perfect for computing permutations, combinations, or any formula that uses factorials. The calculator shows the full result, its scientific notation, digit count, and a step-by-step breakdown so you can follow the math yourself. For related mathematical operations, you might also find our percentage calculator or mean, median, mode calculator helpful in your work.


Frequently Asked Questions

What is the largest number I can enter in the factorial calculator?

You can enter any whole number up to 99,999 in Simple Mode. The calculator uses big number math, so it can handle very large results. Keep in mind that factorials of big numbers can have thousands of digits and may take a moment to compute.

Can I calculate the factorial of a decimal or fraction?

No. This calculator only works with whole numbers (0, 1, 2, 3, and so on). The factorial function is defined only for non-negative integers. If you need factorials of decimals, you would use the gamma function, which is a different tool.

How does Expression Mode work?

Expression Mode lets you type math problems that use factorials together with addition, subtraction, multiplication, and division. For example, you can type 10!/8! or 6!/(3!*2!). The calculator figures out each factorial first, then does the rest of the math and gives you the final answer.

What does the exclamation mark mean in math?

The exclamation mark ! after a number means "factorial." It tells you to multiply that number by every whole number below it down to 1. For example, 4! means 4 × 3 × 2 × 1 = 24.

Why does the calculator say my result has so many digits?

Factorials grow extremely fast. Even though the input number looks small, the result can be huge. For example, 20! has 19 digits, 50! has 65 digits, and 100! has 158 digits. The digit count badge helps you see how large the answer really is.

Can I use the calculator on my phone?

Yes. The calculator works on phones, tablets, and computers. The math keypad in Expression Mode is designed with large buttons so they are easy to tap on a touchscreen.

What is scientific notation and why is it shown?

Scientific notation is a short way to write very large numbers. Instead of writing all the digits, it shows a small number multiplied by a power of 10. For example, 10! = 3,628,800 is shown as ≈ 3.6288 × 106. This makes it easier to understand how big the number is.

How do I calculate a permutation using this calculator?

Switch to Expression Mode and type the permutation formula. For example, to find P(10, 2), type 10!/8! because P(10, 2) = 10! / (10−2)! = 10! / 8!. The calculator will simplify it and give you the answer, which is 90.

How do I calculate a combination using this calculator?

Use Expression Mode and type the combination formula. For example, to find C(6, 2), type 6!/(2!*4!) because C(6, 2) = 6! / (2! × 4!). The calculator will compute it and return 15.

Is the result exact or rounded?

The result is exact. This calculator uses big integer math, so every digit is accurate no matter how large the number. The only rounded value is the scientific notation, which is an approximation shown for convenience.

What happens if I enter a negative number?

The calculator will show an error message. Factorials are only defined for non-negative integers (0 and above). There is no factorial for negative numbers.

Can I use variables like n or k in my expression?

You can type variables using the expanded math keypad, but the calculator cannot compute a numeric answer with variables. Instead, it will show a simplified symbolic explanation of the expression, such as how n!/k! simplifies when n is greater than k.

How do I copy just the number without commas?

Click the Copy Result button. It automatically removes the commas and copies the plain number to your clipboard so you can paste it anywhere.

Why is 0 factorial equal to 1 and not 0?

0! = 1 is a definition that makes math formulas work correctly. For example, the combination formula C(n, 0) = n! / (0! × n!) should equal 1, because there is exactly one way to choose nothing from a group. That only works if 0! = 1.

What is the difference between Simple Mode and Expression Mode?

Simple Mode takes one number and computes its factorial. Expression Mode lets you build a math problem with multiple factorials and operations like division or multiplication. Use Simple Mode for quick lookups and Expression Mode for formulas.


Related Calculators

Permutation Calculator

Visit Permutation Calculator

Combination Calculator

Visit Combination Calculator