Derangement Calculator
Count derangements !n — arrangements where nothing stays in its original place.
Count derangements !n — arrangements where nothing stays in its original place.
Results
Enter your details and click Calculate to see your results.
About This Calculator
!n = (n − 1)(!(n − 1) + !(n − 2)), !0 = 1, !1 = 0.
Example
Example: the default inputs → Derangements: !5 = 44.
Assumptions
Exact maths — check the input format shown in each field.
Frequently Asked Questions
What is !5?
44.
What is the chance nobody draws their own name?
About 36.8% (1/e) for large groups.
Related Calculators
About the Author

Imran Hossain
Professional SEO, Digital Marketer Specialist
I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist
View full profile