My Calculator

Cross Product Calculator

Calculate the cross product of two 3D vectors, along with the resultant vector's magnitude, the angle between the vectors, and the parallelogram area, with a visual diagram and full step-by-step working.

Vector A

Vector B

Cross Product A × B

(-21, 18, -3)

|A × B| = 27.821

|A| = 5.385  |B| = 7.874

Angle between vectors θ = 41.004°

Parallelogram area = 27.821  Triangle area = 13.91

A × B points in the direction perpendicular to both A and B, given by the right-hand rule.

Vectors A, B, and A × B (Isometric View)

A and B are drawn from the same origin. The red vector is A × B — perpendicular to both, with length equal to the parallelogram area they form.

xyzOA (2, 3, 4)B (5, 6, 1)A×B (-21, 18, -3)

A × B = (-21, 18, -3)  |  |A × B| = 27.821  |  θ = 41.004°  |  Area = 27.821

Step-by-Step Solution

Here's exactly how this answer was calculated, one step at a time.

  1. 1

    Write down each vector's x, y, and z components

    A = (2, 3, 4), B = (5, 6, 1)

    The cross product only works on 3D vectors and produces a brand-new vector, not a single number — so start by identifying every component of A and B.

  2. 2

    Apply the cross product formula for the x-component

    Cx = Ay×Bz − Az×By = (3)(1) − (4)(6) = 3 − 24 = -21

    The x-component ignores the x-values of A and B entirely and cross-multiplies the y and z parts.

  3. 3

    Apply the cross product formula for the y-component

    Cy = Az×Bx − Ax×Bz = (4)(5) − (2)(1) = 20 − 2 = 18

    The y-component cycles to the z and x parts. Notice the order (z then x) — it's easy to reverse this by mistake.

  4. 4

    Apply the cross product formula for the z-component

    Cz = Ax×By − Ay×Bx = (2)(6) − (3)(5) = 12 − 15 = -3

    The z-component uses the x and y parts, completing the cyclic pattern (x→y→z→x).

  5. 5

    Combine into the resultant vector A × B

    A × B = (-21, 18, -3)

    These three components form the new vector that is perpendicular to both A and B, following the right-hand rule.

  6. 6

    Find the magnitude of the resultant vector

    |A × B| = √(-21² + 18² + -3²) = 27.821

    The magnitude of A × B also equals the area of the parallelogram formed by A and B.

  7. 7

    Use the magnitude to find the angle between A and B

    sin θ = |A × B| / (|A| |B|) = 27.821 / (5.385 × 7.874) = 0.6561 → θ = 41.004°

    Rearranging |A × B| = |A| |B| sin(θ) and solving for θ gives the angle between the two original vectors.

A × B = (-21, 18, -3), |A × B| = 27.821, θ = 41.004°

Free Online Cross Product Calculator

This cross product calculator instantly finds the vector cross product of two 3D vectors, A × B, along with the resultant vector's magnitude, the angle between the original vectors, and the area of the parallelogram and triangle they form. It works as a cross product calculator, vector product calculator, and 3D vector cross product calculator all in one tool, so you never need to work through the determinant expansion by hand.

Whether you're a student solving physics or linear algebra homework on torque, angular momentum, or surface normals, an engineer computing moments of force, or a graphics or game developer generating normal vectors for lighting and collision, this cross product calculator gives you an instant, accurate result along with a visual isometric diagram and complete step-by-step working, so the formula never feels like a black box.

How to Use This Cross Product Calculator

Using this online cross product calculator takes only a few seconds. Enter the x, y, and z components of vector A, then enter the x, y, and z components of vector B — the resultant vector, its magnitude, the angle between the vectors, and the parallelogram area update instantly as you type. The isometric diagram redraws automatically to show A, B, and A × B from the same origin, making the perpendicular relationship easy to visualize.

  • Enter the x, y, and z components of vector A
  • Enter the x, y, and z components of vector B
  • Read the resultant vector A × B, its magnitude, and the angle between A and B
  • Check the diagram and step-by-step solution to see exactly how each component was calculated

Cross Product Formula

