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.
For 3D vectors; set z to 0 for 2D. The dot product is zero when vectors are perpendicular. Angle is rounded for display.
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.
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.
If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.
Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.
All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.
Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.
Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.
Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.
All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.
© 2019 to 2026 Calculate.co.nz. All rights reserved.