Vector operations
Addition and subtraction work component-wise. The dot product returns a scalar. The cross product (3D only) returns a perpendicular vector. Scalar multiplication scales each component.
Perform vector operations including addition, subtraction, dot product, cross product, and scalar multiplication.
Share this calculator
Dimensions
Operation
Vector 1
Vector 2
Real-valued vectors only
This calculator works with real number components. Complex-valued vectors are not supported.
Cross product is 3D only
The cross product is defined for three-dimensional vectors. Switch to 3D mode to use it.
Result
Sum of the input vectors.
Step-by-step
Also in Linear Algebra
Linear Algebra
A general-purpose vector calculator that performs addition, subtraction, dot product, cross product, and scalar multiplication on 2D or 3D vectors.
Addition and subtraction work component-wise. The dot product returns a scalar. The cross product (3D only) returns a perpendicular vector. Scalar multiplication scales each component.
Frequently asked questions
Addition, subtraction, cross product, and scalar multiplication return vectors. The dot product returns a scalar (a single number).
The cross product is defined only in three dimensions because it produces a vector perpendicular to both inputs, which requires a third dimension.
Related
These related calculators come from the same leaf category, nearby sibling categories, or the same top-level topic.
Add multiple 2D or 3D vectors component-wise and find the resultant vector with magnitude.
Calculate the dot product of two vectors in 2D or 3D, with angle and orthogonality detection.
Compute the cross product of two 3D vectors, with magnitude and direction information.
Calculate the angle between two vectors in 2D or 3D using the dot product formula.