Factorial Calculator
Enter a non-negative integer to instantly compute its factorial with a full step-by-step expansion.
Use the Factorial Calculator
Enter a Non-Negative Integer
Quick presets
Enter a value and press Calculate.
Result
Copied!
Summary
The Factorial Calculator computes n! — the product of all positive integers from 1 up to n — for any non-negative integer you enter. It displays the full step-by-step expansion (e.g. 5! = 5 × 4 × 3 × 2 × 1 = 120) so you can follow every multiplication. Results are shown using JavaScript BigInt arithmetic, so there is no upper precision limit for reasonable inputs.
How it works
- Type a non-negative integer into the input field.
- The calculator immediately computes n! using BigInt arithmetic.
- The step-by-step expansion is shown below the result.
- Use the Copy button to copy the numeric result to your clipboard.
- Click Reset to clear the input and start over.
Use cases
- Check combinatorics homework — permutations and combinations both require n!.
- Verify probability calculations that involve factorial terms.
- Explore how quickly factorial values grow for large n.
- Compute exact large factorials without floating-point rounding errors.
- Teach or learn the definition of factorial step by step.
- Quick reference when working through statistics or discrete math problems.
Frequently Asked Questions
Last updated: 2026-05-29 · Reviewed by Nham Vu