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
Permutation CalculatorPermutations with Repetition CalculatorPigeonhole Principle CalculatorBinomial Coefficient CalculatorInclusion-Exclusion Calculator
Home Page > Math > Advanced Math Operations

Derangement (Subfactorial) Calculator

Count permutations with no item in its starting position using MiniWebtool’s Derangement (Subfactorial) Calculator. A set size n produces !n, with a derivation and visual explanation of the derangement condition.

Need help using this tool? Ask AI

For Gemini, paste the copied question into the chat. You can also copy it below.

View the question

Free to useNo sign-up requiredInstant Results
Derangement (Subfactorial) CalculatorTry it now — free ▼
Derangements: 9 of the 24 arrangements of 4 letters leave none at home

Enter n below to get the subfactorial !n, the inclusion-exclusion steps, a table and the probability that nothing stays in place.

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

Chat with your favorite AI

For Gemini, paste the copied question into the chat. You can also copy it below.

View the question

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:

Combination CalculatorNegative Binomial Distribution CalculatorProbability Distribution CalculatorView all →
Home Page > Math > Advanced Math Operations > Derangement (Subfactorial) Calculator