How to Calculate Dot Product
Calculate the dot product of two vectors.
The Formula
A·B = Σ(aᵢ × bᵢ)The dot product formula uses the mathematical relationship: A·B = Σ(aᵢ × bᵢ). Each variable in the formula represents a measurable quantity that affects the final result.
What Each Variable Means
Every value in the dot product formula, what it measures, and the value used in the worked example on this page:
| Variable | Type | Example value |
|---|---|---|
| Vector A — x | Input (you provide) | 1 |
| Vector A — y | Input (you provide) | 2 |
| Vector A — z | Input (you provide) | 3 |
| Vector B — x | Input (you provide) | 4 |
| Vector B — y | Input (you provide) | 5 |
| Vector B — z | Input (you provide) | 6 |
| Dot Product (A·B) | Result (calculated) | — |
| |A| (magnitude of A) | Result (calculated) | — |
| |B| (magnitude of B) | Result (calculated) | — |
| Angle (radians) | Result (calculated) | — |
| Angle (degrees) | Result (calculated) | — |
Step-by-Step Method
- 1Write down the values you know: Vector A — x, Vector A — y, Vector A — z, Vector B — x, Vector B — y, Vector B — z.
- 2Substitute your known values into the formula: A·B = Σ(aᵢ × bᵢ).
- 3Work through the arithmetic in the standard order of operations — parentheses first, then exponents, then multiplication and division, then addition and subtraction.
- 4Check that your result carries the correct unit and falls in a reasonable range for the problem.
- 5Verify your answer with the interactive Dot Product Calculator — it solves the same formula instantly.
Worked Example
Take a concrete case: vector a — x = 0.5, with the other inputs at the typical values from the variables table above. Substituting into the formula gives 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. These numbers are solved by the same engine that powers the Dot Product calculator, so you can reproduce them exactly by entering the same inputs there.
| 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 |
How each result changes as vector a — x changes, holding the other inputs constant.
Practice Problems
1. [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?
Answer: Entering 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 gives 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.
2. 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?
Answer: The calculator returns Dot Product (A·B) 0.0000, |A| (magnitude of A) 1.2500, |B| (magnitude of B) 1.0000, Angle (radians) 1.570796, Angle (degrees) 90.0000 for 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.
Frequently Asked Questions
What is the formula for dot product?
The formula is: A·B = Σ(aᵢ × bᵢ). Calculate the dot product of two vectors.
What values do I need to calculate dot product?
You need vector a — x, vector a — y, vector a — z, vector b — x, vector b — y, vector b — z. The calculator produces dot product (a·b), |a| (magnitude of a), |b| (magnitude of b), angle (radians), angle (degrees) from those inputs.
What is the dot product when vector a — x is 0.5?
With vector a — x = 0.5, the result is 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. This is worked through in full in the example on this page.
Related Topics
Use the Interactive Calculator
Skip the manual math — get instant results with our free Dot Product calculator.
