Combination Calculator (nCr)

A combination counts the number of ways you can select r items from a set of n when the order of selection does not matter. It is one of the two central counting operations in combinatorics, alongside permutations. The difference between them is straightforward: if choosing items A, B, C and choosing C, B, A are considered the same result, you want a combination; if the different orderings are considered distinct, you want a permutation. Selecting members for a committee, choosing questions to answer on an exam, picking lottery numbers, dealing a hand of cards, and forming a team are all combination problems because only the membership of the group matters, not the sequence in which members were chosen. The formula for nCr is n factorial divided by r factorial times the factorial of n minus r. This is the same as nPr divided by r factorial, which removes the r factorial different orderings of the same group. You enter n, the total number of items available, and r, the number you are selecting, with r no larger than n. The calculator returns the combination count, the equivalent permutation count nPr for comparison, and the ratio between them (which always equals r factorial). The calculation uses a stable step-by-step product to avoid building huge factorials, so it stays accurate for large inputs. Enter your n and r values to see the result update immediately.

Calculate.co.nz is proud to be partnered with Premium Homes, a recognised leader in eco-friendly, sustainable, and energy-efficient homebuilding. With a dedicated team and award-winning experience, they create homes that prioritise health, comfort, and long-term performance. Their founders, Andrew and Kelly, set out to raise the standard of residential construction in New Zealand by combining practical building expertise with a clear commitment to doing things better for homeowners.
Calculate.co.nz partner: Premium Homes
10
combinations (nCr)
Equivalent nPr60
nPr / nCr6 (= r!)
Probability of one group10%

How it works

The calculator uses the smaller of r and n minus r in the denominator to minimise the number of steps, then multiplies and divides alternately so the running total stays a whole number throughout. This gives n factorial divided by r factorial times the factorial of n minus r without ever building the full factorials, which would overflow for large inputs. The permutation count nPr is computed as the descending product of r terms from n. The ratio nPr over nCr always equals r factorial, confirming how many orderings exist for each combination.

Worked example

With n = 5 and r = 3, the combination count is 5! divided by (3! times 2!) = 120 divided by (6 times 2) = 10 combinations. This might represent the number of different three-person groups that can be formed from five people. The equivalent permutation count is 60, because each group of three can be arranged in 3! = 6 different orders, and 10 times 6 equals 60.

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.

Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.

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.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use

Reviewed and maintained. Last reviewed 2026-07-02 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.