Factorial Calculator — n! (n Factorial)

Evaluate n! = n × (n−1) × … × 1 for non-negative integers—including 0! = 1—using exact browser math. Nothing is uploaded.

10! = 3628800

By Muhammad Abdullah Rauf · Founder, EverydayTools.proUpdated 2026

What is a factorial calculator (n!)?

A factorial calculator computes n! = n × (n−1) × … × 1 for non-negative integers, with 0! = 1 by definition. Results use exact big integers in your browser—no upload.

The factorial of a non-negative integer n, written n!, is the product of all positive integers from 1 through n. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120. By convention, 0! = 1.

Factorials grow extremely fast: 20! has 19 digits; 100! has 158 digits. They are the building block for permutations nPr = n!/(n−r)! and combinations nCr = n!/(r!(n−r)!) in combinatorics, probability, and computer science.

EverydayTools evaluates n! with JavaScript BigInt for n from 0 through 500—exact integers, no rounding. Your input stays in the browser tab and is not sent to a server.

Enter n → get exact n! locally. Use combination or permutation calculators when you need nCr or nPr directly.

Quick answers

Concise answers for common searches — definitions, steps, and comparisons.

What is n factorial in plain language?

n! means multiply every whole number from 1 up to n. Example: 4! = 4×3×2×1 = 24. Special case: 0! = 1.

How is factorial used in permutations and combinations?

Permutations nPr = n!/(n−r)! count ordered picks; combinations nCr = n!/(r!(n−r)!) count unordered picks. Both need factorials in the denominator and numerator.

Is my number n uploaded?

No. n! is calculated locally in your browser with BigInt—n is not sent to EverydayTools servers.

Why is there a maximum n of 500?

Factorials beyond n ≈ 500 can exceed practical browser memory for exact integers. Use smaller n for homework; specialized math software for research-scale values.

How to use Factorial Calculator — n! (n Factorial)

  1. Enter n

    Type a non-negative whole number (0 ≤ n ≤ 500). Decimals and negative values show an error.

  2. Read n! result

    The tool multiplies 1 × 2 × … × n using arbitrary-precision integers and displays the full value (for example 10! = 3628800).

  3. Use 0! when needed

    Remember 0! = 1 by definition—useful in empty-product and combinatorics edge cases.

  4. Chain to nPr or nCr

    For ordered or unordered selections, open the permutation or combination calculator instead of hand-multiplying factorials.

Factorial Calculator — n! (n Factorial) examples

Small homework check

Input

n = 6

Output

6! = 720

6 × 5 × 4 × 3 × 2 × 1 = 720—common intro combinatorics exercise.

Zero factorial

Input

n = 0

Output

0! = 1

By definition, the empty product is 1; required for consistent nCr formulas.

Building block for 10C3

Input

n = 10 (then use combination tool for r = 3)

Output

10! = 3628800

10C3 = 10!/(3!×7!) = 120; factorial tool verifies 10! before you divide in other tools.

Who uses Factorial Calculator — n! (n Factorial)?

Common real-world scenarios where this tool saves time.

Combinatorics and statistics homework

Verify n! by hand or spot-check steps before submitting permutation and combination problems.

Algorithm and CS coursework

See exact factorial sizes for complexity examples (n! growth) without scientific notation rounding.

Probability prep

Understand how counting formulas use factorials before using nPr, nCr, or the probability calculator.

Quick mental-math checks

Confirm 8!, 12!, or similar values while studying—faster than multiplying by hand.

Reference tables

Factorial vs permutation vs combination

ToolFormulaWhat it answersExample
Factorial (n!)n × (n−1) × … × 1Product of first n integers5! = 120
Permutation (nPr)n!/(n−r)!Ordered arrangements10P3 = 720
Combination (nCr)n!/(r!(n−r)!)Unordered selections10C3 = 120

Factorial vs probability calculator

ToolOutput typeWhen to use
Factorial calculatorExact integer n!Counting products; formula building blocks
Probability calculatorDecimal P(A) between 0 and 1Chance of independent events

Common mistakes to avoid

Forgetting that 0! equals 1

Use n = 0 in the tool to see 0! = 1—required for empty sets and consistent nCr edge cases.

Entering n > 500 expecting exact factorial

This tool caps at n = 500 for browser safety. Split problems or use computer algebra for larger n.

Using factorial when you need nCr or nPr directly

Open the combination or permutation calculator—they apply the full formula so you do not divide factorials by hand.

Expecting decimal/scientific notation for huge n!

Results are exact integers (BigInt). Very large n! displays many digits—that is correct, not an error.

Advertisement

Frequently Asked Questions

What is n factorial?

n! = n × (n−1) × … × 1 for n ≥ 1. By definition, 0! = 1. Example: 5! = 120.

How do I calculate factorial on this page?

Enter a non-negative integer n (0–500) and the tool instantly shows n! using exact integer math in your browser.

What is 0 factorial?

0! = 1 by convention. The calculator returns 1 when n = 0.

How is factorial used in permutations and combinations?

nPr = n!/(n−r)! and nCr = n!/(r!(n−r)!). Use the permutation or combination calculator when you need those results directly.

Why is there a maximum n of 500?

Factorials grow faster than exponential; n > 500 can exceed practical browser memory for exact BigInt results.

How is this different from the probability calculator?

Factorial returns a counting product (integer). The probability calculator returns event likelihoods between 0 and 1.

Can factorial results be negative?

Factorial is defined only for non-negative integers. Negative or fractional n show an error—not a factorial value.

Is my input uploaded?

No. n is processed locally in your browser—it is not sent to EverydayTools servers.

Privacy, accuracy, and trust

Privacy

Values of n are processed in your browser—they are not uploaded to EverydayTools servers.

Accuracy

Uses JavaScript BigInt for exact n! when 0 ≤ n ≤ 500.

Educational combinatorics aid—not a substitute for formal coursework grading policies.

More free tools for the same workflow.

Advertisement

Reviewed by EverydayTools Editorial Team on 2026-05-20.