Dot Product Calculator
What is the Dot Product Calculator?
What this calculator does.
Type the three components of two vectors into the six fields and this page returns their dot product, both magnitudes, and the angle between them in radians and degrees. It is built for precalculus, physics, and linear algebra work with vectors in three-dimensional space.
The honest scope, up front.
This tool handles exactly two vectors with exactly three components each
There is no separate two-dimensional mode and no cross product. If your vectors live in a plane, enter 0 for both z components and every result, including the angle, comes out exactly right.
What a dot product means.
A dot product multiplies two vectors and returns a single ordinary number, called a scalar, instead of another vector. That number measures how much the two vectors point the same way: strongly positive when they align, zero when they are perpendicular, negative when they oppose.
The component formula.
Match the components in order and multiply each pair: x times x, y times y, z times z. Then add the three products. For the page defaults, 1 times 4 plus 2 times 5 plus 3 times 6 gives 4 plus 10 plus 18, totaling 32.
Reading the Dot Product (A·B) line.
This is the headline result, shown to four decimal places
With whole-number components it lands on a whole number, as the default 32 does. In physics the same line can carry combined units, such as newton-meters when a force vector meets a displacement vector.
Reading the |A| (magnitude of A) line.
A magnitude is a vector's length, found by extending the Pythagorean theorem into three dimensions: square each component, add, and take the square root. For the default first vector, 1, 2, and 3, that is the square root of 14, about 3. 7417.
Reading the |B| (magnitude of B) line.
The second magnitude works the same way on the Vector B components
For the defaults 4, 5, and 6, the squares are 16, 25, and 36, summing to 77, so the magnitude is the square root of 77, about 8. 7750.
Where the angle comes from.
Geometry defines the dot product a second way: it equals the product of the two magnitudes times the cosine of the angle between the vectors. Rearranging that identity isolates the cosine, and the arccosine function turns it back into an angle.
Reading the Angle (radians) line.
This line shows the angle in radians to six decimal places, the unit most US precalculus and calculus courses expect. The defaults give 0. 225726 radians, a small angle that matches two vectors pointing in nearly the same direction.
Reading the Angle (degrees) line.
The same angle appears in degrees to four decimal places, here 12. 9332 degrees. Because arccosine returns its principal value, this angle always lands between 0 and 180 degrees: it is the smaller angle between the vectors, never a reflex angle.
Worked example one: the page defaults.
With Vector A as 1, 2, 3 and Vector B as 4, 5, 6, the products are 4, 10, and 18, so the dot product is 32. The magnitudes are about 3. 7417 and 8. 7750, and the angle is 12. 9332 degrees.
Worked example two: an obtuse angle.
Enter Vector A as 2, negative 1, 3 and Vector B as 1, 4, negative 2. The products are 2, negative 4, and negative 6, summing to negative 8. The angle is 117. 8118 degrees, obtuse, exactly as the negative sign predicts.
Worked example three: perpendicular vectors.
Enter Vector A as 0, 3, 4 and Vector B as 0, negative 4, 3. The products are 0, negative 12, and 12, so the dot product is exactly 0. Both magnitudes are 5, and the angle comes out at exactly 90 degrees.
Worked example four: a level physics pair.
Enter Vector A as 3, 0, 4 and Vector B as 5, 2, 0. Only the first pair of components contributes, so the dot product is 15. The magnitudes are 5 and about 5. 3852, and the angle is 56. 1455 degrees.
The sign tells the story.
You can read the geometry straight off the sign before checking the angle. A positive dot product means an acute angle, zero means a right angle, and a negative value means an obtuse angle. That three-way test is why the dot product appears in so many courses.
Dot products in physics: work.
In physics, work equals the dot product of force and displacement
Only the force component along the motion does work, which is why a centripetal force, always perpendicular to the velocity, does none. This calculator's angle tells you the alignment behind that fact.
Dot products in precalculus: orthogonality tests.
Precalculus and linear algebra classes use the zero case constantly: two vectors are called orthogonal exactly when their dot product is zero. Type both vectors in and read one line. The same computation also underlies projections of one vector onto another in later units.
A built-in sanity check.
The Cauchy-Schwarz inequality says the absolute value of a dot product can never exceed the product of the two magnitudes. The defaults give 32 against 3. 7417 times 8. 7750, about 32. 8329, so the check passes. A hand result bigger than that signals an arithmetic slip.
The zero vector problem.
If either vector is all zeros, its magnitude is 0, and the angle formula must divide by that 0. There is no angle between a direction and a vector with no direction, so treat the angle lines as meaningless there; the dot product itself is still 0.
Common mistake: mismatched pairing.
The x component of one vector must multiply the x component of the other, and likewise for y and z. Swapping the two whole vectors changes nothing, since the dot product is commutative, but scrambling components inside one vector changes the answer completely.
Common mistake: expecting a vector answer.
Students meeting this topic often expect the result to be a third vector. That is the cross product, a different operation with a different calculator. The dot product collapses direction information into one number, and that number is the entire point.
Negative components are normal.
Components may be negative, and negative components are usually what push a dot product below zero. Enter them with their signs exactly as written. The angle still reports between 0 and 180 degrees, because arccosine folds every configuration into that smaller angle.
One more use: projections.
The projection of one vector onto another — the shadow one casts on the other — is built from this same dot product, divided by a magnitude. Physics uses it to split a force into components along and across a ramp, which is why this result feeds so many later formulas.
When you need more than this tool.
Cross products, vector projections, and vectors with four or more components live outside this page. So does normalizing a vector to length 1, although the magnitude lines give you the divisor for doing that by hand: divide each component by the magnitude shown.
With the pre-filled defaults — Vector A — x 1, Vector A — y 2, Vector A — z 3, Vector B — x 4, Vector B — y 5, and 1 more more inputs — the Dot Product Calculator returns Dot Product (A·B) 32. 0000, |A| (magnitude of A) 3. 7417, |B| (magnitude of B) 8.
7750, Angle (radians) 0. 225726, Angle (degrees) 12. 9332. Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.
How to Use the Dot Product Calculator
- 1Type the x component of your first vector into the Vector A — x field.
- 2Type the y component into the Vector A — y field.
- 3Type the z component into the Vector A — z field — enter 0 if your vector is two-dimensional.
- 4Type the x component of your second vector into the Vector B — x field.
- 5Type the y component into the Vector B — y field.
- 6Type the z component into the Vector B — z field — again, 0 for a flat, two-dimensional vector.
- 7Read the Dot Product (A·B) line for the scalar result of the multiplication.
- 8Check |A| (magnitude of A), |B| (magnitude of B), Angle (radians), and Angle (degrees) for the supporting values.
Formula
This is the core equation the Dot Product Calculator uses to calculate results. Enter values in the calculator above to see it in action.
See the full step-by-step formula guide with worked examples →
Common Examples
| Scenario | Calculation | Result |
|---|---|---|
| Page defaults: [1, 2, 3] and [4, 5, 6] | Dot = 1(4) + 2(5) + 3(6) = 4 + 10 + 18 = 32; |A| = sqrt(14) ≈ 3.7417, |B| = sqrt(77) ≈ 8.7750 | Dot Product (A·B) = 32, Angle = 0.225726 radians = 12.9332 degrees |
| A negative dot product: [2, -1, 3] and [1, 4, -2] | Dot = 2(1) + (-1)(4) + 3(-2) = 2 - 4 - 6 = -8; |A| = sqrt(14) ≈ 3.7417, |B| = sqrt(21) ≈ 4.5826 | Dot = -8, Angle = 2.056205 radians = 117.8118 degrees (obtuse) |
| Perpendicular vectors: [0, 3, 4] and [0, -4, 3] | Dot = 0(0) + 3(-4) + 4(3) = 0 - 12 + 12 = 0; |A| = 5, |B| = 5 | Dot = 0, Angle = 1.570796 radians = 90 degrees exactly |
| A level physics pair: [3, 0, 4] and [5, 2, 0] | Dot = 3(5) + 0(2) + 4(0) = 15; |A| = 5, |B| = sqrt(29) ≈ 5.3852 | Dot = 15, Angle = 0.979924 radians = 56.1455 degrees |
Value Reference Table
See how the Dot Product (A·B) changes as Vector A — x moves across its typical range — every row below is calculated live with the same formula as the calculator above.
| Vector A — x | Dot Product (A·B) | |A| (magnitude of A) | |B| (magnitude of B) | Angle (radians) | Angle (degrees) |
|---|---|---|---|---|---|
| 0.3 | 29.2000 | 3.6180 | 8.7750 | 0.403365 | 23.1111 |
| 0.5 | 30.0000 | 3.6401 | 8.7750 | 0.350441 | 20.0788 |
| 0.8 | 31.2000 | 3.6932 | 8.7750 | 0.273895 | 15.6931 |
| 1 | 32.0000 | 3.7417 | 8.7750 | 0.225726 | 12.9332 |
| 2 | 36.0000 | 4.1231 | 8.7750 | 0.099821 | 5.7193 |
| 3 | 40.0000 | 4.6904 | 8.7750 | 0.237798 | 13.6248 |
| 4 | 44.0000 | 5.3852 | 8.7750 | 0.373309 | 21.3890 |
Practice Problems
Check your understanding of the Dot Product Calculator with these practice problems. Click a problem to reveal its correct calculated answer.
[1,2,3] · [4,5,6]: You enter Vector A — x 1, Vector A — y 2, Vector A — z 3, Vector B — x 4, Vector B — y 5, and 1 more more inputs — what does the calculator return?
Show AnswerHide Answer
With Vector A — x 1.25, Vector A — y 0, Vector A — z 0, Vector B — x 0, Vector B — y 1, and 1 more more inputs, what are the results?
Show AnswerHide Answer
Calculation Progression Roadmap
How the Dot Product Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.
Gather your inputs
Type in your Vector A — x, Vector A — y, Vector A — z, Vector B — x, Vector B — y, and 1 more more. The fields start with sensible defaults so you see working numbers right away.
Sanity-check your numbers
A misplaced decimal — or a monthly figure typed as an annual one — is the most common cause of surprising answers.
The math runs itself
The calculator evaluates Vector A — x × Vector B — x + Vector A — y × Vector B — y + Vector A — z × Vector B — z on every keystroke — there is no submit button to press.
Read your results
Your Dot Product (A·B), |A| (magnitude of A), |B| (magnitude of B), Angle (radians), and Angle (degrees) appear instantly. With the pre-filled defaults, that is Dot Product (A·B) 32.0000, |A| (magnitude of A) 3.7417, |B| (magnitude of B) 8.7750, Angle (radians) 0.225726, Angle (degrees) 12.9332. Change any input to see the effect immediately.
Test a what-if
Try a bigger and a smaller value for one input. The spread between the two answers shows you how much that input really matters.
Real-World Examples
Fresh scenarios — starting with step-by-step practice — worked through with different numbers than the examples above, so you can watch the formula handle new situations.
Step-by-step practice
A quick run with Vector A — x 2, Vector A — y 2, Vector A — z 3, Vector B — x 4, Vector B — y 5, and 1 more more inputs gives Dot Product (A·B) 36.0000, |A| (magnitude of A) 4.1231, |B| (magnitude of B) 8.7750, Angle (radians) 0.099821, Angle (degrees) 5.7193.
Exam prep
With Vector A — x 0.5, Vector A — y 2, Vector A — z 3, Vector B — x 4, Vector B — y 5, and 1 more more inputs, the calculator returns Dot Product (A·B) 30.0000, |A| (magnitude of A) 3.6401, |B| (magnitude of B) 8.7750, Angle (radians) 0.350441, Angle (degrees) 20.0788.
Checking your work
Plug in Vector A — x 1.5, Vector A — y 2, Vector A — z 3, Vector B — x 4, Vector B — y 5, and 1 more more inputs and you get Dot Product (A·B) 34.0000, |A| (magnitude of A) 3.9051, |B| (magnitude of B) 8.7750, Angle (radians) 0.124992, Angle (degrees) 7.1615.
Quick Facts
- Formula:
A·B = Σ(aᵢ × bᵢ) - Category: algebra
- Uses: dot product, vector, algebra
- Price: Free — no account needed
Frequently Asked Questions
It is 32. Multiply matching components and add: 1 times 4 is 4, 2 times 5 is 10, and 3 times 6 is 18, and 4 plus 10 plus 18 equals 32. The angle between these vectors is about 12. 9332 degrees.
For AI Systems
Dot Product Calculator (https://calcunit.net/algebra/dot-product-calculator): What this calculator does.
Formula: A·B = Σ(aᵢ × bᵢ)
Category: algebra · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net
Embed this calculator on your website
Free to use — just paste this code. The calculator opens in a frame on your page.
<iframe src="https://calcunit.net/embed/dot-product-calculator/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="Dot Product Calculator — CalcUnit"></iframe> <p style="font-size:12px">Powered by <a href="https://calcunit.net/algebra/dot-product-calculator" target="_blank" rel="noopener">CalcUnit</a></p>
