How to use Vector Calculator
- 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.
- Choose Compare, Dot product, Cross product A × B, Angle or Projection of A onto B. Cross product requires 3D.
- Calculate and read magnitudes and the selected result. Cross-product direction and projection depend on A/B order; angles are in degrees.
- 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.
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.