Code tool

Vector Calculator

Enter two vectors, choose 2D or 3D, and calculate common component-based results locally.

In-browser processingNo account requiredPrivacy details ↗

Enter comma-separated components; corresponding units must match. Use consistent units; no spatial location interpretation.

A QUICK WALKTHROUGH

How to use this tool

  1. Choose 2D or 3D and enter both vectors.
  2. Calculate magnitude, dot product, and angle.
  3. Use consistent units for corresponding components.

Component formulas

Magnitude is the square root of summed squared components; dot product multiplies corresponding components; angle uses acos(dot ÷ magnitudes). Corresponding units must be consistent.

GOOD TO KNOW

Common questions

Can components use mixed units?

Convert them first so corresponding components use consistent units.

Does this explain a physical location?

No. It reports mathematical vector results only.