Permutations and Combinations Calculator

This permutations and combinations calculator works out how many ways you can choose and arrange items from a larger set. You enter the total number of items, n, and the number you are selecting, r, and the tool returns the number of permutations, written nPr, and the number of combinations, written nCr. A permutation counts ordered arrangements, so the order in which you pick items matters, while a combination counts unordered selections, where only which items you pick matters and not their order. The permutation formula is n factorial divided by n minus r factorial. The combination formula divides that result by r factorial, because each unordered group can be arranged in r factorial different orders. Students, teachers, lottery and probability enthusiasts, and anyone working with counting problems use these figures to count outcomes, work out probabilities and plan experiments. Three tips help you use the tool well. First, decide whether order matters before you start, since ordered tasks like ranking finishers or setting a passcode use permutations, while unordered tasks like choosing a committee or a hand of cards use combinations. Second, nPr is always at least as large as nCr for the same n and r, because every combination produces r factorial permutations, so if your answer for combinations is larger than permutations you have swapped the two. Third, r cannot be greater than n, so check your inputs if you get a zero or an error. These counts grow extremely fast, so even modest values of n can produce very large numbers.

720
Permutations (nPr)
Combinations (nCr)120
r factorial6

nPr = n! / (n-r)!. nCr = n! / (r! (n-r)!).

How it works

Permutations are n factorial divided by n minus r factorial, counting ordered arrangements. Combinations divide that by r factorial to remove the order, counting unordered selections. If r is greater than n both results are zero.

Worked example

With n of 10 and r of 3, permutations are 10 times 9 times 8, which is 720. Dividing by 3 factorial, which is 6, gives 120 combinations.

Related calculators

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

© 2019 to 2026 Calculate.co.nz. All rights reserved.