Algebra & Calculus

3D Vector Dot, Cross, Angle & Projection Calculator

Compare two three-dimensional vectors and project the first onto the second.

How the calculation works

Dot product = AxBx+AyBy+AzBz. Cross product = (AyBz−AzBy, AzBx−AxBz, AxBy−AyBx). Angle = atan2(|A×B|, A·B). Projection of A onto nonzero B = [(A·B)/|B|²] B.

Worked example

Example inputs — Vector A components x y z: 1 0 0; Vector B components x y z: 0 1 0. Expected results — Dot product A·B: 0; Cross product A×B: 0, 0, 1; Magnitude of A: 1; Magnitude of B: 1; Angle between vectors: 90 degrees; Projection of A onto B: 0, 0, 0.

Assumptions and limits

Numerical educational calculation with finite real inputs. Rounding, ill-conditioning and the stated model domain can limit accuracy; this does not manipulate arbitrary symbolic expressions. Exactly three components each, in an orthonormal right-handed basis. A zero vector has no direction/angle; projection onto a zero vector is undefined. Dot/cross units depend on the physical units of the supplied vectors.

Reference and further reading

Read the underlying subject reference. Calculith is an independent implementation; the reference does not endorse or certify this tool.

Related calculators

Browse all 1000 calculators →

Example values are editable. Results are estimates where assumptions apply. Calculations run in your browser. Updated 2026-11-16.