Cross Product Calculator: Vector Multiplication

Calculate the cross product of two 3D vectors.

Cross Product Calculator

Calculate cross product of two 3D vectors

Enter 3D vectors as comma-separated values (x, y, z)
Format: x, y, z (three numbers separated by commas)

Quick Tips

  • • Result is perpendicular to both input vectors
  • • Magnitude equals area of parallelogram formed by vectors
  • • A × B = - (B × A) (anti-commutative)
  • • For parallel vectors, cross product is zero vector

What is a Cross Product?

The cross product of two 3D vectors A and B gives a new vector A × B that is perpendicular to both. The direction is determined by the right-hand rule.

It’s used in physics and engineering for torque, rotation, surface normals, and area calculations.

Cross Product Formula

If A = (a₁, a₂, a₃) and B = (b₁, b₂, b₃), then:

A × B = (a₂b₃ − a₃b₂, a₃b₁ − a₁b₃, a₁b₂ − a₂b₁)

Determinant Method (How It’s Built)

ComponentExpressionMeaning
xa₂b₃ − a₃b₂Uses y and z parts
ya₃b₁ − a₁b₃Uses z and x parts
za₁b₂ − a₂b₁Uses x and y parts

Step-by-Step Calculation

  1. 1
    Write A = (a1, a2, a3) and B = (b1, b2, b3).
  2. 2
    Compute x = a2*b3 − a3*b2.
  3. 3
    Compute y = a3*b1 − a1*b3.
  4. 4
    Compute z = a1*b2 − a2*b1.
  5. 5
    Combine the result as (x, y, z).

Worked Examples

ABA × B
(1, 2, 3)(4, 5, 6)(-3, 6, -3)
(1, 0, 0)(0, 1, 0)(0, 0, 1)
(0, 1, 0)(1, 0, 0)(0, 0, -1)
(2, -1, 3)(0, 4, 1)(-13, -2, 8)

Important: Cross product is not commutative. That means A × B = −(B × A). If you swap vectors, the direction flips.

Magnitude Meaning (Area)

The magnitude of the cross product is:

|A × B| = |A| |B| sin(θ)

This equals the area of the parallelogram formed by A and B. Half of that is the area of the triangle formed by the two vectors.

Key Properties (Quick Facts)

  • A × B is perpendicular to both A and B.
  • A × A = (0, 0, 0).
  • If A and B are parallel, A × B = (0, 0, 0).
  • A × B = −(B × A).
  • Scaling: (kA) × B = k(A × B).

Common Uses of Cross Product

  • Torque: τ = r × F
  • Angular momentum: L = r × p
  • Surface normal vector in 3D graphics (lighting/shading)
  • Area of parallelogram/triangle from two vectors
  • Finding perpendicular direction in 3D geometry

Visual: A, B and A × B (Right-Hand Rule)

Curl your right-hand fingers from A toward B. Your thumb points in the direction of A × B.

Cross Product FAQs

Q

What is the cross product of two vectors?

It’s a vector perpendicular to both input vectors. Its direction follows the right-hand rule and its magnitude represents area.

Q

Is cross product defined in 2D?

Not in the same way. In 2D, people often return a scalar representing the z-component you'd get if you treat vectors as 3D with z = 0.

Q

What happens if the vectors are parallel?

If vectors are parallel (θ = 0° or 180°), sin(θ) = 0, so A × B = (0, 0, 0).

Q

Why does swapping vectors change the sign?

Because A × B and B × A point in opposite directions. So A × B = −(B × A).

Q

What does |A × B| mean?

It equals |A||B|sin(θ), which is the area of the parallelogram formed by A and B.

Q

How is cross product used in physics?

Common examples include torque (r × F) and angular momentum (r × p).

Q

What is a normal vector in 3D graphics?

A normal vector is perpendicular to a surface. Cross product is used to compute it from two edges of a polygon.

Q

Can the result be the zero vector even if inputs are non-zero?

Yes. If A and B are parallel or one of them is the zero vector, the cross product is zero.