Cartesian Product Calculator

Enter two or more sets and instantly see every ordered tuple in their Cartesian product.

Define Sets

Define your sets and click Compute to see all ordered tuples.

Copied!

Summary

Enter two or more sets and instantly see every ordered tuple in their Cartesian product.

How it works

  1. Enter elements of each set separated by commas (e.g. 1, 2, 3).
  2. Add up to four sets using the "+ Add Set" button.
  3. Click "Compute" to generate all ordered tuples.
  4. The result table lists every combination with tuple notation.
  5. Copy the full result as text or as a JSON array.

Use cases

  • Generate all possible combinations of two or more finite sets.
  • Enumerate test case inputs when each parameter has a fixed set of values.
  • Illustrate Cartesian product concepts in discrete math coursework.
  • Build a truth table skeleton by crossing boolean sets.
  • Explore sample spaces in probability problems.
  • Map every (row, column) coordinate pair in a grid.

Frequently Asked Questions

Last updated: 2026-06-13 · Reviewed by Nham Vu