Permutation & Ordered Arrangement Calculator

Count exact ordered outcomes without repetition, with replacement, or when identical groups repeat.

Enter your values

Calculations run on your device; inputs are not sent to our server.

Core result

Use this only when position or order changes the outcome

Choose no repetition for podiums, schedules or ordered samples from distinct items; choose repetition allowed for independent positions such as a code alphabet; or enter identical group counts to arrange all letters or objects. The result stays separate from the existing nCr tool because unordered selection answers a different question.

Exact formulas and order comparison

Without repetition, P(n,r)=n!/(n−r)!. With repetition, the count is n^r. For N total items with identical group counts a,b,…, the count is N!/(a!b!…). Integer arithmetic preserves the exact result. In no-repetition mode, the calculator also shows C(n,r) and verifies P(n,r)=C(n,r)×r!.

Independent checks

Choosing and ordering 3 from 6 gives 6×5×4=120, while the unordered count is 20 and each selection has 3!=6 orders. Four positions with 10 choices each give 10⁴=10,000. MISSISSIPPI has group counts 4,4,2,1, so 11!/(4!4!2!1!)=34,650. Selecting zero positions produces one empty arrangement.

Input mistakes, interpretation and limits

All values are whole numbers. Without repetition, r cannot exceed n; zero is allowed. Group counts must be positive and total at most 1,000. Exact answers longer than 240 digits are condensed in the primary result with their digit count, not rounded into a different integer. The tool counts outcomes but does not generate lists, enforce password policies, or model probability weights.

Formula source

OpenStax Counting Principles defines permutations and repeated-item arrangements.

Unexpected result? Tell us the inputs and what you expected.