Factorial Calculator - Calculate n! Instantly Online

optimisation du moteur de recherche
  1. Home
  2. Math Tools
  3. Factorial Calculator
Share: Report

Factorial Calculator

100% free · Runs 100% in your browser · Nothing is uploaded · No signup needed

Did you know? 0! = 1 by definition. The result updates live as you type.

Factorials grow extremely fast — 170! is the largest factorial JavaScript can represent as an exact integer here. Your number is processed locally in your browser and is never sent to any server.

Sur Factorial Calculator

What Is a Factorial?

A factorial is one of the simplest and most powerful ideas in mathematics. The factorial of a whole number, written with an exclamation mark such as 5!, is the product of every positive whole number from 1 up to that number. So 5! means 5 times 4 times 3 times 2 times 1, which equals 120. Factorials answer a very practical question: in how many different orders can things be arranged? If you have five books on a shelf, there are 5! or 120 different ways to arrange them. If you have three friends to seat in a row, there are 3! or 6 ways. This simple multiplication grows very fast, and that rapid growth is exactly why factorials appear in probability, statistics, combinatorics, and computer science.

The definition is easy to remember. For any positive whole number n, n! equals n multiplied by (n minus 1), multiplied by (n minus 2), and so on down to 1. The number 1! is 1, because there is only one way to arrange a single item. The number 0! is also defined as 1, by convention, and this is not a trick. Mathematicians define 0! as 1 so that formulas for permutations and combinations keep working when nothing is chosen or arranged. An empty arrangement has exactly one form: doing nothing. That convention keeps the mathematics consistent, and our calculator applies it automatically.

Factorials grow faster than most people expect. The value 2! is 2, 3! is 6, 4! is 24, 5! is 120, 6! is 720, 7! is 5,040, 8! is 40,320, 9! is 362,880, and 10! is 3,628,800. By 20!, the result has 19 digits. By 100!, the result has 158 digits. A deck of 52 playing cards, for example, can be shuffled in 52! ways, a number so large that every shuffle in history has almost certainly produced an order never seen before.

How the Factorial Calculator Works

This Factorial Calculator takes the number you enter and multiplies every whole number from 1 up to that number, showing each step of the product so you can follow the working. Enter 5 and it shows 5 times 4 times 3 times 2 times 1 equals 120. Enter 0 and it returns 1, with an explanation of the empty-product convention. Enter 10 and it shows the full product ending in 3,628,800. The calculation runs entirely in your browser, so your number never leaves your device, and the answer appears instantly with no waiting and no sign-up.

Behind the scenes, the calculator uses exact integer arithmetic for the values most people need, so 10! comes out as exactly 3,628,800 rather than a rounded approximation. For very large inputs, the result becomes too long to display comfortably, so the tool switches to scientific notation and can also show the number of digits. That is useful in a classroom or an exam revision session, where knowing that 100! has 158 digits is often more useful than reading all 158 digits. The tool also guards against invalid input: factorials are defined only for whole numbers that are zero or greater, so a negative number or a decimal is rejected with a clear message instead of a silent wrong answer.

Worked Example

Let us work through the classic example step by step. To find 5!, write out the product 5 times 4 times 3 times 2 times 1. Multiply the first two numbers: 5 times 4 equals 20. Multiply by the next number: 20 times 3 equals 60. Multiply by the next: 60 times 2 equals 120. Multiply by the last: 120 times 1 equals 120. So 5! equals 120, and the full worked product is 5! = 5 × 4 × 3 × 2 × 1 = 120. The same method works for 10!. The product 10 times 9 times 8 times 7 times 6 times 5 times 4 times 3 times 2 times 1 equals 3,628,800. You can check the size by grouping: 10 times 9 is 90, 90 times 8 is 720, and the number keeps growing at every step until it reaches 3,628,800.

