Ordering people
If you want to arrange 5 people in a line, 5! gives the number of possible full-order arrangements. That is one of the simplest and most common uses of factorial.
Calculate exact factorial values for non-negative whole numbers. Review digit count, trailing zeros, and how factorial connects to permutations, combinations, probability, and discrete math workflows.
Use this free factorial calculator to compute exact values of n! for any non-negative whole number. It is useful for permutations, combinations, probability, combinatorics, and discrete math problems. The tool also shows digit count, trailing zeros, and quick links into the Permutations Calculator, Combinations Calculator, and the wider Math & Statistics Calculators category.
Enter any non-negative whole number to compute its exact factorial and a few useful counting insights.
Factorial is defined here for non-negative whole numbers only.
Factorial grows extremely fast, so exact integer handling is important for larger values.
Factorial is a building block for permutations and combinations. That means it often sits behind ranking problems, card-hand counts, event-odds calculations, and many discrete-math formulas. After calculating n!, continue with the Permutations Calculator or Combinations Calculator when you want to move from raw factorial growth into real counting scenarios.
This tool computes exact factorial values for non-negative integers and adds practical context such as trailing zeros and digit count. It is built for students, analysts, and anyone working through combinatorics or discrete mathematics problems.
Factorial multiplies a whole number by every positive integer below it until reaching 1. That product grows extremely quickly, which is why factorial appears in formulas that count arrangements, selections, and other rapidly expanding outcome spaces.
If you want to arrange 5 people in a line, 5! gives the number of possible full-order arrangements. That is one of the simplest and most common uses of factorial.
Large counting problems like shuffling a deck use factorial-based math because every card order matters. Even moderate factorial values grow surprisingly fast.
Factorial often appears behind permutations, combinations, binomial coefficients, and many event-counting formulas before probabilities are simplified into percentages or ratios.
If you want to move from a factorial result into a real selection or arrangement problem, continue with the Permutations Calculator for order-sensitive counts or the Combinations Calculator when order does not matter. For event-likelihood work after counting, the Probability Calculator is the natural next step.
Factorial is one of the core building blocks of counting math. It turns up whenever arrangements, selection counts, or fast-growing outcome spaces are involved.
Trailing zeros in n! come from factors of 10, which are created by 2 × 5 pairs. Because factors of 2 are plentiful, counting factors of 5 tells you how many zeros appear at the end.
Factorial sits upstream of several other math tools. It often leads naturally into permutations, combinations, probability, and later into sampling or distribution problems.
It multiplies a whole number by every positive integer below it. For example, 5! means 5 × 4 × 3 × 2 × 1. Factorials are widely used in combinatorics, probability, permutations, series expansions, and discrete mathematics.
Factorial Calculator is part of the Math & Statistics Calculators collection. If you want a broader view of similar workflows, open the Math & Statistics Calculators category page or browse all QuickTools categories.
Common next steps after this tool include Random Number Generator, Mean Calculator and Median Calculator.
Generate random numbers using three statistical distributions — Integer (discrete uniform), Float (continuous uniform), and Normal (Gaussian bell curve). Supports seeded output for reproducibility, no-duplicates mode, sort order, and instant statistics including mean, median, standard deviation, and mode.
Calculate all six types of mean simultaneously — Arithmetic, Geometric, Harmonic, Quadratic (RMS), Weighted, and Trimmed. Paste any dataset and instantly get the right average for your context, plus median, mode, standard deviation, variance, and coefficient of variation.
Find the median of any dataset instantly, with quartiles (Q1, Q3), IQR, five-number summary, interactive box plot, outlier detection using Tukey fences, percentile table, MAD, and Pearson skewness. Robust central tendency analysis for statistics, data science, and research.
Find the mode(s) of any dataset with a complete frequency distribution table, visual bar chart, and automatic distribution type classification — unimodal, bimodal, multimodal, or amodal. Ideal for statistics, data science, surveys, and educational analysis.
Format, validate, minify, or sort JSON data with configurable indentation. Instantly check for syntax errors, view node count and nesting depth — free, no sign-up required.
Generate QR codes for URLs, text, Wi-Fi credentials, vCards, and more. Customise foreground and background colour, error correction level, margin, and download as SVG or PNG — free and instant.
Calculate your Body Mass Index, healthy weight range and ideal weight using metric or imperial units.
Estimate daily calorie needs based on age, gender, height, weight and activity level using Mifflin-St Jeor, Harris-Benedict or Katch-McArdle formulas.