Vector Calculator

Calculate vector addition, subtraction, dot products, and cross products for 3D coordinates.

Vector operations
Choose an operation, then enter the components of Vector A and Vector B.

About vector operations

A vector represents a quantity with magnitude and direction. In Cartesian coordinates, a three-dimensional vector is written as an ordered triple of x, y, and z components. This calculator performs four common operations on two vectors: addition, subtraction, the dot product, and the cross product. Entering zero for both z-components also lets you handle ordinary two-dimensional addition, subtraction, and dot products. Addition and subtraction work component by component. To add vectors A and B, add their x-coordinates, then their y-coordinates, and finally their z-coordinates. Subtraction follows the same pattern but subtracts each component of B from A. These operations model combined or relative displacement, force, velocity, acceleration, and many other physical quantities. The dot product multiplies corresponding components and adds the products. Its result is a scalar rather than a vector. For A = (Ax, Ay, Az) and B = (Bx, By, Bz), the result is Ax times Bx plus Ay times By plus Az times Bz. A zero dot product means nonzero vectors are perpendicular. The dot product also connects vectors to angles because it equals the product of their magnitudes and the cosine of the angle between them. The cross product is defined for three-dimensional vectors and returns another vector. Its result is perpendicular to both inputs, with direction determined by the right-hand rule. The magnitude of the cross product equals the area of the parallelogram spanned by the two vectors. Cross products are used in torque, angular momentum, surface normals, computer graphics, and geometry. Reversing the input order reverses the sign of the result. Use consistent units and coordinate axes for meaningful results. Addition and subtraction require quantities of the same type, while dot and cross products produce derived units. The calculator uses standard floating-point arithmetic and displays concise decimal results. It provides the computed value directly so you can verify homework, explore examples, or continue a longer linear algebra calculation without repeating component arithmetic by hand.

Vector operation examples

OperationResultExplanation
(1, 2, 3) + (4, 5, 6)(5, 7, 9)Add corresponding components.
(1, 2, 3) dot (4, 5, 6)32Compute 1 times 4 plus 2 times 5 plus 3 times 6.
(1, 2, 3) cross (4, 5, 6)(-3, 6, -3)The result is perpendicular to both input vectors.

How to use the vector calculator

  1. Choose addition, subtraction, dot product, or cross product.
  2. Enter all three components for Vector A and Vector B.
  3. Select Calculate to perform the chosen operation.
  4. Review the scalar or vector result, then reset or choose another operation.

Vector calculator FAQ

What is the difference between a dot product and a cross product?

A dot product returns a scalar that measures directional alignment. A cross product returns a vector perpendicular to both inputs.

Can this calculator work with 2D vectors?

Yes for addition, subtraction, and dot products. Enter zero in both z fields to represent vectors in the xy-plane.

When are two vectors perpendicular?

Two nonzero vectors are perpendicular when their dot product is zero. Small rounding differences may produce a value very close to zero for decimal inputs.

What direction does the cross product point?

It points perpendicular to the plane containing both vectors. Its sign and direction follow the right-hand rule from Vector A toward Vector B.

Does vector subtraction depend on order?

Yes, A minus B is generally the negative of B minus A. Keep the intended first and second vectors in the correct input groups.