JESUS CHRIST IS THE ONLY TRUE GOD
Other calculator

Combination Generator

Generate combinations of r items from a short comma-separated item list.

Your calculationPrivate in your browser
Report a result

Start with a worked example

Open the worked example for Combinations. The example starts with Items (comma-separated) = A,B,C,D, Items per combination = 2.

Combination Generator formula

Enumerates unordered subsets of size r; output is capped for browser safety.

Inputs and units

Inputs and example values for Combination Generator
InputFormat / rangeExample
Items (comma-separated)Follow the input format aboveA,B,C,D
Items per combinationWhole number, min 0, max 102

Worked example

The values listed in Inputs and units give A, B | A, C | A, D | B, C | B, D | C, D for Combinations.

Combinations
A, B | A, C | A, D | B, C | B, D | C, D
Generated count
6

Results and assumptions

Change Items per combination from 2 to 3 and keep the other example inputs fixed. The updated answer is A, B, C | A, B, D | A, C, D | B, C, D (Combinations).

Fix an input or unexpected result

Items per combination is required. Enter items per combination using the format and bounds in the input table. Zero and an empty field are different: use zero only if it is allowed and represents your data.

See how to check a result or report an issue.