Vector calculator

Add, subtract, dot and cross two 2D/3D vectors, with magnitudes, angle, and projection.

Vector a

Vector b

Dot = Σ aᵢbᵢ. Cross (3D only) = (a₂b₃−a₃b₂, a₃b₁−a₁b₃, a₁b₂−a₂b₁). Angle = acos(dot / |a||b|) in degrees. Scalar projection of a onto b = a·b / |b|.

Everything runs in this browser.

How to use

  1. Choose 2D or 3D.
  2. Fill every component of both vectors.
  3. Read sum, difference, dot, cross, magnitudes, and angle.

What it supports

Cross product is 3D only; 2D shows it as not applicable. Angle, projection, and unit vectors require nonzero vectors — a zero vector returns —. Values are real numbers, not unit-tagged physics quantities.

Related tools

Related guides