QuickToolbox

Vector Calculator

Add, subtract, dot and cross two vectors in 2D or 3D, and find their magnitudes, the angle between them and the unit vector.

These tools are for study and quick checking. A result is only as good as the numbers you enter and the simplifying assumptions in the formula. For published, regulated or safety-critical work, check it against a trusted source or an instrument.

How it works

The formula

dot product = a1b1 + a2b2 + a3b3; angle = arccos(dot / (magnitude A x magnitude B))

Frequently asked questions

How do I enter a vector?

Separate the components with commas, such as 3, -2, 5. Use two numbers for 2D.

When is the dot product zero?

When the vectors are at right angles.

Is what I enter sent anywhere?

No. The calculation is done in your browser, so your numbers are not sent to a server or saved.

Related tools