Quick Answer
The dot product of (1, 2, 3) and (4, 5, 6) is 32, with an angle of approximately 12.93 degrees between the vectors.
Vector A
Vector B
Common Examples
| Input | Result |
|---|---|
| (1, 2) . (3, 4) | Dot product: 11 |
| (1, 2, 3) . (4, 5, 6) | Dot product: 32, angle: 12.93° |
| (1, 0) . (0, 1) | Dot product: 0 (orthogonal, 90°) |
| (3, 4) . (3, 4) | Dot product: 25, angle: 0° |
How It Works
The formula
The dot product (also called the scalar product) of two vectors is the sum of the products of their corresponding components.
For 2D vectors: \(\mathbf{A} \cdot \mathbf{B} = a_x b_x + a_y b_y\)
For 3D vectors: \(\mathbf{A} \cdot \mathbf{B} = a_x b_x + a_y b_y + a_z b_z\)
The result is a scalar (a single number), not a vector.
Angle between vectors
The dot product relates to the angle between vectors:
\[\mathbf{A} \cdot \mathbf{B} = |\mathbf{A}||\mathbf{B}|\cos\theta\]| Solving for the angle: $$\theta = \arccos\left(\frac{\mathbf{A} \cdot \mathbf{B}}{ | \mathbf{A} | \mathbf{B} | }\right)$$ |
| The magnitude of a vector is: $$ | \mathbf{A} | = \sqrt{a_x^2 + a_y^2 + a_z^2}$$ |
Key properties
- If the dot product is 0 and neither vector is zero, the vectors are orthogonal (perpendicular, 90 degrees apart)
- If the dot product is positive, the angle between the vectors is less than 90 degrees
- If the dot product is negative, the angle is greater than 90 degrees
- The dot product is commutative: A . B = B . A
Worked example
| For A = (1, 2, 3) and B = (4, 5, 6): A . B = (1)(4) + (2)(5) + (3)(6) = 4 + 10 + 18 = 32. | A | = sqrt(1 + 4 + 9) = sqrt(14) = 3.742. | B | = sqrt(16 + 25 + 36) = sqrt(77) = 8.775. Angle = arccos(32 / (3.742 x 8.775)) = arccos(0.9746) = 12.93 degrees. |
Related Calculators
Cross Product Calculator
Calculate the cross product and magnitude of two 3D vectors.
Distance Formula Calculator
Find the Euclidean distance between two points in 2D or 3D coordinate space.
Pythagorean Theorem Calculator
Solve for any side of a right triangle using the Pythagorean theorem, plus calculate area and perimeter.
CalculateY