Vector addition and subtraction
Add or subtract corresponding components of vectors with equal dimensions.
A ± B = (a₁ ± b₁, …, aₙ ± bₙ)
Add and subtract vectors or calculate dot product, cross product, magnitude, unit vector, angle, and projection.
Version 1.0 · Last Updated: August 10, 2026 · Maintained by ToolLarder
Perform common linear algebra operations on vectors from 2 to 6 dimensions. Calculate dot product, magnitude, unit vector, angle, and projection, plus the three-dimensional cross product.
Add or subtract corresponding components of vectors with equal dimensions.
A ± B = (a₁ ± b₁, …, aₙ ± bₙ)
Multiply corresponding components and add the products to produce one scalar value.
A · B = Σ aᵢbᵢ
Calculate a new vector perpendicular to two three-dimensional vectors.
A × B = (a₂b₃−a₃b₂, a₃b₁−a₁b₃, a₁b₂−a₂b₁)
The square root of the sum of squared components gives the Euclidean norm.
‖A‖ = √Σaᵢ²
Divide a nonzero vector by its magnitude to create a length-one vector in the same direction.
 = A / ‖A‖
Use the dot product and vector magnitudes to find the angle in degrees and radians.
θ = arccos((A·B)/(‖A‖‖B‖))
Find the component of vector A that lies in the direction of vector B.
projᴮ(A) = ((A·B)/(B·B))B