Dot Product Calculator

Quick answer

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.

Updated 2026-09-09By Shakeel MuzaffarReviewed by Prof. Dr. Khalil Mudassar, PhD
Try
Vectors
The components of the first vector, separated by commas.
The components of the second vector, in the same order and count.
Dot product
--
Angle between--
Perpendicular?--

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

  1. Enter the components of Vector A, separated by commas.
  2. Enter Vector B with the same number of components.
  3. Read the dot product, a single number.
  4. See the angle between the vectors and whether they are perpendicular.

Here is what each result means:

ResultWhat it means
Dot productThe sum of the products of matching components.
Angle betweenThe 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.

Formula: a . b = sum(a_i b_i) = |a| |b| cos(theta)
  1. Multiply each pair of matching components.
  2. Add those products for the dot product.
  3. 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 productAngleMeaning
PositiveLess than 90 degreesPoint broadly the same way
ZeroExactly 90 degreesPerpendicular
NegativeMore than 90 degreesPoint 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.

ProductResultTells you
Dot productA single numberHow aligned the vectors are
Cross productA new vectorA 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

Method
Sum of the products of matching components; the angle from the dot product over the two magnitudes.
Inputs used
The components of both vectors.
Assumptions
Two real vectors of the same length.
Rounding
Dot product and angle to four decimals.
Edge cases
A dot product of zero means perpendicular; a zero vector leaves the angle undefined.
Sources
See Sources below.
Last reviewed
2026-09-08.

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

Related Calculators

Looking for more vector tools?

Explore all math calculators

This 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
Founder & Editor-in-Chief at  ~ Web ~  More Posts

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.