Skip to main content
Home / Vectors / Cross Product
Calculating...

Cross Product Calculator

Find the cross product a × b for 3D vectors. The result is perpendicular to both inputs, calculated using the determinant method.

Press / to search operations
3D Only Operation

Cross product is only defined for 3-dimensional vectors. Dimension is fixed at 3.

No vectors added yet

Click "Add Vector" to begin entering data

Learn About Cross Product

Understanding the concepts behind calculations.


What is Cross Product?

The cross product is a binary operation on two vectors in three-dimensional space that produces a third vector perpendicular to both of the original vectors. Unlike the dot product (which gives a scalar), the cross product gives another vector.

Core Idea: Given two vectors a and b in 3D space, their cross product a × b is a vector that is:

  • Perpendicular to both a and b
  • ✅ Has magnitude equal to the area of the parallelogram formed by a and b
  • ✅ Direction given by the right-hand rule

⚠️ Important: The cross product is ONLY defined in 3 dimensions. For 2D vectors, you must add a zero third component (z = 0) or use the magnitude formula.

$$ \boxed{\mathbf{a} \times \mathbf{b} = \begin{pmatrix} a_1 \\ a_2 \\ a_3 \end{pmatrix} \times \begin{pmatrix} b_1 \\ b_2 \\ b_3 \end{pmatrix} = \begin{pmatrix} a_2 b_3 - a_3 b_2 \\ a_3 b_1 - a_1 b_3 \\ a_1 b_2 - a_2 b_1 \end{pmatrix}} $$

The Formula

For vectors in 3D, the cross product is computed component-wise using a determinant:

$$ \mathbf{a} \times \mathbf{b} = \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ a_1 & a_2 & a_3 \\ b_1 & b_2 & b_3 \end{vmatrix} $$

Where i, j, k are the unit vectors along the x, y, and z axes.

Expanded Form

For vectors a = (a₁, a₂, a₃) and b = (b₁, b₂, b₃):

$$ \begin{aligned} \text{x-component:} &\quad a_2 b_3 - a_3 b_2 \\ \text{y-component:} &\quad a_3 b_1 - a_1 b_3 \\ \text{z-component:} &\quad a_1 b_2 - a_2 b_1 \end{aligned} $$

Memory Trick: Think of it as "crossing" components:

  • x = (down-left) - (right-up) after excluding x
  • y = (down-right) - (left-up) after excluding y (note sign!)
  • z = (left-down) - (right-up) after excluding z

💡 Mnemonic: "xyz → yz, zx, xy with alternating signs"

Or remember the pattern: a × b = ( (a₂b₃ - a₃b₂), (a₃b₁ - a₁b₃), (a₁b₂ - a₂b₁) )


The Right-Hand Rule

The direction of a × b is determined by the right-hand rule:

How to apply:

  1. Point your fingers in the direction of a
  2. Curl them toward b (through the smaller angle)
  3. Your thumb points in the direction of a × b

Standard basis example:

$$ \mathbf{i} \times \mathbf{j} = \mathbf{k} $$

Index finger = x-axis (i)
Middle finger = y-axis (j)
Thumb = z-axis (k)

📐 Important Consequence: The cross product is anti-commutative:

$$ \mathbf{a} \times \mathbf{b} = -(\mathbf{b} \times \mathbf{a}) $$

Swapping the order reverses the direction!


Geometric Interpretation

Magnitude = Area of Parallelogram

The magnitude of the cross product equals the area of the parallelogram formed by the two vectors:

$$ \|\mathbf{a} \times \mathbf{b}\| = \|\mathbf{a}\| \cdot \|\mathbf{b}\| \cdot \sin\theta $$
  • θ = angle between a and b (0 ≤ θ ≤ π)
  • When vectors are parallel (θ = 0° or 180°): a × b = 0
  • When vectors are perpendicular (θ = 90°): ‖a × b‖ = ‖a‖·‖b‖

Example: Unit vectors i and j

