This calculator finds the dot product of two three-dimensional vectors, along with the angle between them and the length of each, the core measurements you need when working with vectors. The dot product, also called the scalar product, multiplies two vectors to give a single number rather than another vector, and that number carries a lot of meaning. It measures how much the two vectors point in the same direction: it is largest when they are parallel, zero when they are perpendicular, and negative when they point in opposing directions. This makes the dot product indispensable across physics, engineering, computer graphics and machine learning, where it is used to calculate the work done by a force, to project one vector onto another, to test whether vectors are at right angles, and to measure similarity between data. This tool computes it. You enter the x, y and z components of each vector, and the calculator returns the dot product, the angle between the two vectors in degrees, and the magnitude, or length, of each vector. The results update as you type, so you can see how the angle shrinks as the vectors align and the dot product grows. Use it for physics and maths problems, for graphics and geometry, or to check vector homework. The relationship at its heart is elegant: the dot product equals the product of the two magnitudes times the cosine of the angle between them, which is exactly how the angle is recovered. A dot product of zero is the quickest test that two vectors are perpendicular. To work in two dimensions, simply set the z components to zero. The calculations are exact for your inputs, with the angle rounded for display.
a . b = ax bx + ay by + az bz. The dot product is zero when vectors are perpendicular. Set z to 0 for 2D. Angle rounded for display.
The dot product multiplies the matching components of the two vectors and adds the results. The magnitude of each vector is the square root of the sum of its squared components. The angle between them is the inverse cosine of the dot product divided by the product of the two magnitudes, converted to degrees.
For a = (1, 2, 3) and b = (4, 5, 6), the dot product is 1 times 4, plus 2 times 5, plus 3 times 6, which is 4 plus 10 plus 18, equals 32. The magnitudes are about 3.742 and 8.775, so the angle is the inverse cosine of 32 divided by their product, about 12.93 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.