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
Binomial Coefficient CalculatorInclusion-Exclusion CalculatorPermutation 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

You can also try our AI Math Solver GPT to solve your math problems through natural language question and answer.

Advanced Math Operations:

Top & Updated:

Pigeonhole Principle CalculatorCombination CalculatorSum of Cubes CalculatorView all →
Home Page > Math > Advanced Math Operations > Derangement (Subfactorial) Calculator