Everyday Math Essentials
Cover quick calculations for percentages, fractions, averages, and ratios used in school, shopping, and spreadsheets.
Calculate n! (n factorial)
A factorial is the product of all positive integers less than or equal to a given number. It is denoted by the symbol "!" after the number.
The factorial of n (written as n!) is calculated as:
By mathematical convention, 0! is defined as 1. This definition makes many mathematical formulas work correctly, particularly in combinatorics and calculus. It represents the number of ways to arrange zero objects, which is exactly one way (do nothing).
A factorial is the product of all positive integers from 1 to n. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120. It's used extensively in mathematics, particularly in permutations, combinations, and probability calculations.
0! is defined as 1 by mathematical convention. This definition ensures consistency in mathematical formulas, especially in combinatorics. It represents the number of ways to arrange zero objects, which is one way (the empty arrangement).
Factorials grow extremely fast. This calculator can handle numbers up to 170, beyond which the result exceeds JavaScript's number limits. For very large factorials, the result is displayed in scientific notation (e.g., 1.2345e+100).
Factorials are not defined for negative numbers in standard mathematics. The factorial function is only defined for non-negative integers (0, 1, 2, 3, ...). If you try to calculate a negative factorial, you'll receive an error message.
Factorials are used in many areas: calculating permutations (arrangements), combinations (selections), probability theory, series expansions in calculus, and solving various mathematical problems. For example, the number of ways to arrange 5 books on a shelf is 5! = 120.
The number of permutations (arrangements) of n distinct objects is n!. For example, 3 objects can be arranged in 3! = 6 different ways. Partial permutations use the formula P(n,r) = n! / (n-r)!, which represents arranging r objects from n total objects.
These grouped paths are designed to help you continue with the most common follow-up calculations in this category.
Cover quick calculations for percentages, fractions, averages, and ratios used in school, shopping, and spreadsheets.
Move from powers and logarithms into more advanced solving tools when the problem gets more complex.
Calculate dimensions, area, and triangle relationships using a connected geometry workflow.