Calculadora de Fatorial
- Created by
- Renato Passos, Eng. de Software
- Reviewed by
- Renato Passos, Eng. de Software
Last updated: Apr 18, 2026
Formula
n! = 1 × 2 × 3 × … × n
About this calculator
The Factorial Calculator computes the factorial of a number n, denoted as n!. The factorial is the product of all positive integers from 1 to n. For example, 5! = 1 × 2 × 3 × 4 × 5 = 120. This tool supports values of n up to 170, because beyond that the result exceeds standard computing limits (overflow).
It works simply: you enter a non-negative integer in the input field and click calculate. The system performs sequential multiplication from 1 to n, following the mathematical definition. For n = 0, the result is 1 by convention. The calculation is efficient even for large numbers, but keep in mind that the result grows very quickly.
Use this calculator in situations involving combinations, permutations, probabilities, and counting problems. For example, to calculate the number of ways to arrange items (permutations) or when using the combination formula C(n,k) = n! / (k! (n-k)!). It is also useful in statistics, such as calculating probability distributions.
Cautions: factorial of negative numbers is undefined; the calculator only accepts non-negative integers. Also, for n above 170, the result is infinity (overflow) due to floating-point number limitations. For very large values, consider using approximations like Stirling's formula.
Frequently asked questions
What is the factorial of a number?
Factorial of n is the product of all positive integers from 1 to n. Example: 4! = 1 × 2 × 3 × 4 = 24.
What is the factorial of 0?
By definition, 0! = 1. This is useful in combination and permutation formulas.
Up to what number can I calculate?
The calculator supports n up to 170. Above that, the result is infinity due to overflow.
Can I calculate factorial of a negative number?
No. Factorial is only defined for non-negative integers.
How is factorial used in everyday life?
It is used in probabilities, combinations (e.g., lotteries), permutations (e.g., anagrams), and statistics.