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
- Enter your values in the boxes. Where a box has a unit beside it, check the unit before you read the answer.
- The answer updates as you type, so there is no button to press.
- Use Copy results to keep the answer. Check the formula and its limits below if the result will go into a report or an experiment.
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
Matrix Calculator
Add, subtract or multiply two matrices, or find the transpose, determinant and inverse of the first. Enter rows separated by semicolons.
Trigonometry Calculator
Find sine, cosine, tangent and their reciprocals for an angle in degrees, radians or gradians, and the angle in all three units.
Determinant Calculator
Find the determinant of a square matrix up to 8 by 8, and see whether the matrix is invertible. Enter rows separated by semicolons.