Combination (nCr) Calculator

Calculate C(n,r) instantly: the number of ways to choose r items from a set of n items when order does not matter. Enter any whole numbers for n and r and the result updates immediately with full step-by-step working.

Calculate.co.nz is proud to be partnered with Health Based Building, a leader in sustainable and health-conscious building innovation. With over a century of experience, they develop high-performance systems like Foreverbreathe Specification, Magnum Board, and Foreverbreathe Paints to support energy-efficient, non-toxic living environments. Their commitment to healthier homes aligns with our belief that informed choices lead to better outcomes for Kiwi households.
Calculate.co.nz partner: Health Based Building
Standard formula  C(n,r) = n! / (r! x (n-r)!) as defined in combinatorics.

1. Inputs

2. Quick Reference

Result

C(n, r)
120
Number of combinations
nPr (for comparison)
720
Permutations (order matters)
r! (divisor)
6
nCr = nPr / r!

Step-by-step working

Calculation Details

n (total items)10
r (items chosen)3
n - r7
n!3,628,800
r!6
(n-r)!5,040
r! x (n-r)!30,240
C(n,r) = n! / (r! x (n-r)!)120

Symmetry Check

C(n, r)120
C(n, n-r)120
These are equal?Yes
Total arrangements nPr720
nPr / r! = nCr720 / 6 = 120
n choose 01
n choose n1

What is a Combination?

A combination is a selection of items from a larger set where order does not matter. If you are choosing a 3-person committee from 10 candidates, it does not matter whether you pick Alice first or last -- the committee is the same. C(10,3) = 120 tells you there are 120 distinct committees possible.

Combinations are written as C(n,r), nCr, or nCr. The notation "n choose r" is also standard. In Pascal's Triangle, C(n,r) appears as the (r+1)th element of the (n+1)th row.

The Combination Formula

The combination formula is:

C(n,r) = n! / (r! x (n-r)!)

Where n! ("n factorial") means n x (n-1) x (n-2) x ... x 1. For example, 5! = 5 x 4 x 3 x 2 x 1 = 120.

A practical shortcut: instead of computing full factorials, write out only r terms in the numerator starting from n, then divide by r!. For C(10,3):

(10 x 9 x 8) / (3 x 2 x 1) = 720 / 6 = 120

Worked Example: Default Values

With n = 10 and r = 3:

There are 120 ways to choose any 3 items from a set of 10 when the order of selection does not matter.

Combinations vs Permutations

ConceptFormulaC(10,3) exampleWhen to use
Combination (nCr)n! / (r! x (n-r)!)120Order does not matter (teams, committees, hands)
Permutation (nPr)n! / (n-r)!720Order matters (rankings, arrangements, sequences)
RelationshipnCr = nPr / r!720 / 6 = 120Divide permutations by the number of orderings of r items

Common Applications

Special Cases

Related Calculators

Method: Standard combinatorics formula C(n,r) = n! / (r! x (n-r)!). Factorials are computed iteratively using JavaScript BigInt for exact integer arithmetic at any practical value of n. The calculator handles values up to n = 170 before results exceed JavaScript's safe integer range; for larger values BigInt is used throughout.

This calculator computes exact integer results using the standard combination formula. Results are exact for all inputs shown. For very large n (above a few hundred), the number of digits in the result grows rapidly.

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.