---
slug: cross-product-calculator
title: "Cross Product Calculator"
category: math
updated: 2026-11-19
canonical: https://calcseed.com/c/math/cross-product-calculator/
html: /c/math/cross-product-calculator/
---

# Cross Product Calculator

Compute the cross (vector) product of two 3D vectors.

## Quick answer

**Quick answer:** with the default inputs (1, 2, 3, 4), the result x is **-3**. At these inputs: result y = **6**, result z = **-3**. Change any input to update the result.

## Default calculation

Values computed by this calculator at exactly the default inputs listed below.

### Inputs (defaults)

| Input | Value | Unit |
| --- | --- | --- |
| a x | 1 |  |
| a y | 2 |  |
| a z | 3 |  |
| b x | 4 |  |
| b y | 5 |  |
| b z | 6 |  |

### Outputs at these defaults

| Output | Value | Unit |
| --- | --- | --- |
| Result x | -3 |  |
| Result y | 6 |  |
| Result z | -3 |  |

## Formula

```text
a × b = (a_y_b_z_ − a_z_b_y_, a_z_b_x_ − a_x_b_z_, a_x_b_y_ − a_y_b_x_)
```

## Inputs

| Variable | Type | Unit | Default |
| --- | --- | --- | --- |
| a x | number |  | 1 |
| a y | number |  | 2 |
| a z | number |  | 3 |
| b x | number |  | 4 |
| b y | number |  | 5 |
| b z | number |  | 6 |

## Outputs

| Result | Format |
| --- | --- |
| Result x | primary |
| Result x | number |
| Result y | number |
| Result z | number |

## How it works

### What this calculator does

The cross product of two 3D vectors returns a third vector perpendicular to both, with a direction set by the right-hand rule and a magnitude equal to the area of the parallelogram the two vectors span. With the defaults a = (1, 2, 3) and b = (4, 5, 6) it returns (−3, 6, −3), a vector of length about 7.35. Every component comes from one two-by-two multiplication and subtraction, shown step by step below.

### How the component formula works

Each component is a two-entry determinant. The x-component uses the y and z rows: a_y_b_z_ − a_z_b_y_. The y-component uses the z and x entries, and the z-component the x and y entries — the pattern cycles through the components in order, which is why the middle term is the one people most often get backwards. Memorize the cycle as x from yz, y from zx, z from xy and each second term subtracted.

### Worked example at the defaults

Vectors a = (1, 2, 3) and b = (4, 5, 6). Step 1: cx = 2 × 6 − 3 × 5 = 12 − 15 = −3. Step 2: cy = 3 × 4 − 1 × 6 = 12 − 6 = 6. Step 3: cz = 1 × 5 − 2 × 4 = 5 − 8 = −3. The result is (−3, 6, −3), matching the calculator exactly.

#### Two property checks

Verify the two defining properties. Perpendicularity: dot the result with each input — 1 × (−3) + 2 × 6 + 3 × (−3) = −3 + 12 − 9 = 0, and 4 × (−3) + 5 × 6 + 6 × (−3) = −12 + 30 − 18 = 0, so the result is orthogonal to both a and b. Magnitude: the result has length &radic;(9 + 36 + 9) = &radic;54 = 3&radic;6 ≈ 7.35, the parallelogram area spanned by a and b, consistent with |a| × |b| × sin(&theta;) ≈ 3.74 × 8.77 × 0.224 ≈ 7.35 at the roughly 12.9&deg; angle between them.

### Cross products worth recognizing

| Cross product | Result | Pattern |
| --- | --- | --- |
| (1, 0, 0) × (0, 1, 0) | (0, 0, 1) | i × j = k |
| (0, 1, 0) × (0, 0, 1) | (1, 0, 0) | j × k = i |
| (0, 0, 1) × (1, 0, 0) | (0, 1, 0) | k × i = j |
| (1, 2, 3) × (4, 5, 6) (defaults) | (−3, 6, −3) | Perpendicular to both inputs |
| (2, 4, 6) × (1, 2, 3) | (0, 0, 0) | Parallel vectors give zero |

