Home / Calculators / Cartesian Product Calculator
Free online tool

Cartesian Product Calculator

Generate ordered tuples from two or more finite sets. Processing takes place locally in your browser.

Start using

What Cartesian Product Calculator does

Generate ordered tuples from two or more finite sets.

Worked example

Input

A={1,2}; B={x,y}

Result

(1,x), (1,y), (2,x), (2,y)

Calculation method

Every element of the first set is paired with every element of the next set; additional sets extend each tuple recursively.

Useful workflows

  • Check a small teaching example and inspect intermediate results.
  • Compare an independently calculated answer or software test fixture.
  • Copy the result together with its input notation and selected options.

Limits and review checks

  • Combinatorial, graph and search problems can grow exponentially and are intentionally size-limited.
  • Confirm integer, modular, set-order, precision and rounding assumptions before comparing answers.
  • Cryptography-related pages are educational demonstrations and must not generate or validate production security keys.

Frequently asked questions

Why is my input rejected?

Check separators, variable names, supported operators, numeric ranges and whether the selected algorithm requires integers.

Can I use this result in a high-stakes decision?

Use the tool for learning and independent checks. Verify legal, financial, safety or security decisions with an authoritative method and qualified reviewer.

Processing takes place locally in your browser.