Another useful check is the relationship between neighbouring factorials. Each factorial is the previous factorial multiplied by the new number, so 6! equals 6 times 5!, which is 6 times 120, or 720. This recursive pattern makes factorials easy to extend: once you know 10! is 3,628,800, you know 11! is 11 times that, or 39,916,800. Students often use this pattern to verify homework without starting from scratch, and teachers use it to show how quickly the values climb.

How to Use This Calculator

Using the tool takes only a few seconds. Type a whole number into the input box, for example 5 or 10, then press the calculate button. The result appears immediately, together with the worked product so you can see every multiplication. Try 0 to see why 0! equals 1, try 1 to confirm the simplest case, and try 20 to see how large the numbers become. If you enter a decimal such as 4.5 or a negative number such as minus 3, the tool explains that factorials need a whole number of zero or more, and invites you to correct the input. There is nothing to install and nothing to download, and the tool works on a phone, tablet, or computer.

For homework, enter the number from your question and compare the worked product with your own working. For exam revision, practise by writing the product out by hand first, then use the calculator to check your answer. For a quick classroom demonstration, try 3!, 4!, and 5! in order and watch the jump from 6 to 24 to 120. The instant feedback helps the pattern stick, and the visible steps make it clear that a factorial is a real multiplication, not a mysterious symbol.

Features

This calculator shows the full worked product for every result, handles the special case of 0! correctly, uses exact integer arithmetic for everyday values, switches to scientific notation for very large results, and explains invalid input in plain language. It is free to use, works without an account, and runs entirely in your browser, so it is fast and private. It is also mobile friendly, with a large input box and a clear result panel that is easy to read on a small screen. Students, teachers, and anyone working with permutations, combinations, or probability will find it a reliable companion for quick checks and for learning.

Factorials also connect directly to other calculations you may need. A permutation counts ordered arrangements and uses factorials in its formula, while a combination counts unordered selections and divides one factorial by two others. Probability problems about drawing cards, arranging letters, or choosing teams all lean on factorials. If you are working through a statistics problem, try our Statistics Calculator next. If you need a percentage for a probability result, use our Percentage Calculator. And for general arithmetic or scientific work, our Scientific Calculator is always close at hand.

Running a study blog, a maths tuition site, or a small business website? FistHost shared hosting starts from just $0.99 per month, giving you fast and reliable hosting without a large monthly bill. The annual plan also includes a free domain, so you can launch your site with a professional address from day one and keep your costs simple and predictable.

With FistHost, you get dependable hosting, helpful support, and an easy setup that lets you focus on your content instead of server settings. Whether you are publishing study notes, building a portfolio, or starting an online shop, FistHost shared hosting from $0.99 per month with a free domain on the annual plan is a practical and affordable place to begin.

Frequently Asked Questions

What is 5! in maths? 5! equals 120. It is the product 5 times 4 times 3 times 2 times 1, worked out step by step as 20, then 60, then 120, then 120.

Why is 0! equal to 1? By convention, 0! is defined as 1 so that permutation and combination formulas work when nothing is selected. An empty arrangement has exactly one form, and this definition keeps the mathematics consistent.

What is 10! equal to? 10! equals 3,628,800. It is the product of every whole number from 1 to 10, and it shows how quickly factorials grow from the small values such as 5! equals 120.

Can I calculate the factorial of a negative number? No. Factorials are defined only for whole numbers that are zero or greater. A negative number or a decimal has no factorial in this basic definition, and the calculator will ask for a valid whole number instead.

Where are factorials used in real life? Factorials count arrangements and possibilities. They are used in probability, statistics, combinatorics,scheduling problems, card games, lottery odds, and computer algorithms that explore every ordering of a set of items.

User Reviews

No reviews yet. Be the first to review this tool!

Write a Review

★★★★★

Captcha

Reviews are protected by captcha and moderated before they appear.


FistHost

Hosting That Grows With You

Start at $0.99/mo and scale
when you are ready

Start Growing
FistHost Blazing-Fast Web Hosting Plans from $0.99/mo · Free domain included Get Hosting