Skip to main content

Mathematics

Factorial Calculator n!

Factorial Calculator

n! = 1×2×3×...×n

Ask a Question

Have a question about this calculator? Get a detailed answer.

Variable Legend

n= non-negative integern!= factorial of n

Definition

Product of all positive integers from 1 to n.

Base case

Recursive definition

Each factorial is n times the previous.

Stirling's approximation

Accurate estimate for large n.

💡

Pro Tip

Stirling's approximation: n! ≈ √(2πn) × (n/e)ⁿ. For large n, this is very accurate. For n=10: exact = 3,628,800; Stirling gives 3,598,696 (0.83% error).

Difficulty:Intermediate

Did you know?

The number of ways to shuffle a standard 52-card deck is 52! ≈ 8 × 10⁶⁷. This number is so large that every time you shuffle a deck, you are almost certainly creating an ordering that has never existed before in human history.

Deep Dive

Read the full guide on how to use this calculator effectively

Read more
Mathematically verified
Reviewed May 2026
Used 52K+ times
Our methodology

Get Weekly Math Tips

Join 12,000+ subscribers who get calculator tips every week.

🔒
100% Free
No sign-up ever
Accurate
Verified formulas
Instant
Results as you type
📱
Mobile Ready
All devices

Settings

PrivacyTermsAbout© 2026 PrimeCalcPro