Permutation Calculator

This permutation calculator counts ordered arrangements of distinct items chosen without replacement. Enter the total number of available items as n and the number of positions to fill as r. With 10 distinct items and 3 ordered positions, there are 10 × 9 × 8 = 720 arrangements.

Permutation Calculator inputs

Enter whole numbers from 0 to 170, with r no greater than n. Items are distinct and selected without replacement. The result is a count, with no length or currency unit.

Loading calculator. JavaScript is required.

Order is the important condition. Choosing topics A, B and C for three presentation slots gives a different arrangement from choosing C, A and B. The permutation calculator assumes each item can be used at most once and every permitted ordered choice is counted. It does not apply extra restrictions such as fixed positions or repeated identical items.

On this page

How to use the permutation calculator

Count the distinct available items and enter that whole number as n. Then enter how many items are to be chosen and placed in order as r. Both values must be whole numbers, and r cannot exceed n. The number of possible arrangements is a count, so it has no length, currency or percentage unit.

Check the meaning of a position before calculating. Three different presentation slots create an order; choosing three topics for an unordered shortlist does not. If only the group matters, use a combination calculation instead. A numerical answer can be arithmetically correct for the entered values while representing the wrong counting question.

Permutation Calculator: Fill ordered positions. n = 10 distinct available items. r = 3 ordered positions. An item is used at most once
Permutation Calculator: Fill ordered positions. n = 10 distinct available items; r = 3 ordered positions; An item is used at most once.

The ordered arrangement formula

The formula is P(n, r) = n! / (n - r)!. The exclamation mark denotes factorial: for a positive whole number, multiply it by each smaller positive whole number down to one. By definition, 0! = 1. Cancelling the shared factorial terms leaves the product of r descending factors, starting at n.

For P(10, 3), the first position has 10 choices, the next has 9 because one item has been used, and the third has 8. Multiplying these gives 720. There is no division by r! because rearranging the selected items creates a different ordered arrangement. That is the distinction from counting combinations.

Permutation Calculator: Count decreasing choices. P(n, r) = n! / (n - r)!. 10 × 9 × 8 = 720 arrangements. Changing the order changes the outcome
Permutation Calculator: Count decreasing choices. P(n, r) = n! / (n - r)!; 10 × 9 × 8 = 720 arrangements; Changing the order changes the outcome.

Three worked examples

Example one uses n = 10 and r = 3. Ten distinct topics are available for three numbered presentation slots. There are 10 × 9 × 8 = 720 possible ordered arrangements. The result assumes that the slots may contain any three different topics and that a topic cannot appear in more than one slot.

Example two uses n = 8 and r = 2. An ordered first and second item can be selected in 8 × 7 = 56 ways. Counting only the two-item groups would give 28 combinations, but every such group has two possible orders. The permutation result therefore counts each order separately.

Example three uses n = 4 and r = 4. All four distinct items must be arranged, giving 4 × 3 × 2 × 1 = 24 orders. Choosing all available items does not make the permutation result one, because their positions can still change. The corresponding unordered selection would have only one outcome.

Permutation Calculator: Three arrangement counts. P(10, 3) = 720. P(8, 2) = 56. P(4, 4) = 24
Permutation Calculator: Three arrangement counts. P(10, 3) = 720; P(8, 2) = 56; P(4, 4) = 24.

Permutation calculator checks for the counting model

The permutation calculator is for distinct items without replacement. If an item can be selected again, the number of choices does not decrease in the same way. If some items are identical, swapping those identical items may not create a new observable arrangement. Those are different counting models and need different formulas.

A useful numerical check is P(n, 1) = n: one ordered position can contain any one available item. P(n, n) = n!, while P(n, 0) = 1. The last result counts one empty arrangement. It does not mean an item was selected or that a physical action occurred; it is the counting convention that keeps the formulas consistent.

Permutation calculator check with a small set

For a manual check of the permutation calculator, use three distinct items A, B and C and choose two ordered positions. The six arrangements are AB, AC, BA, BC, CA and CB. Each first item has two possible second items. The formula gives P(3, 2) = 3 × 2 = 6, matching the list. Start with a small case like this when checking whether your interpretation treats swapped positions as different outcomes.

