Math calculators

Permutation Calculator

Compute how many ordered arrangements of r items from n (nPr).

nPr

720

What is Permutation Calculator?

A permutation calculator finds nPr: the number of ordered arrangements of r distinct items selected from n distinct items without repetition. Order creates a different outcome, so assigning gold, silver, and bronze positions is a permutation rather than a combination.

The implementation truncates inputs to integers, requires 0 ≤ r ≤ n ≤ 1000, and multiplies r descending factors beginning at n. It returns a JavaScript number, whose exact-integer range is much smaller than the largest counts these inputs can produce.

Why Use This Tool?

Ordered counting grows even faster than unordered selection. A direct calculator avoids listing arrangements and clarifies the role of each available position.

Permutation counts can support probability denominators only when the modeled ordered outcomes and likelihood assumptions are appropriate. The tool itself supplies no probability model.

  • Count ordered selections.
  • Handle partial arrangements with r below n.
  • Connect full arrangements to factorial.

How Does This Tool Work?

Enter n, the number of available distinct items, and r, the number of ordered positions to fill. The calculator multiplies n × (n−1) and continues for exactly r factors.

When r is zero, the empty arrangement count is 1. When r equals n, the product is n!. Invalid ranges return no result.

Understanding Your Results

The result counts sequences, rankings, or assignments where swapping selected items creates another outcome. For 10P3, selecting A-B-C differs from B-A-C.

The model excludes repeated use of an item. Passwords that allow a character to repeat, arrangements with identical objects, and circular arrangements require different formulas.

Why Tracking This Matters

Order can multiply an unordered count by r!, so confusing permutations and combinations can produce a dramatically wrong result. Naming the positions or asking whether a swap matters is a practical test.

Large permutation products quickly exceed exact floating-point integer precision and may overflow to Infinity. The validation limit of 1000 is an input rule, not a guarantee that every result is finite or exact.

Benefits of Using Permutation Calculator

  • Ordered nPr calculation
  • Partial and full arrangements
  • Simple descending-product algorithm
  • Input range validation
  • Correct zero-selection boundary
  • No hidden repetition model

How Is the Result Calculated?

The factorial identity cancels the unused (n−r)! tail from n!, leaving r descending factors. The code computes that product directly instead of calculating two factorials.

nPr = n! ÷ (n − r)! = n × (n − 1) × … × (n − r + 1)

n
The total number of distinct available items, truncated to an integer.
r
The number of ordered positions filled, truncated to an integer.
!
Factorial, the descending product to 1.
  • Order matters.
  • Items cannot repeat.
  • Large outputs may not be exact finite JavaScript integers.

Tips for Better Results

  • Use combinations if rearranging a selection changes nothing.
  • Use a repetition formula when items may be reused.
  • Enter whole numbers with 0 ≤ r ≤ n.
  • Describe the ordered positions before choosing the model.
  • Use arbitrary-precision arithmetic for exact large results.

Conclusion

The permutation calculator counts ordered, no-repetition selections with a descending product. Confirm that position changes the outcome, distinguish repetition from nonrepetition, and use arbitrary-precision tools when a very large exact count is required.

Privacy & how it works

This calculator runs entirely in your browser with JavaScript. Your inputs are not uploaded to The ToolSphere servers for this tool. Privacy Policy · Disclaimer.

FAQ

When should I use a permutation?expand_more

Use nPr when selecting distinct items without replacement and the order, rank, role, or position of selected items creates different outcomes.

How is a permutation different from a combination?expand_more

A combination counts groups without order. A permutation counts each ordering of a selected group separately.

What is nPr when r equals n?expand_more

It is n!, the number of ways to arrange all n distinct items in a sequence.

What is nP0?expand_more

It equals 1 because there is one empty ordered arrangement.

Does this allow repeated items?expand_more

No. Each selected item is removed from the remaining choices. Repetition-allowed sequences commonly use n raised to r instead.

Can r be greater than n?expand_more

No, not without repetition. The calculator returns no result when r exceeds n.

What happens to decimal inputs?expand_more

They are truncated to integers before validation and calculation. Use whole numbers to express the counting problem accurately.

Why might a large answer be imprecise?expand_more

The product uses JavaScript double-precision numbers. Large integers can exceed the exact range or even the finite range despite accepted inputs.

Is this calculator free to use?expand_more

Yes. You can use the calculator without creating an account or paying for its core calculation features.

Are my entries uploaded or saved?expand_more

No. The calculation runs in your browser, and the values you enter are not sent to The ToolSphere servers by this calculator.

Is this calculator free?expand_more

Yes. No signup required.

Are my numbers uploaded?expand_more

No. Calculations run in your browser. Inputs are not sent to The ToolSphere servers for this tool.

Suggest an improvement

Tell us what would make this tool more useful. We read every suggestion.

Feedback for: Permutation Calculator