$$ \|\mathbf{i} \times \mathbf{j}\| = 1 \times 1 \times \sin 90^\circ = 1 $$

The parallelogram (a square) has area = 1.

Perpendicularity

The cross product is always perpendicular to both original vectors:

$$ (\mathbf{a} \times \mathbf{b}) \cdot \mathbf{a} = 0, \quad (\mathbf{a} \times \mathbf{b}) \cdot \mathbf{b} = 0 $$

This makes it incredibly useful for finding normal vectors to surfaces!


Properties of Cross Product

✅ Anti-Commutative

$$ \mathbf{a} \times \mathbf{b} = -(\mathbf{b} \times \mathbf{a}) $$

✅ Distributive

$$ \mathbf{a} \times (\mathbf{b} + \mathbf{c}) = \mathbf{a} \times \mathbf{b} + \mathbf{a} \times \mathbf{c} $$

✅ Scalar Multiplication

$$ (k\mathbf{a}) \times \mathbf{b} = k(\mathbf{a} \times \mathbf{b}) = \mathbf{a} \times (k\mathbf{b}) $$

❌ NOT Commutative

$$ \mathbf{a} \times \mathbf{b} \neq \mathbf{b} \times \mathbf{a} $$

(Instead, a × b = -(b × a))

❌ NOT Associative

$$ (\mathbf{a} \times \mathbf{b}) \times \mathbf{c} \neq \mathbf{a} \times (\mathbf{b} \times \mathbf{c}) $$

Instead, they satisfy the Jacobi identity.

Key Identities

$$ \begin{aligned} \mathbf{a} \times \mathbf{b} &= -\mathbf{b} \times \mathbf{a} \\ \mathbf{a} \times \mathbf{a} &= \mathbf{0} \\ \mathbf{i} \times \mathbf{j} &= \mathbf{k},\quad \mathbf{j} \times \mathbf{k} = \mathbf{i},\quad \mathbf{k} \times \mathbf{i} = \mathbf{j} \end{aligned} $$

Step-by-Step Examples

Example 1: Basic Cross Product

Problem: Find a × b where a = (1, 2, 3) and b = (4, 5, 6)

Step 1: Write vectors as column vectors

$$ \mathbf{a} = \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix}, \quad \mathbf{b} = \begin{pmatrix} 4 \\ 5 \\ 6 \end{pmatrix} $$

Step 2: Compute x-component (a₂b₃ - a₃b₂)

$$ a_2 b_3 - a_3 b_2 = (2)(6) - (3)(5) = 12 - 15 = -3 $$

Step 3: Compute y-component (a₃b₁ - a₁b₃)

$$ a_3 b_1 - a_1 b_3 = (3)(4) - (1)(6) = 12 - 6 = 6 $$

Step 4: Compute z-component (a₁b₂ - a₂b₁)

$$ a_1 b_2 - a_2 b_1 = (1)(5) - (2)(4) = 5 - 8 = -3 $$

Step 5: Combine components

$$ \mathbf{a} \times \mathbf{b} = \begin{pmatrix} -3 \\ 6 \\ -3 \end{pmatrix} $$

Solution: a × b = (-3, 6, -3)

Check perpendicularity: Dot with a: -3(1) + 6(2) + (-3)(3) = -3 + 12 - 9 = 0 ✓

Example 2: Perpendicular Vectors

Problem: Find i × j (unit vectors along x and y axes)

Step 1: Write vectors

$$ \mathbf{i} = \begin{pmatrix} 1 \\ 0 \\ 0 \end{pmatrix}, \quad \mathbf{j} = \begin{pmatrix} 0 \\ 1 \\ 0 \end{pmatrix} $$

Step 2: Compute components

$$ \begin{aligned} \text{x: } & (0)(0) - (0)(1) = 0 - 0 = 0 \\ \text{y: } & (0)(0) - (1)(0) = 0 - 0 = 0 \\ \text{z: } & (1)(1) - (0)(0) = 1 - 0 = 1 \end{aligned} $$

