Core Links Engineering CalculatorsHPに戻るCompany homeAll tools

Beta

Vector Calculator

Enter components to add, subtract, scale, normalize and project 2D or 3D vectors, or find dot products, cross products and angles.

Free, no sign-in. Input values are calculated on your device.

Choose another math calculator (9 tools)

Enter the conditions

Result

Loading the calculator.

How to use this calculator

  1. Choose the task you need.
  2. Check the labels and units, then enter the known values.
  3. Select Calculate to see the result and formula. Recalculate after changing inputs.
  • Add, subtract and scale vectors:Calculate a + b, a − b and k × a. For a 2D vector, enter zero for z.
  • Magnitude and unit vector:Magnitude is the square root of the sum of squared components. The unit vector has the same direction and magnitude one.
  • Dot product and angle between vectors:The angle is from 0° to 180°. A zero vector gives a zero dot product, but no angle because it has no direction.
  • Cross product and parallelogram / triangle area:The order is a × b in a right-handed coordinate system. Reversing the order reverses the sign.
  • Project a onto b and find the perpendicular component:Project a onto the direction of b. Vector b must be nonzero. The signed scalar projection is negative when it points opposite b.

Worked examples

Vector (3,4,0) has magnitude 5 and unit vector (0.6,0.8,0). Its projection onto the x direction is (3,0,0).

Assumptions and limits

  • For 2D vectors set z to zero. Cross products use a × b in a right-handed system. The 3D diagram is a schematic projection, not a true-size angle or length view.
  • Use consistent units for components. Magnitudes use the original unit; dot/cross products and areas use its square. Unit vectors are dimensionless.
  • A zero vector has no direction or angle. Projection onto a zero vector b is rejected.
  • Component magnitudes must be at most 1 billion, and nonzero values at least 1e−12. Results are numerical approximations.

Related calculations

Math calculator directory