ThisCalculator

Everyday

Factorial Division Calculator: How to Simplify n!/k!

Updated · Standard formula, shown below

Quotient (n! / k!) 5,040
n! value
3,628,800
Result
k! value
720
Result
Numerator factorial (n!)
10
You entered

Factorial Division Calculator: How to Simplify n!/k!

This calculator works out the quotient of two factorials, such as 10! / 6!, and returns the simplified integer result. You enter the numerator factorial (n!) and the denominator factorial (k!), and the calculator computes n! divided by k! directly, avoiding the need to expand and cancel terms by hand. It also shows the result as a decimal if the division is not exact, which is useful for combinations and permutations.

Formula

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

When you divide one factorial by another, the formula is:

n! / k! = n × (n−1) × (n−2) × … × (k+1)

This works because all factors from 1 to k cancel out. For instance, 10! / 6! = (10 × 9 × 8 × 7 × 6 × 5 × 4 × 3 × 2 × 1) / (6 × 5 × 4 × 3 × 2 × 1) = 10 × 9 × 8 × 7 = 5040.

In the calculator, the expression fact(n) / fact(k) computes the full factorials and then divides them. This is straightforward and accurate for moderate values of n (typically up to 170! in most calculators, because larger factorials exceed the floating-point range).

Worked Example

Using the default values from the calculator: n = 10, k = 6.

  1. Compute 10! = 10 × 9 × 8 × 7 × 6 × 5 × 4 × 3 × 2 × 1 = 3,628,800.
  2. Compute 6! = 6 × 5 × 4 × 3 × 2 × 1 = 720.
  3. Divide: 3,628,800 ÷ 720 = 5,040.

The calculator returns the quotient as 5040, which matches the simplified product 10 × 9 × 8 × 7.

When to Use Factorial Division

Factorial division appears in many areas of mathematics and applied fields. The most common uses are:

  • Permutations: The number of ways to arrange r items from a set of n distinct items is n! / (n−r)!. For example, the number of ways to pick and arrange 3 winners from 10 contestants is 10! / 7! = 720.
  • Combinations: The number of ways to choose r items from n without regard to order is n! / (r! × (n−r)!). Here the factorial division appears as part of the formula.
  • Probability: Many probability problems involve counting outcomes, and factorial division simplifies the counting.
  • Binomial coefficients: Often written as “n choose r�, these are computed using factorial division.
  • Series and limits: In calculus, factorial ratios appear in Taylor series and convergence tests.

In short, whenever you see a fraction with factorials in numerator and denominator, this calculator gives you the simplified result instantly.

How to Read the Result

The quotient is the integer or decimal that results from dividing the two factorials. For example, 10! / 6! = 5040. This number represents the product of the integers from k+1 up to n. It is always an integer when k ≤ n, because the division cancels all factors up to k.

If you enter k > n, the calculator will still compute a value, but the result will be a fraction less than 1 (e.g., 6! / 10! = 1/5040 ≈ 0.000198). The calculator shows the decimal form. Note that factorial division is not commutative: n! / k! ≠ k! / n! unless n = k.

Also note that the calculator shows the individual factorial values (n! and k!) so you can verify the inputs. These can be very large numbers; for n > 170, the factorial exceeds the maximum double-precision floating-point number (about 1.8 × 10^308), and the calculator may return “Infinity� or an error. In that case, you should use the simplified product form instead.

Common Mistakes and Misconceptions

  • Confusing n! / k! with (n/k)!: The factorial applies only to the whole number, not to the quotient. For example, 10! / 5! is not (10/5)! = 2! = 2; it is 10×9×8×7×6 = 30240.
  • Forgetting that 0! = 1: This is a common error. When k = 0, the denominator is 1, so n! / 0! = n!.
  • Using the wrong order: In permutations, the denominator is (n−r)!, not r!. Double-check which factorial goes in the denominator.
  • Rounding too early: If you are working with combinations, do not round intermediate factorial values; keep exact integers until the final division.
  • Assuming the result is always an integer: It is an integer when k ≤ n, but if you enter k > n, the result is a fraction. The calculator handles both cases.

Limits and Alternatives

The main limitation of the calculator is the size of the factorials. Because factorials grow extremely fast, even modest values like 100! are enormous (about 9.3 × 10^157). The calculator uses standard double-precision arithmetic, which can represent integers exactly up to 2^53 ≈ 9 × 10^15. Beyond that, the factorial values may lose precision, and the quotient may be approximate. For most practical problems (n ≤ 20), the results are exact.

If you need to compute n! / k! for very large n, you can use the simplified form: multiply the integers from k+1 to n. For example, to compute 1000! / 999!, you can see immediately that it equals 1000, without computing the full factorials. The calculator may not handle such large numbers, but the logic is simple.

For combinations and permutations, you can use dedicated calculators that apply the full formulas. This factorial division calculator is the building block for those calculations.

Frequently Asked Questions

What does n! / k! equal in simple terms?

It equals the product of all integers from k+1 to n. For example, 10! / 6! = 10 × 9 × 8 × 7 = 5040. This is because the factors 1 through 6 cancel out.

Can I use this calculator for permutations?

Yes, but only for the part that is n! / (n−r)!. For a permutation of r items from n, you would enter n as the numerator and (n−r) as the denominator. For example, to find the number of ways to arrange 3 items from 10, enter n=10 and k=7 (since 10−3=7), and the result is 720.

What if I enter k larger than n?

The calculator will still compute the division, giving a fraction less than 1. For instance, 5! / 10! = 1/30240 ≈ 0.00003307. This is mathematically correct, though such a ratio is less common in counting problems.

Why does the calculator show “Infinity� for large n?

Because factorials grow so fast that for n > 170, the value exceeds the maximum number that can be represented in double-precision floating-point format (about 1.8 × 10^308). The calculator cannot display such large numbers, so it returns “Infinity�. In such cases, use the simplified product form instead.

Is n! / k! always an integer?

Yes, if k ≤ n and both are non-negative integers. The division cancels all factors from 1 to k, leaving the product of integers from k+1 to n, which is an integer. If k > n, the result is a fraction.

How is this different from a combination calculator?

A combination calculator computes n! / (r! × (n−r)!), which includes an extra division by r!. This calculator only does the single division n! / k!. You can use it as a step in a combination calculation by first computing n! / (n−r)! and then dividing by r! separately.

Related

Formula used
in n | Numerator factorial (n!) | - | 10 | 0
in k | Denominator factorial (k!) | - | 6 | 0
out q | Quotient (n! / k!) | - | fact(n) / fact(k) | 0
out nfact | n! value | - | fact(n) | 0
out kfact | k! value | - | fact(k) | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.