ZestCalc

Cross Product Calculator

Find the vector perpendicular to two 3-D vectors, exactly. Step through the determinant, and see the parallelogram whose area is its length.

Vectors

Enter two vectors with 3 entries each, or start from an example.

u=u =
v=v =

Result

Updates as you type.

Cross product
u×v=(1, −2, 4)u \times v = \left(1,\ -2,\ 4\right)
Parallelogram area
∣u×v∣=21|u \times v| = \sqrt{21}
Triangle area
12∣u×v∣=212\tfrac{1}{2}|u \times v| = \frac{\sqrt{21}}{2}
Reversed order
v×u=(−1, 2, −4)v \times u = \left(-1,\ 2,\ -4\right)
Check
(u×v)⋅u=0,(u×v)⋅v=0(u \times v) \cdot u = 0,\quad (u \times v) \cdot v = 0

The result is perpendicular to both vectors, so both dot products are 0.

What the cross product gives

The cross product takes two vectors in 3-D and returns a third vector perpendicular to both:

u×v=∣i^j^k^u1u2u3v1v2v3∣=(u2v3−u3v2,  u3v1−u1v3,  u1v2−u2v1)u \times v = \begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ u_1 & u_2 & u_3 \\ v_1 & v_2 & v_3 \end{vmatrix} = \left(u_2 v_3 - u_3 v_2,\ \ u_3 v_1 - u_1 v_3,\ \ u_1 v_2 - u_2 v_1\right)

The layout is a memory aid borrowed from the Determinant Calculator. Its top row holds basis vectors, not numbers, so it isn't a true determinant, but expanding along that row gives the right entries. You can confirm the result is perpendicular with the Dot Product and Angle Calculator, since both dot products come to 0.

Length and direction

The length of the cross product is the area of the parallelogram the two vectors span:

∣u×v∣=∣u∣ ∣v∣sin⁡θ|u \times v| = |u|\,|v| \sin\theta

A triangle with those two sides has half that area. Parallel vectors span no area, so their cross product is the zero vector.

The direction comes from the right-hand rule: point your fingers along uu, curl them toward vv, and your thumb points along u×vu \times v. Order matters, because swapping the vectors flips the result:

v×u=−(u×v)v \times u = -(u \times v)

Where it comes up

  • Normal vectors. The cross product of two edges of a flat surface is perpendicular to it. Computer graphics uses this for lighting.
  • Torque. Torque is r×Fr \times F, which is why pushing a door farther from its hinge works better.
  • Areas and volumes. Parallelogram and triangle areas come directly from it, and u⋅(v×w)u \cdot (v \times w) gives the volume of a box with those edges.
  • The equation of a plane. Two directions in a plane give its normal, and with Vector Projection Calculator you can then find a point's distance to it.

The cross product only exists in this form in 3 dimensions, which is why this calculator takes exactly 3 entries.