The first three rows are the basis cycle, and reversing the order of any pair flips the sign — j × i = −k. The last row shows the collapse that signals dependence: doubling one vector leaves it parallel, the angle becomes 0&deg;, sin(&theta;) vanishes, and the parallelogram has no area.

### Reading the result

Three features of the output carry information. The direction, by the right-hand rule: curl the fingers of your right hand from a toward b and the thumb points along a × b, which for the defaults is toward (−3, 6, −3). The magnitude is |a||b|sin(&theta;), maximized at &radic;2 times the product of lengths when the vectors are perpendicular and zero when parallel. And the sign pattern of the components tells you which octant the normal points into, which matters when the vector defines a plane&rsquo;s facing in graphics code.

### Common mistakes

Almost every wrong cross product comes from one of the following slips, all of which a dot-product check catches in seconds.

- Sign errors in the middle component: the formula is a_z_b_x_ − a_x_b_z_, not a_x_b_z_ − a_z_b_x_.
- Forgetting anti-commutativity: b × a = −(a × b), so swapping the inputs flips every sign.
- Adding instead of subtracting: 2 × 6 + 3 × 5 = 27 gives cx = 27 instead of −3.
- Expecting a scalar: the cross product returns a vector; the scalar with cos(&theta;) is the dot product, a different operation.
- Using it on 2D vectors without a z-component: embed them as (x, y, 0) first, which returns a vector along the z-axis whose size is the 2D parallelogram area.

#### The dot-product check

One multiplication per input verifies any cross product: the result must dot to zero with both a and b. For the defaults, (−3, 6, −3) passes both checks as shown above; an arithmetic slip in any component breaks at least one of them. This works because orthogonality is the definition of the output, so it is a property every correct answer must have.

### Where cross products appear

Torque is the canonical physics case: a force of (0, 0, 10) newtons applied 3 metres along the x-axis gives torque (0, 30, 0) newton-metres, since r × F = (3, 0, 0) × (0, 0, 10). Graphics engines compute surface normals this way to decide lighting and backface culling, and robotics uses it for angular velocity. In 2026 coursework the routine uses are plane normals from three points — subtract to get two edge vectors, cross them — and magnetic force F = qv × B, both of which reduce to the same three two-entry determinants this calculator evaluates.

## FAQ

### What is (1, 2, 3) × (4, 5, 6)?

(−3, 6, −3). Each component is a two-entry difference: cx = 2 × 6 − 3 × 5 = −3, cy = 3 × 4 − 1 × 6 = 6, cz = 1 × 5 − 2 × 4 = −3.

### Is the cross product commutative?

No, it is anti-commutative: b × a = −(a × b). Swapping the two inputs flips the sign of every component while keeping the same length.

### What does a zero result mean?

The vectors are parallel or one of them is zero, so the parallelogram they span has no area. For example, (2, 4, 6) × (1, 2, 3) = (0, 0, 0).

### How do I know the direction is right?

Use the right-hand rule: point your fingers along the first vector, curl them toward the second, and your thumb gives the direction. The dot-product check confirms perpendicularity but not the sign, so the hand rule decides between a × b and its negative.

### What is the magnitude of the result?

It is |a| × |b| × sin(&theta;), the area of the parallelogram spanned by the two vectors. For the defaults that is about 7.35 square units, at the roughly 12.9&deg; angle between them.

### Can I take a cross product of 2D vectors?

Embed them in 3D as (x, y, 0) first. The result then points purely along the z-axis, and its z-component equals the signed area of the parallelogram the two 2D vectors span.

### How is the cross product different from the dot product?

The dot product multiplies matching components and returns a scalar measuring alignment with cos(&theta;); the cross product returns a perpendicular vector measuring rotation with sin(&theta;). For the defaults the dot product is 32 while the cross product is (−3, 6, −3).

### Why does the formula use minus signs?

Each component is the determinant of a 2×2 submatrix, and determinants subtract the anti-diagonal product from the diagonal one. The subtractions are what force the result to be perpendicular to both inputs.

## Method and sources

Methodology: Results follow exact mathematical definitions; the arithmetic is deterministic and can be verified by hand from the steps shown.

Last updated: 2026-11-19.
- Standard 3D cross product determinant formula.
