Calculadora de Permutações

P(n,k) = n! / (n−k)!.
Created by
Renato Passos, Eng. de Software
Reviewed by
Renato Passos, Eng. de Software

Last updated: Apr 18, 2026

P(n,k)
720

Formula

P(n,k) = n! / (n−k)!

About this calculator

The Permutations Calculator computes the number of ways to order k distinct elements chosen from a set of n elements, where order matters. The formula used is P(n,k) = n! / (n−k)!. For example, if you have 5 books and want to know how many ways you can arrange 3 of them on a shelf, the calculator returns 60 permutations. This tool is useful in combinatorial analysis, probability, and statistics problems.

The operation is simple: you enter the value of n (total size of the set) and k (number of elements to be ordered). The calculator checks if k ≤ n and applies the formula. If k > n, the result is zero, as it is impossible to choose more elements than available. The calculation uses factorials, which can generate large numbers, but the tool handles this efficiently.

Use this calculator in situations such as: determining the number of distinct passwords with non-repeating characters, calculating ways to rank participants on a podium, or planning work shifts with distinct positions. It is especially useful in contests, entrance exams, and probability problems where the order of elements matters.

Cautions: ensure that order really matters. If order does not matter, you should use a combinations calculator. Also, remember that k must be less than or equal to n. Large values of n (above 20) may result in huge numbers, but the calculator displays the result in scientific notation when necessary.

Frequently asked questions

What is the difference between permutation and combination?

In permutation, the order of elements matters, while in combination, order does not matter. For example, choosing 3 students for a board (president, vice, secretary) is a permutation; choosing 3 students for a study group is a combination.

What if k is greater than n?

If k > n, the result is zero, as it is impossible to select more elements than are available in the set.

How to calculate permutations with repeated elements?

This calculator only solves simple permutations (without repetition). For permutations with repetition, use the formula n! / (n1! n2! ... nk!).

Can I use this calculator for large numbers like n=100?

Yes, but the result will be an extremely large number. The calculator displays the value in scientific notation and may have precision limitations for very high values.

Other Probabilidade e Chances calculators