Home › Calculators › Combinations Generator

Combinations Generator

Type a list of items, choose how many go in each group, and get every possible combination where order does not matter. Turn on repetition to allow an item more than once, then copy the list or download it as CSV.

Last updated:

Separate with commas, spaces or new lines, or type a word to use its letters

Up to 20,000 rows; the count is always exact

Enter your values to see the result.
Advertisement
Advertisement

How to use the Combinations Generator

  1. Enter your items separated by commas, spaces or new lines, or type a word such as ABCDE to use its letters.
  2. Set k, the number of items in each combination.
  3. Tick Allow repetition if an item may appear more than once in a group (for example scoops of the same ice cream flavor).
  4. Press Generate. The exact count appears at the top and the combinations are listed in a table.
  5. Copy or download: Copy results copies the full list, one combination per line, and Download CSV saves the table.

The combinations formula

A combination is a selection of k items from a set of n where the order of the selected items does not matter. The number of such selections is the binomial coefficient:

C(n, k) = n! ÷ (k! × (n − k)!)

The k! in the denominator removes the orders: each group of k items can be arranged in k! ways, and all of those arrangements count as one combination. When repetition is allowed, the count becomes C(n + k − 1, k), which is the "stars and bars" result for distributing k picks among n kinds.

How fast combinations grow

n itemsk = 2k = 3k = 5k = n/2All subsets (2ⁿ)
51010110 (k = 2)32
828565670256
10451202522521,024
12662207929244,096
201901,14015,504184,7561,048,576
521,32622,1002,598,960about 4.96 × 10¹⁴about 4.5 × 10¹⁵

The 52, 5 entry is the number of different 5-card hands from a standard deck. Notice the symmetry C(n, k) = C(n, n − k): choosing 3 of 10 to include is the same as choosing 7 of 10 to leave out.

Everyday uses

  • Menus and outfits: every pair of side dishes, every 3-topping pizza, every 2-shirt packing choice.
  • Teams and committees: all possible groups of 4 from a class of 10, to check fairness or plan rotations.
  • Testing: list every pair of settings or features to cover in software or product tests.
  • Homework: verify a counting answer by seeing the actual list, not just the number.

Tip: if you need every possible group size at once (the power set), look at the counts table under the results, which shows how many combinations exist for every k.

Frequently asked questions

What is the difference between a combination and a permutation?

In a combination the order does not matter, so {A, B} and {B, A} are the same group. In a permutation the order matters, so AB and BA are different. Choosing 2 of A, B, C gives 3 combinations (AB, AC, BC) but 6 permutations (AB, BA, AC, CA, BC, CB).

How many combinations are there?

Without repetition the count is C(n, k) = n! ÷ (k! × (n − k)!), often read as "n choose k". For example, choosing 3 of 5 items gives 5! ÷ (3! × 2!) = 10 combinations. The generator shows this formula with your numbers.

What does combinations with repetition mean?

It allows the same item to be picked more than once, like choosing 3 scoops from 4 flavors where two scoops can be vanilla. The count is C(n + k − 1, k); for 4 flavors and 3 scoops that is C(6, 3) = 20.

What happens if my list has duplicate items?

Identical items are treated as the same thing, so a combination is only listed once. Choosing 3 letters from BANANA gives 6 distinct groups (AAA, AAN, ANN, BAA, BAN, BNN) rather than the 20 you would get if every letter were different.

Why does it only list part of the results?

The number of combinations grows very quickly: choosing 10 of 30 items already gives 30,045,015 groups. To keep your browser responsive the generator lists up to 20,000 (1,000 by default) while still showing the exact total count.

In what order are the combinations listed?

In lexicographic order of the positions you typed the items in, and every combination keeps that order. With A, B, C, D the 2-combinations come out as AB, AC, AD, BC, BD, CD.

Is my list sent anywhere?