Solution: i × j = (0, 0, 1) = k

This shows the right-hand rule in action!

Example 3: Parallel Vectors (Zero Result)

Problem: Find a × b where a = (2, 4, 6) and b = (1, 2, 3)

Step 1: Notice b = ½·a, so vectors are parallel

$$ \mathbf{a} \times \mathbf{b} = \mathbf{a} \times (\tfrac{1}{2}\mathbf{a}) = \tfrac{1}{2}(\mathbf{a} \times \mathbf{a}) = \mathbf{0} $$

Solution: a × b = (0, 0, 0) (zero vector)

Geometric meaning: Area of parallelogram = 0 (vectors are collinear)

Example 4: 2D Vectors (Add Zero Component)

Problem: Find cross product of 2D vectors a = (2, 3) and b = (4, 1)

Step 1: Convert to 3D by adding z = 0

$$ \mathbf{a} = \begin{pmatrix} 2 \\ 3 \\ 0 \end{pmatrix}, \quad \mathbf{b} = \begin{pmatrix} 4 \\ 1 \\ 0 \end{pmatrix} $$

Step 2: Compute components

$$ \begin{aligned} \text{x: } & (3)(0) - (0)(1) = 0 - 0 = 0 \\ \text{y: } & (0)(4) - (2)(0) = 0 - 0 = 0 \\ \text{z: } & (2)(1) - (3)(4) = 2 - 12 = -10 \end{aligned} $$

Solution: a × b = (0, 0, -10)

Interpretation: The cross product points in the ±z direction with magnitude = area of parallelogram in the xy-plane.


Real-World Applications

🔧 Physics: Torque

Torque (rotational force) is the cross product of position vector and force:

$$ \boldsymbol{\tau} = \mathbf{r} \times \mathbf{F} $$

Example: Wrench turning a bolt — torque vector points along the rotation axis.

🌀 Physics: Angular Momentum

Angular momentum is the cross product of position and momentum:

$$ \mathbf{L} = \mathbf{r} \times \mathbf{p} $$

Conserved quantity in rotational motion (e.g., spinning ice skater).

🧲 Physics: Magnetic Force

Force on a charged particle in a magnetic field:

$$ \mathbf{F} = q(\mathbf{v} \times \mathbf{B}) $$

Direction is perpendicular to both velocity and magnetic field.

📐 Geometry: Normal Vectors

Cross product gives a vector perpendicular to a plane defined by two vectors:

$$ \mathbf{n} = \mathbf{u} \times \mathbf{v} $$

Used in computer graphics for lighting calculations and surface orientation.

🎮 Game Development: Rotations

Cross product is used for:

  • Finding rotation axes
  • Determining if an object is turning left or right
  • Implementing camera controls

⚡ Electromagnetism: Poynting Vector

Energy flow in electromagnetic waves:

$$ \mathbf{S} = \mathbf{E} \times \mathbf{H} $$

Points in the direction of wave propagation.


