How to use the Vector Calculator
- Type vector A as comma-separated numbers, e.g. 3, 4, 0.
- Optionally type vector B with the same number of components.
- Read every result at once.
What does this tool do?
Vectors have both size and direction. The magnitude is the length of the arrow, the dot product measures how much two vectors point the same way, and the cross product gives a third vector perpendicular to both.
The angle between vectors comes from the dot product formula cos θ = (A · B) ÷ (|A||B|). 2D vectors are treated as 3D with z = 0 for the cross product.
Why use it?
- All common operations in one view.
- Works in 2D, 3D and higher dimensions.
- Angle shown in degrees and radians.
The formula
Privacy
The calculation happens instantly in your browser. The numbers you enter are not sent to our servers or saved. There's no account to create and nothing to install.
Frequently asked questions
Does the cross product work in 2D?
It's defined for 3D vectors. For 2D input, the calculator sets z = 0, so the result points straight along the z-axis.
Last reviewed by the M2Toolkit team.