Vector Calculator

Compute and visualise vector operations: dot product, cross product, projection, and angle.

Loading interactive simulation...

Directional Magnitude Constructs 🖖

Vectors encode immutable physical quantities containing both magnitude and angular direction across spatial dimensions. The dot product quantitatively evaluates parallel alignment efficiency, while the cross product generates a strictly orthogonal resultant, forming the mathematical backbone of 3D electrodynamics and mechanics.

Two products, two very different answers 🖖

This tool runs the two ways vectors multiply. The dot product returns a single number measuring how much two vectors point the same way โ€” zero means they are perpendicular. The cross product (3D) returns a whole new vector at right angles to both, whose length equals the area of the parallelogram they span. To find the angle, just rearrange the dot product: cos ฮธ = (aยทb)/(|a| |b|).

The cross product exists only in 3D and 7D 🖖

The dot product works in any number of dimensions, but a true cross product โ€” two vectors in, one vector perpendicular to both out โ€” exists only in three and seven dimensions. This oddity ties directly to the algebras of quaternions and octonions, the only normed division algebras beyond the real and complex numbers. So the familiar 3D cross product is far less universal than it looks.

Example problems