Subfactorial Calculator
Use this free Subfactorial Calculator to quickly get accurate results in seconds, free and instantly offline with no signup required ever, trusted by professionals in Austin, Chicago, Miami, Denver, Seattle, and New York for reliable daily use without accounts, subscriptions, limits, or delays on any device for everyday personal and business workflows daily.
Calculate !n (derangements).
Calculator Inputs
About Subfactorial
Use this free Subfactorial Calculator to quickly get accurate results in seconds, free and instantly offline with no signup required ever, trusted by professionals in Austin, Chicago, Miami, Denver, Seattle, and New York for reliable daily use without accounts, subscriptions, limits, or delays on any device for everyday personal and business workflows daily.
The Subfactorial Calculator computes n factorial, the product of all positive integers from 1 to n, supporting subfactorial calculations. Factorials grow extremely quickly and are fundamental to combinatorics, probability theory, and many areas of mathematical analysis. This calculator handles values up to 170, covering virtually all practical applications from permutations and combinations to statistical distributions and series expansions.
Simply enter a non-negative integer into the Subfactorial Calculator. The calculator instantly computes the factorial using efficient multiplication, displaying the result in a readable format. For subfactorial applications, values up to 170 are supported, covering the full range of practical combinatorial and statistical calculations.
The Subfactorial Calculator makes factorial calculations instant and error-free, whether you are working on combinatorics problems, probability calculations, or mathematical series. Factorials appear throughout mathematics and statistics, and having a reliable calculator for subfactorial work saves time and ensures accuracy in your computations.
Secret santas: Boston offices running $10,000 holiday draws generate valid deranged assignments. Chicago exam boards shuffling $500,000 anonymized grading derange papers from authors on 09/22/2026.
Volunteer posts: Miami festivals assigning $200,000 volunteer shifts ensure nobody guards their own gate. Denver labs randomizing trial arms blind assignments properly.
Recurrence use: Subfactorials follow n-times-previous-plus-alternating-one, letting spreadsheets extend tables without factorials.
Probability limit: Large-n derangement probability converges near 36.8 percent, a handy constant for party wagers.
Exclusion proof: Inclusion-exclusion derives counts cleanly, alternating signs down to zero factorial defined as one.
Where it is used
Hobbyists exploring mathematical concepts and patterns, professionals applying math in finance, construction, or design, and data analysts working with statistical data sets use the Subfactorial Calculator to understand complex mathematical concepts and explore mathematical relationships. It is an essential tool for anyone working in mathematical computation and analysis who needs reliable subfactorial results without manual calculation errors Boston offices run $10,000 secret-santa draws, Chicago exam boards shuffle $500,000 anonymized grading, and Miami festivals assign $200,000 volunteer posts.
How to use the Subfactorial
- Number — enter the value (e.g. 10).
- Calculate — press the Calculate button to see the result instantly above.
Formula
n! = n * (n-1) * (n-2) * ... * 2 * 1
Examples
Subfactorial Value
Frequently Asked Questions
- What is a factorial and how is it calculated for subfactorial?
- The factorial of a non-negative integer n, written as n followed by an exclamation point, is the product of all positive integers from 1 to n. For example, 5 factorial equals 5 times 4 times 3 times 2 times 1 which equals 120. By definition, 0 factorial equals 1. The Subfactorial Calculator handles these calculations instantly for your subfactorial work.
- How quickly do factorials grow for subfactorial applications?
- Factorials grow faster than exponential functions. While 10 factorial is about 3.6 million, 20 factorial exceeds 2.4 quintillion. This extremely rapid growth is why factorials quickly exceed standard number representations, which is why the Subfactorial Calculator supports values up to 170 for subfactorial calculations.
- What are factorials used for in subfactorial applications?
- Factorials are fundamental to permutations and combinations in counting problems, probability theory, statistical distributions, Taylor series in calculus, and algorithm analysis. They appear in formulas for arrangements, lottery odds, quality control sampling, and many other practical subfactorial applications.
- Why is 0 factorial equal to 1 for subfactorial?
- The mathematical definition of 0 factorial equals 1 is necessary for consistency across many formulas. For example, the number of ways to arrange 0 items is exactly one way doing nothing. The combination formula also requires 0 factorial equals 1. This convention ensures all subfactorial formulas involving factorials work correctly at boundary cases.
- What is the maximum factorial value the Subfactorial Calculator can calculate?
- The Subfactorial Calculator supports factorials up to 170 factorial, which produces a number with approximately 307 digits. Values beyond 170 exceed the maximum representable number in standard floating-point arithmetic. For most practical subfactorial applications, even values as large as 20 factorial are rarely needed.