Skip to content
MasterMath

Cross Product Calculator

The cross product of two 3D vectors: a third vector perpendicular to both, whose magnitude is the area of the parallelogram they span.

Cross product

—

Cross product—
Magnitude of the result—
Area of the parallelogram—
Area of the triangle—
Angle between the vectors—
Perpendicularity check—

How this was worked out

    The formula

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

    What it means

    Unlike the dot product, which returns a number, the cross product returns a vector. It points perpendicular to both inputs, in the direction given by the right-hand rule, and its length equals the area of the parallelogram the two vectors define.

    How to do it by hand

    1. Both vectors need exactly three components
    2. Each output component is a 2×2 determinant of the other two
    3. Check: the result dotted with either input should give zero
    4. Its magnitude is the parallelogram area; half of it is the triangle

    What is worth knowing

    The cross product exists only in three dimensions, and that is not an oversight — it is a genuine peculiarity. In three dimensions the space of directions perpendicular to two given vectors is exactly one-dimensional, so 'the' perpendicular is well defined up to sign. In four dimensions it is a plane, and there is no single answer. It is also anticommutative: a × b = −(b × a), so swapping the order flips the vector. In physics it defines torque, angular momentum and the magnetic force on a moving charge, all of which point 'sideways' for exactly this reason.

    Frequently asked questions

    Why only three dimensions?

    Because only in 3D is the direction perpendicular to two vectors unique up to sign. In 4D there is a whole plane of them.

    Which way does the result point?

    By the right-hand rule: point your fingers along the first vector, curl toward the second, and your thumb gives the direction.

    What does its magnitude mean?

    The area of the parallelogram the two vectors span. Half of it is the area of the triangle.

    Is a × b the same as b × a?

    No, it is the exact opposite: a × b = −(b × a). Swapping the order reverses the direction.