Since 2010 · Powering 2M+ tool runs every month
Since 2010
Add to Chrome

My Toolbox

Automatic Mode

No saved tools yet.

Go Premium
Related tools
Sum of Cubes CalculatorPermutation CalculatorBinomial Coefficient CalculatorInclusion-Exclusion CalculatorBase-N Calculator
Home Page > Math > Advanced Math Operations

Derangement (Subfactorial) Calculator

Calculate the number of derangements (subfactorial !n) of n elements, where nothing stays in its original position. Includes a step-by-step inclusion-exclusion formula, a visualization, a derangement table and probability analysis.

Free to useNo sign-up requiredUpdated Feb 2026
Derangement (Subfactorial) CalculatorTry it now — free ▼

Try quick examples:

!3 = 2 !5 = 44 !10 (Large) !20 (Huge)
Tip: The subfactorial !n counts permutations where no element stays in its original position. Try n = 5 to see the classic hat-check problem in action!

Embed Derangement (Subfactorial) Calculator Widget

About Derangement (Subfactorial) Calculator

Reference this content, page, or tool as:

"Derangement (Subfactorial) Calculator" at https://MiniWebtool.com/derangement-subfactorial-calculator/ from MiniWebtool, https://MiniWebtool.com/

by miniwebtool team. Updated: Feb 19, 2026

Advanced Math Operations:

Math SolverWhat would you like to solve?

Math Solver

Try
Browse expression examples

Choose an example to fill the input, edit its numbers, then Solve. log uses base 10; use ln for the natural logarithm.

Numbers & factors

Fractions & division

Powers, roots & logs

Algebra & equations

Calculus

Geometry & trigonometry

Top & Updated:

Pigeonhole Principle CalculatorCombination CalculatorMarkov Chain Steady State CalculatorView all →
Home Page > Math > Advanced Math Operations > Derangement (Subfactorial) Calculator