A dot product calculator multiplies two vectors term by term and adds the results to a single number. Enter the components of each vector. The dot product of 1, 2, 3 and 4, 5, 6 is 4 plus 10 plus 18, which is 32.
Calculations run in your browser. Inputs are not sent to our servers; anything you Save stays in this browser only.
Saved results (0)
How to Use the Dot Product Calculator
- Enter the components of Vector A, separated by commas.
- Enter Vector B with the same number of components.
- Read the dot product, a single number.
- See the angle between the vectors and whether they are perpendicular.
Here is what each result means:
| Result | What it means |
|---|---|
| Dot product | The sum of the products of matching components. |
| Angle between | The angle the two vectors make. |
| Perpendicular? | Whether the vectors are at right angles. |
What Is the Dot Product?
The dot product, also called the scalar product, combines two vectors into a single number. You multiply matching components and add the results. So for the vectors 1, 2, 3 and 4, 5, 6, the dot product is 1 times 4 plus 2 times 5 plus 3 times 6, which is 32.
The dot product measures how much two vectors point the same way. It equals the product of their lengths times the cosine of the angle between them, so a positive value means a sharp angle, zero means a right angle, and a negative value means an obtuse angle. That link makes it central to geometry, physics and graphics.
How Does the Dot Product Calculator Work?
It multiplies matching components and adds them, then uses the lengths to find the angle.
- Multiply each pair of matching components.
- Add those products for the dot product.
- Divide by the two magnitudes and take the inverse cosine for the angle.
The lengths in the angle formula come from the vector magnitude calculator.
Dot Product Example
Find the dot product of 1, 2, 3 and 4, 5, 6.
Calculation: 1 x 4 + 2 x 5 + 3 x 6 = 4 + 10 + 18 = 32. The result is positive, so the angle is sharp; working out the lengths gives an angle of about 12.9 degrees between the two vectors.
What the Sign of the Dot Product Means
The sign alone tells you the rough angle between the vectors.
| Dot product | Angle | Meaning |
|---|---|---|
| Positive | Less than 90 degrees | Point broadly the same way |
| Zero | Exactly 90 degrees | Perpendicular |
| Negative | More than 90 degrees | Point broadly opposite |
A dot product of zero is the quick test for two vectors being at right angles, without finding the full angle.
Dot Product vs Cross Product
The two vector products give very different things.
| Product | Result | Tells you |
|---|---|---|
| Dot product | A single number | How aligned the vectors are |
| Cross product | A new vector | A direction perpendicular to both |
The dot product works in any dimension and gives a scalar; the cross product is defined in three dimensions and gives a vector.
What Affects the Dot Product
The Angle Between the Vectors
The dot product is largest when the vectors point the same way and zero when they are perpendicular.
The Lengths of the Vectors
Longer vectors give a larger dot product for the same angle, since it scales with both lengths.
The Sign of Components
Opposing components pull the total down and can make the dot product negative.
When to Use a Dot Product Calculator
Finding an Angle
Work out the angle between two vectors from their components.
Testing Perpendicularity
Check whether two vectors are at right angles with a single number.
Physics
Compute work as force dotted with displacement, or a projection onto a direction.
Common Mistakes
1. Expecting a Vector
The dot product is a single number, not a vector. The cross product gives a vector.
2. Mismatched Lengths
Both vectors must have the same number of components to pair them up.
3. Forgetting to Add
Multiply matching components and then add all the products. A single product is not the dot product.
4. Misreading a Negative Result
A negative dot product is valid and means an obtuse angle, not an error.
5. Confusing It with the Cross Product
They are different operations with different results and uses.
Accuracy and Limitations
The dot product is exact; only the displayed decimals are rounded.
What it calculates accurately
- The dot product in any dimension
- The angle between the vectors
- Whether they are perpendicular
What it does not do
- Give a cross product or a vector result
- Handle vectors of different lengths
- Find the angle for a zero vector
- Work with complex components
How We Compute the Dot Product
Frequently Asked Questions
What is the dot product?
It is a single number found by multiplying two vectors term by term and adding the results. For 1, 2, 3 and 4, 5, 6 it is 4 plus 10 plus 18, which is 32. It measures how aligned the vectors are.
How do you calculate a dot product?
Multiply each pair of matching components, then add all the products. Both vectors must have the same number of components. This tool does that and also finds the angle between them.
What does the dot product tell you?
It shows how much two vectors point the same way. A positive value means a sharp angle, zero means perpendicular, and a negative value means an obtuse angle beyond 90 degrees.
When is the dot product zero?
When the two vectors are perpendicular, at exactly 90 degrees. So a dot product of zero is a quick test for two vectors being at right angles.
How do I find the angle between two vectors?
Divide the dot product by the product of the two lengths, then take the inverse cosine. This tool reports the angle in degrees for you.
What is the difference between the dot and cross product?
The dot product gives a single number that measures alignment and works in any dimension. The cross product gives a new vector perpendicular to both and is defined in three dimensions.
Can the dot product be negative?
Yes. A negative dot product means the angle between the vectors is greater than 90 degrees, so they point in broadly opposite directions. It is a valid result.
What is the dot product used for?
It finds angles, tests perpendicularity, and projects one vector onto another. In physics it computes work as force dotted with displacement.
Is my information saved?
No. The calculation runs in your browser and nothing you enter is stored or sent anywhere, unless you choose Save, which keeps the result only on this device.
Sources
- Dot product (Wikipedia).
- The dot product explained (Maths Is Fun).
- Vectors (Wikipedia).
Related Calculators
Looking for more vector tools?
Explore all math calculatorsThis calculator finds the dot product of two vectors of the same length, plus the angle between them. A dot product of zero means the vectors are perpendicular. Results are rounded for display. Spotted an error? Let us know.
Author
Shakeel Muzaffar is the Founder and Editor-in-Chief of MultiCalculators.com, bringing over 15 years of experience in digital publishing, product strategy, and online tool development. He leads the platform's editorial vision, ensuring every calculator meets strict standards for accuracy, usability, and real-world value. Shakeel personally oversees content quality, formula verification workflows, and the platform's commitment to publishing tools that are genuinely useful for students, professionals, and everyday users worldwide.




