Tools/🧮 Calculators/Vector Calculator

Vector Calculator

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

Vector Operation
Vector A
+
Vector B

Add corresponding components of vectors A and B with equal dimensions.

Result · A + B
Enter vector components and calculate an operation.

Online vector calculations and vector operations

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.

Vector addition and subtraction

Add or subtract corresponding components of vectors with equal dimensions.

A ± B = (a₁ ± b₁, …, aₙ ± bₙ)

Dot product (scalar product / inner product)

Multiply corresponding components and add the products to produce one scalar value.

A · B = Σ aᵢbᵢ

Cross product (vector product)

Calculate a new vector perpendicular to two three-dimensional vectors.

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

Vector magnitude (norm)

The square root of the sum of squared components gives the Euclidean norm.

‖A‖ = √Σaᵢ²

Unit vector calculator

Divide a nonzero vector by its magnitude to create a length-one vector in the same direction.

 = A / ‖A‖

Angle between two vectors

Use the dot product and vector magnitudes to find the angle in degrees and radians.

θ = arccos((A·B)/(‖A‖‖B‖))

Vector projection calculator

Find the component of vector A that lies in the direction of vector B.

projᴮ(A) = ((A·B)/(B·B))B

Vector Calculator Frequently Asked Questions