Vector Calculator
A vector has both size and direction. This vector calculator takes two vectors in 2D or 3D and finds their dot product, magnitudes, sum and the angle between them, plus the cross product for 3D vectors. Two-dimensional vectors are drawn as arrows, with their sum shown by placing them tip to tail.
How to use the vector calculator
- Type vector a, such as 3, 4 or 1, 2, 3.
- Type vector b with the same number of components.
- Press Calculate to see the products, magnitudes and angle.
Formula
Worked example: ⟨3, 4⟩ and ⟨1, 2⟩
- Vector a: 3, 4
- Vector b: 1, 2
✓ Answer checked
- |a|
- |b|
- a + b
- Angle between
Step-by-step working (3 steps)
Dot product a·b = a₁b₁ + a₂b₂ (+ a₃b₃)
Multiply matching components and add.
Magnitudes
Use Pythagoras on the components.
Angle a·b = |a||b|cos θ
Divide the dot product by the product of the magnitudes, then take the inverse cosine.
Formulas used
How this was checked
- ✓ The angle from atan2(|a × b|, a · b) matches the angle from the dot product.
Frequently asked questions
How do I find the dot product?
Multiply matching components and add. For ⟨3, 4⟩ and ⟨1, 2⟩: 3 × 1 + 4 × 2 = 11.
What does a dot product of 0 mean?
The vectors are perpendicular (at 90° to each other), as long as neither is the zero vector.
What is the cross product?
For 3D vectors, a × b is a vector perpendicular to both, with length equal to the area of the parallelogram they make.
Related calculators
Matrix Calculator
Find the inverse, determinant, transpose or RREF of a matrix, or add and multiply matrices.
Distance Between Two Points Calculator
Find the distance between two points on a graph using the distance formula.
Complex Number Calculator
Add, subtract, multiply and divide complex numbers exactly, and find the modulus, argument and polar form.
