Vector Calculator

Calculate vector magnitudes, products, angles or projections and inspect a 2D vector diagram.

On-device No sign-up Free to use

Calculate result controls

Showing an example. Edit to see your own.

Dimensions
Operation
?

Two or three Cartesian components separated by commas or spaces. Use plain decimals.

Processed in your browser. Your inputs stay on this device.

Result

Showing an example.

Compare two perpendicular unit vectors.

Comparison of (1, 0, 0) and (0, 1, 0): dot 0, cross A × B (0, 0, 1), angle 90°.
Answer: dot 0, cross A × B (0, 0, 1), angle 90°
Formula: A · B = sum of matching component products.

https://usefreetools.net/vector-calculator · 20 November 2026

Was this helpful?

How to use Vector Calculator

  1. Choose 2D or 3D, then enter exactly that many components for both A and B, separated by commas or spaces. Use the same Cartesian frame and compatible units.
  2. Choose Compare, Dot product, Cross product A × B, Angle or Projection of A onto B. Cross product requires 3D.
  3. Calculate and read magnitudes and the selected result. Cross-product direction and projection depend on A/B order; angles are in degrees.
  4. For 2D, download vector-2d.svg if useful. A 3D calculation provides numbers without a projected diagram.

Example: Vector Calculator

Compare two perpendicular unit vectors.

You add
Dimensions: 3D Operation: Compare Vector A: 1, 0, 0 Vector B: 0, 1, 0
You get
Comparison of (1, 0, 0) and (0, 1, 0): dot 0, cross A × B (0, 0, 1), angle 90°. Answer: dot 0, cross A × B (0, 0, 1), angle 90° Formula: A · B = sum of matching component products.

Supported inputs and limits

  • Two or three Cartesian components per vector, at most 200 characters per vector and component magnitude at most 10¹².
  • Enter plain decimals with up to 60 characters, 40 digits and 20 fractional places per number; exponent notation is refused.
  • Calculations use floating-point arithmetic.
  • Cross product is 3D only.
  • Compare and Angle require both vectors nonzero; projection requires nonzero B but may accept zero A.
More details

Dot and cross products do not need defined directions for zero inputs.

Unit conversion and frame transformations are outside the tool.

The SVG is available for 2D only and uses rounded plotted coordinates.

Where your input is processed

This tool does not upload your inputs. See the limits for anything saved on your device.

Use the same coordinate frame

Dot products, angles and projections assume compatible components in a common Cartesian frame. Unit conversion or coordinate-frame transformation is outside this page.

Questions about Vector Calculator

Does the order of a cross product matter?

Yes. Reversing A and B reverses the cross product direction. The page names the order in the result.

Can a zero vector have an angle?

Its direction is undefined. The tool refuses an angle that requires a zero vector’s direction.

What does projection onto B mean?

It is the component of A in B’s direction. B must be nonzero to define that direction.

Page updated · Project managed by Tony Hines · Report a problem with Vector Calculator