Vector Calculator - 2D & 3D Vector Operations Online
Calculate vector operations including addition, subtraction, dot product, cross product, magnitude, angle between vectors, and projection. Math calculator for physics, engineering, computer graphics, and linear algebra students. Supports 2D and 3D vectors.
Vector Formulas
|v| = √(x² + y² + z²)Variables:
- |v|Magnitude (vector length)Magnitude (vector length)(e.g.: 5)
- x, y, zVector components on each axisVector components on each axis(e.g.: 3, 4, 0)
- a · bDot product = a₁b₁ + a₂b₂ + a₃b₃Dot product = a₁b₁ + a₂b₂ + a₃b₃(e.g.: 14)
- a × bCross product (3D only)Cross product (3D only)(e.g.: (i, j, k))
How to Use the Vector Calculator
- 1
Select Dimension
Choose whether you want to calculate 2D vectors (x, y) or 3D vectors (x, y, z).
- 2
Enter Components
Input the component values for vector A and vector B (if the operation involves two vectors).
- 3
Select Operation
Choose the operation: addition, subtraction, dot product, cross product, or magnitude.
- 4
View Result
The result will display the new vector or scalar value along with step-by-step calculations.
Examples
Magnitude of a 2D Vector
Calculate the length of vector v = (3, 4)
- 1.|v| = √(x² + y²)
- 2.|v| = √(3² + 4²)
- 3.|v| = √(9 + 16)
- 4.|v| = √25
The length of vector (3, 4) is 5 units. This is a classic Pythagorean triple.
Dot Product of Two Vectors
Calculate a · b where a = (1, 2, 3) and b = (4, 5, 6)
- 1.a · b = a₁b₁ + a₂b₂ + a₃b₃
- 2.a · b = (1×4) + (2×5) + (3×6)
- 3.a · b = 4 + 10 + 18
The dot product produces a scalar value of 32. A positive value indicates both vectors point in a similar direction.