Common Mistakes to Avoid

  1. ❌ Using cross product in 2D without adding z-component: Add z=0 to both vectors first!
  2. ❌ Forgetting the negative sign in y-component: The formula is a₃b₁ - a₁b₃, not a₁b₃ - a₃b₁.
  3. ❌ Assuming commutativity: a × b ≠ b × a; they are negatives of each other.
  4. ❌ Mixing up order: The magnitude formula uses sin θ, not cos θ (that's dot product).
  5. ❌ Forgetting that a × a = 0: Any vector cross itself gives zero.
  6. ❌ Thinking cross product works in higher dimensions: Only defined in 3D (7D has a generalization but it's complex).

⚠️ Common Error Example:

Wrong: Computing a × b for a = (2,3) and treating it as 2D without adding z-component.

Correct: Add z = 0: a = (2,3,0), b = (4,1,0), then compute cross product.


Frequently Asked Questions

Q: Is cross product defined in 2D?

A: Not directly. However, you can treat 2D vectors as 3D vectors with z = 0, and the result will be a vector pointing in the ±z direction. The magnitude gives the area of the parallelogram.

Q: What does the cross product represent geometrically?

A: The magnitude is the area of the parallelogram formed by the two vectors. The direction is perpendicular to both vectors, following the right-hand rule.

Q: When is the cross product zero?

A: When the vectors are parallel (θ = 0° or 180°), or when either vector is zero. This includes cases where one is a scalar multiple of the other.

Q: Is cross product associative?

A: No! (a × b) × c ≠ a × (b × c) in general. They satisfy the Jacobi identity instead.

Q: How do I remember the cross product formula?

A: Use the determinant mnemonic or the cycle pattern: x = y×z, y = z×x, z = x×y with alternating signs.

Q: What's the relationship between dot product and cross product?

A: They're complementary: dot product gives the cosine of the angle (parallel component), cross product gives the sine (perpendicular component). The identity ‖a × b‖² = ‖a‖²‖b‖² - (a·b)² connects them.


Practice Problems

Beginner

  1. Find a × b for a = (1, 0, 0), b = (0, 1, 0)

  2. Find a × b for a = (2, 0, 0), b = (0, 3, 0)

  3. Find i × k (where i = (1,0,0), k = (0,0,1))

Intermediate

  1. Find a × b for a = (1, 2, 3), b = (2, 3, 4)

  2. Find the area of the parallelogram formed by a = (3, 0, 0) and b = (1, 4, 0)

  3. Find a unit vector perpendicular to both a = (1, 1, 0) and b = (0, 1, 1)

Advanced

  1. Prove that a × (b × c) = (a·c)b - (a·b)c (vector triple product identity)

  2. Find the torque applied if r = (2, 3, 0) meters and F = (10, 0, 0) Newtons.

  3. For what value of k are a = (2, k, 1) and b = (4, 6, 2) parallel?

Click to reveal solutions

1. (0, 0, 1) = k

2. (0, 0, 6)

3. (-1, 0, 0) = -i

4. (-1, 2, -1)

5. Area = 12 square units

6. (1, -1, 1) (normalized: (1/√3, -1/√3, 1/√3))

7. This is the BAC-CAB identity

8. τ = (0, 0, -20) N·m

9. k = 3 (makes b = 2·a)



Summary

🎯 Key Takeaways

  • Cross product a × b produces a vector perpendicular to both a and b
  • Formula: (a₂b₃ - a₃b₂, a₃b₁ - a₁b₃, a₁b₂ - a₂b₁)
  • Magnitude: ‖a × b‖ = ‖a‖·‖b‖·sinθ = area of parallelogram
  • Direction: Given by the right-hand rule
  • Key property: a × b = -(b × a) (anti-commutative)
  • Zero when: vectors are parallel or either is zero
  • Only defined in 3D (2D vectors need z=0)

💡 Pro Tip: Remember the cyclic pattern: i × j = k, j × k = i, k × i = j. Moving forward gives positive, backward gives negative!

Try It Yourself!

Use the calculator above to practice cross products:

  1. Enter your vectors as 3D coordinates (e.g., 1,2,3 for a = (1,2,3))
  2. Click "Calculate" to see:
    • Component-wise cross product computation
    • Magnitude of the result
    • Verification that result is perpendicular to both inputs
    • Area of the parallelogram formed by the vectors

Test these examples:

  • Basis vectors: (1,0,0) × (0,1,0)(0,0,1)
  • 2D vectors: (2,3,0) × (4,1,0)(0,0,-10)
  • Parallel vectors: (2,4,6) × (1,2,3)(0,0,0)
  • General 3D: (1,2,3) × (4,5,6)(-3,6,-3)

📐 Pro Tip: After computing, check that the dot product of the result with each original vector equals zero — this verifies perpendicularity!

Related Operations