Factorial Calculator

Calculate n!

Enter the non-negative integer n and press Calculate.

Integers from 0 through 10,000.

Result

—

n! = 1 × 2 × 3 × … × n

Examples: 3! = 1·2·3 = 6  •  4! = 24  •  5! = 120

Factorial examples

n n! Load
36
424
5120
6720
103,628,800

See also: Permutation & Combination Calculator, Factor Calculator, Log Calculator, Log Base 2 Calculator, Scientific Calculator, Exponent Calculator.

How to Use This Factorial Calculator

Combinatorics homework throws factorials at you the moment a problem mentions “arrangements” or “distinct orders.” Multiplying twelve descending integers on a basic keypad is tedious, and one slip restarts the whole product chain. You need the exact integer for n!, not a rounded float that drops trailing zeros.

Think of factorial as a stack of numbered lockers: n! counts how many ways you can fill every locker from 1 through n when order matters at each step. This page multiplies those locker numbers with BigInt arithmetic so the answer stays exact even when the result spans thousands of digits.

  • Enter a non-negative integer n in the field beside the ! symbol.
  • Press Calculate to compute n! and show the product breakdown when n is small enough to display fully.
  • Read the Result panel for the factorial value (comma-separated for readability).
  • Open the Calculation block for the expanded multiplication string, like 5! = 1·2·3·4·5 = 120.
  • Click an example row or use Reset to return to the default sample (5!).

Factorial Formulas and Practical Applications

In our testing, factorials appear most often as building blocks inside permutation and probability formulas—not as isolated drill problems.

The factorial product definition

n! = 1 × 2 × 3 × … × n for positive n

0! = 1 (empty product convention)

Example walkthrough: 4! = 1 × 2 × 3 × 4 = 24. Each extra factor multiplies the running total, which is why factorial curves explode past n = 20.

Factorials inside permutations and combinations

P(n, r) = n! ÷ (n − r)!

C(n, r) = n! ÷ (r! × (n − r)!)

When a word problem already states “choose r from n,” skip manual factorial expansion and use the Permutation & Combination Calculator. When the worksheet asks for raw n!—or you are simplifying factorial ratios by hand—this tool shows the product explicitly.

Where teams use factorials outside the classroom

Quality sampling: Count ordered inspection sequences before dividing by duplicates. Security audits: PIN permutation counts reference factorial reductions—see our card-combinations resource for order-sensitive hand counts. Calculator cross-checks: Verify the Scientific Calculator n! key against this page for standalone values. Prime factor prep: Factorials factor into primes used in the Factor Calculator when you decompose large products.

Frequently Asked Questions

What is n factorial?

n! multiplies every positive integer from 1 through n. Zero factorial equals 1 by definition.

What is 0 factorial?

0! = 1. That convention keeps combination formulas valid when r = n or when no items are selected.

How large can n be?

This page accepts n up to 10,000. Results use exact integers; very large outputs may truncate visually while reporting the total digit count.

How do factorials relate to permutations?

Ordered selections use factorial ratios. Compute P(n, r) and C(n, r) directly on the permutation and combination calculator when the problem statement is already in that form.

Does the Scientific Calculator include factorial?

Yes. Use the n! key inside expressions on the Scientific Calculator; use this page when you need exact big integers and expanded multiplication steps.

Disclaimer. RapidRatio is informational only—not exam policy or grading guidance. Verify instructor requirements for exact versus decimal answers.