No. All combinations are generated by JavaScript in your browser, and nothing you type is uploaded.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Permutations GeneratorList all permutations of letters, words or items, with k-permutations and repeats, and export them.Permutation and Combination CalculatorCalculate nPr and nCr, with or without repetition, as exact big numbers.Factorial CalculatorExact n! up to 5000! with digit count, trailing zeros and double factorial.Set CalculatorUnion, intersection, difference and complement of up to 4 sets, with a Venn diagram and counts.Weighted Average CalculatorCalculate a weighted mean from values and weights, step by step.Average CalculatorMean, weighted average, median, sum, min and max of any list.Standard Deviation CalculatorStandard deviation, variance, mean, median, mode and quartiles.A/B Test Significance CalculatorCheck if your A/B test result is statistically significant.Z-Score CalculatorZ-score from a value, mean and SD, plus percentile and p-value; or the value from z.Probability CalculatorFind and, or, not, conditional and at-least-once probabilities from P(A) and P(B).Mean Median Mode CalculatorFind the mean, median, mode, range, min, max, sum and count of a list of numbers.Confidence Interval CalculatorConfidence interval and margin of error for a mean or a proportion, with steps.Sample Size CalculatorHow many survey responses you need for a given confidence level and margin of error.Percentile CalculatorValue at any percentile, percentile rank of a score, quartiles, IQR and outliers.Correlation Coefficient CalculatorPearson r and Spearman rank correlation with significance and interpretation.Average Order Value CalculatorAverage order value from revenue and orders, plus the revenue impact of raising AOV.Binomial Distribution CalculatorBinomial probabilities P(X = k), at most, at least or between, with mean, variance and chart.Normal Distribution CalculatorNormal probabilities P(X < x), between two values and inverse percentiles, on a shaded bell curve.Poisson Distribution CalculatorPoisson probabilities for a rate λ: exactly k, at most, at least or between, with a chart.T-Test CalculatorOne-sample, two-sample (Welch/pooled) and paired t-tests with p-value and CI.Chi-Square CalculatorChi-square goodness-of-fit and independence tests with p-value and expected counts.P-Value CalculatorOne- or two-tailed p-values from z, t, chi-square or F statistics, with critical values.Variance CalculatorSample and population variance and standard deviation with a step-by-step deviations table.Five Number Summary CalculatorMin, Q1, median, Q3, max, IQR and fences of a data set, with a box plot.Outlier CalculatorFind outliers with 1.5×/3× IQR fences, z-scores or modified z-scores; get the cleaned data.Geometric Mean CalculatorGeometric, harmonic, arithmetic and quadratic means compared, or average growth from % changes.Expected Value CalculatorExpected value, variance and standard deviation from outcomes and their probabilities.One-Way ANOVA CalculatorOne-way ANOVA for 2-10 groups: SS, df, MS, F statistic, p-value, effect size and full table.Bayes Theorem CalculatorPosterior P(A|B) from P(A), P(B|A) and P(B|not A), with a probability tree and table.Box Plot MakerPaste data to draw box-and-whisker plots with quartiles, IQR and outliers. Download PNG or SVG.Coefficient of Variation CalculatorCV % from a dataset (sample or population) with mean, SD and a two-dataset comparison.Critical Value CalculatorCritical values of z, t, chi-square and F for any alpha, tails and degrees of freedom.Dice Probability CalculatorOdds of rolling a sum (exactly, at least, at most) with any dice, plus the full distribution.Effect Size Calculator (Cohen's d)Cohen's d, Hedges' g and Glass's delta from two means, SDs and sample sizes, with CI.Frequency Table GeneratorMake a frequency, relative and cumulative frequency table from numbers or categories.Histogram MakerPaste numbers, choose bins and get a histogram, frequency table and PNG download.Margin of Error CalculatorSurvey margin of error from sample size, confidence and proportion, with population correction.Moving Average CalculatorSimple, exponential and weighted moving averages of a data series, with table and line chart.Binomial Expansion CalculatorExpand (a + b)^n with the binomial theorem: every term, Pascal coefficients and any specific term.Covariance CalculatorSample and population covariance of paired X and Y data, with a step table and scatter plot.Grouped Data CalculatorMean, median, mode, variance and standard deviation from class intervals and frequencies.Inverse Normal Distribution CalculatorinvNorm: find the x or z value for a left, right, central or two-tail area, with a shaded curve.Statistical Power CalculatorPower or required sample size for t-tests, proportions and correlations, with a power curve.T Distribution CalculatorStudent's t probabilities and critical values for any df, with the area shaded on the curve.T-Table (Student's t Distribution)Interactive t-table: critical t-values for any df and α, p-values, and a printable full table.Z-Test CalculatorOne-sample, two-sample and proportion z-tests with z, p-value, decision and shaded curve.Shannon Entropy CalculatorEntropy of text, data or probabilities in bits, nats or hartleys with a frequency table.Odds Ratio and Relative Risk CalculatorOdds ratio, relative risk, risk difference, 95% CIs and p-values from a 2x2 table.Standard Error CalculatorStandard error of the mean from data or SD and n, plus SE of a proportion, with CIs.Descriptive Statistics CalculatorPaste data and get mean, median, mode, quartiles, SD, skewness, kurtosis and a histogram.Empirical Rule Calculator68-95-99.7 rule ranges from a mean and standard deviation, with a shaded bell curve.Z-Table (Standard Normal Table)Interactive z-table: find the area for any z-score, or the z-score for a probability.Average Rate of Change CalculatorAverage rate of change of f(x), two points or a data table over [a, b], with the secant line.
See all 52 Statistics & Probability Calculators →