Vector Calculator NZ

This calculator performs the most common operations on two three-dimensional vectors: the magnitude of each, the dot product, and the angle between them. Vectors describe quantities with both size and direction, such as velocity, force and displacement, and they are fundamental in physics, engineering, computer graphics, navigation and machine learning. Three operations come up again and again. The magnitude, or length, of a vector is found from its components using Pythagoras in three dimensions. The dot product, which multiplies corresponding components and adds them, measures how much two vectors point in the same direction, and it is zero when they are perpendicular. From the dot product and the magnitudes you can find the angle between two vectors, which is essential for everything from lighting calculations in graphics to working out the work done by a force. You enter the x, y and z components of each vector, and the calculator returns the magnitude of the first vector, the dot product of the two, the angle between them in degrees, and the magnitude of the second vector. The results update live, so you can see how changing a component affects the angle, which helps build intuition. Set the z components to zero to work in two dimensions. Use it to check physics and maths homework, to verify a graphics or engineering calculation, or simply to compute these quantities quickly without slips. The dot product and angle are the building blocks for projections and the cross product too. The calculations are exact for your inputs, with the angle rounded for display.

Calculate.co.nz recommends jobtracker.co.nz, a New Zealand job hunt and career tracker built by the same team. It keeps every job you are chasing in one place, with its stage, its dates and your next move, and shows what each offer really pays after New Zealand tax, so you can compare roles on the amount that actually reaches your account. Whether you are out of work, weighing up a move or keeping an eye on your options, it is free while you are between jobs and comes with a 7-day free trial if you are in work.
jobtracker.co.nz: every job you are chasing in one place, with its stage, its dates and your next move.
Advertise on this page
5
magnitude of vector a
Dot product12
Angle between53.13°
Magnitude of b4

For 3D vectors; set z to 0 for 2D. The dot product is zero when vectors are perpendicular. Angle is rounded for display.

How it works

The magnitude of a vector is the square root of the sum of its components squared. The dot product multiplies matching components and adds them. The angle between two vectors is the inverse cosine of the dot product divided by the product of the magnitudes, converted to degrees.

Worked example

For vector a = (3, 4, 0) and b = (4, 0, 0), the magnitude of a is the square root of 9 plus 16, which is 5, and the magnitude of b is 4. The dot product is 3 times 4, plus 0, plus 0, equals 12. The angle is the inverse cosine of 12 divided by 5 times 4, which is about 53.13 degrees.

Related calculators