Exact counts, limits and keeping a result

The permutation calculator accepts 0 through 170 for n and r, subject to r not exceeding n. Blank fields, negative numbers and non-whole values are rejected. Within this range, the counting engine uses exact whole-integer arithmetic rather than storing a very large count as an approximate floating-point number. This helps preserve every digit of large results.

A long exact count may take several lines to display. Number display changes its grouping style without changing the integer. Copy keeps the displayed result when clipboard access is allowed. CSV exports the represented count as decimal digits. Some spreadsheet applications may round long numeric values, so import the exact-count column as text when preserving every digit matters.

Changing an input hides the previous answer until you calculate again. Reset restores the sample values. The arithmetic runs in your browser without sending n or r to a calculation service. Keep the original inputs and counting assumptions with the result. An exact count cannot verify whether the items were truly distinct or whether your real situation includes additional restrictions.

Questions about permutation calculator

Can the permutation calculator count repeated selections?

No. It assumes an item cannot be selected again after it is used. If repetition is allowed across r independent positions with n choices each, the unrestricted count is n raised to r, which is a different model. Confirm whether replacement is allowed before choosing a formula or interpreting the result.

Does the permutation calculator handle identical objects?

No. The items are treated as distinct. Arranging objects with repeated identical members requires accounting for which swaps produce the same observable arrangement. Typing only the total number of objects does not provide those repetition counts. Use a method designed for non-distinct objects rather than treating this result as automatically applicable.

Why does the permutation calculator return one when r is zero?

There is exactly one empty ordered arrangement. The convention P(n, 0) = 1 also follows from n! divided by n!. It is useful in counting formulas and includes the case n = 0. It does not count a selected item or claim that any real-world event has taken place.

Why is a permutation larger than the corresponding combination?

Each group of r distinct items can be ordered in r! different ways. Therefore P(n, r) = C(n, r) × r!. For example, choosing 3 items from 10 gives 120 groups; each group has 6 orders, producing 720 permutations. The difference reflects the role of order rather than a disagreement in arithmetic.

What if I need some items to stay in fixed positions?

Those restrictions are not represented by n and r alone. You may be able to count the remaining unrestricted positions separately, but that depends on the problem. Record the restriction explicitly and choose a counting method that includes it. Do not assume that the unrestricted permutation total already enforces a fixed position.

Can r be greater than n?

Not in this without-replacement model. There are not enough distinct available items to fill more than n positions without using an item again. The calculator rejects that input instead of silently switching to a repetition model or reporting a misleading count. Check whether your original problem intended replacement or a different number of positions.

Are large results rounded to eight decimal places?

These results are exact integers within the supported input range, so they do not need fractional decimal places. Their long digit strings are retained rather than converted to an approximate floating-point value. Formatting may add grouping separators, but those separators do not change the underlying count or introduce an accuracy claim about the counting assumptions.

Can I enter a percentage as r?

No. r is a whole number of selected items or ordered positions, not a percentage. Convert a stated fraction of a population into an actual item count only when the problem defines an appropriate whole number. A non-whole result does not describe a valid number of distinct positions in this model.

Does the result tell me which arrangement to choose?

No. The output counts possible ordered arrangements; it does not rank, sample or recommend one. If you need an actual random choice, use a suitable random-selection method and define any required constraints separately. The size of an outcome space alone does not establish that a selection process is fair or that each outcome is equally likely.

Does the CSV preserve my original inputs?

The export is a result record rather than a history of all attempts. Keep n, r and the statement that items are distinct and selected without replacement separately when reproducibility matters. A long numerical value imported by spreadsheet software may also require a text-column setting to preserve all its digits.

Is a browser account required to calculate?

No website account is required to use the published tool. The arithmetic is designed to run locally in a modern browser. Clipboard and file-download features depend on browser support and permissions. Those convenience features do not alter the count; if copying is unavailable, select the displayed value manually and keep its accompanying assumptions.

Sources and method notes

Method and source notes checked on 26 November 2026. The diagrams are original explanatory drawings. Read the privacy policy for other site services.