Cartesian Product Calculator

List all ordered pairs in the Cartesian product A × B.

Results

Enter your details and click Calculate to see your results.
About This Calculator

A × B = {(a, b) : a ∈ A, b ∈ B}, size |A| × |B|.

Example

Example: the default inputs → A × B: (1, x), (1, y), (2, x), (2, y), (3, x), (3, y).

Assumptions

Exact maths — check the input format shown in each field.

Frequently Asked Questions

What is the Cartesian product?

All ordered pairs with the first from A and the second from B.

Is A × B the same as B × A?

No, unless A = B.

Related Calculators

About the Author

Imran Hossain
Imran Hossain

Professional SEO, Digital Marketer Specialist

I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist

View full profile