The cross product (also called the vector product) of two 3D vectors produces a new vector that is perpendicular to both original vectors. For vectors A = (Ax, Ay, Az) and B = (Bx, By, Bz), each component of the result follows a cyclic pattern: skip the matching axis, then multiply and subtract the other two components in the reverse order. Enter any equation with numeric components, and the calculator solves every step automatically.

  • x-component: Cx = Ay×Bz − Az×By
  • y-component: Cy = Az×Bx − Ax×Bz
  • z-component: Cz = Ax×By − Ay×Bx
  • Magnitude formula: |A × B| = |A| × |B| × sin(θ)
  • Area formula: Area of parallelogram = |A × B|, Area of triangle = |A × B| / 2

Worked Example: Finding the Cross Product Step by Step

Suppose A = (2, 3, 4) and B = (5, 6, 1). Start with the x-component: Cx = Ay×Bz − Az×By = (3)(1) − (4)(6) = 3 − 24 = −21. Next, the y-component: Cy = Az×Bx − Ax×Bz = (4)(5) − (2)(1) = 20 − 2 = 18. Finally, the z-component: Cz = Ax×By − Ay×Bx = (2)(6) − (3)(5) = 12 − 15 = −3.

So A × B = (−21, 18, −3), matching the default example above. Its magnitude is |A × B| = √((−21)² + 18² + (−3)²) = √(441 + 324 + 9) = √774 ≈ 27.82. This value also equals the area of the parallelogram formed by A and B, so the triangle formed by the same two vectors has an area of about 13.91.

The Right-Hand Rule and Direction of the Result

Unlike the dot product, which returns a single scalar number, the cross product always returns a vector — and that vector's direction matters just as much as its size. The direction of A × B is found using the right-hand rule: point the fingers of your right hand along vector A, curl them toward vector B through the smaller angle between them, and your thumb points in the direction of A × B.

This also explains why the cross product is anti-commutative: swapping the order reverses the direction, so B × A = −(A × B). If A and B are parallel (or one of them is the zero vector), the cross product is the zero vector, since there is no unique plane for a perpendicular direction to exist in.

Cross Product vs. Dot Product

The cross product and dot product both combine two vectors, but they measure completely different things. The dot product multiplies two vectors of any dimension and returns a single scalar related to how aligned the vectors are — largest when they point the same way, zero when perpendicular. The cross product only applies to 3D vectors and returns a brand-new vector perpendicular to both inputs, with a magnitude tied to the sine of the angle between them rather than the cosine.

A useful way to remember the difference: the dot product formula uses cos(θ) and tells you about similarity of direction, while the cross product formula uses sin(θ) and tells you about the perpendicular direction and the area swept between the two vectors. If you also need the scalar dot product, this calculator's sibling tool handles that separately.

Where the Cross Product Is Used

The cross product shows up anywhere a perpendicular direction, rotational effect, or swept area needs to be calculated from two vectors:

  • Physics, calculating torque: Torque = Position vector × Force
  • Physics, calculating angular momentum and magnetic force on a moving charge (F = qv × B)
  • Computer graphics and game development, generating surface normal vectors for lighting and shading
  • Engineering and robotics, finding the axis of rotation between two orientations
  • Geometry, computing the area of a parallelogram or triangle directly from two edge vectors
  • Aerospace and navigation, computing angular velocity and orbital mechanics quantities

Frequently Asked Questions

How do you calculate the cross product of two vectors?

Use the component formula: Cx = Ay×Bz − Az×By, Cy = Az×Bx − Ax×Bz, and Cz = Ax×By − Ay×Bx. For A = (2, 3, 4) and B = (5, 6, 1), the cross product is A × B = (−21, 18, −3).

Is the cross product a vector or a scalar?

The cross product is always a vector — it has both a magnitude and a direction. This is what distinguishes it from the dot product, which produces a single scalar number.

What does it mean if the cross product is zero?

A cross product of (0, 0, 0) means the two vectors are parallel (pointing in the same or exactly opposite direction), or that one of the vectors is itself the zero vector.

How do I find the direction of the cross product?

Use the right-hand rule: point your fingers along the first vector, curl them toward the second vector through the smaller angle, and your thumb points in the direction of the cross product.

Can you find the cross product of 2D vectors?

The cross product is formally defined for 3D vectors. For 2D vectors, treat the z-component as zero; the result becomes a vector along the z-axis whose magnitude equals the familiar 2D "scalar cross product" Ax×By − Ay×Bx.

How is the cross product related to the area of a parallelogram?

The magnitude of the cross product, |A × B|, equals the area of the parallelogram formed by vectors A and B. Dividing that value by 2 gives the area of the triangle formed by the same two vectors.