
Cross Product Calculator
Use this free cross product calculator to find the right-handed 3D vector product a × b = (yw - zv, zu - xw, xv - yu) for physics torque and surface normals.
Open toolEnter the Cartesian (x, y, z) coordinates of two vectors into this dot product calculator to compute their exact scalar inner product in your browser. Designed as both a 3D and 2D vector dot product calculator for linear algebra, physics, and 3D graphics workflows, the tool multiplies matching axis components and sums the products to 12 significant digits.
Enter the inputs, then select Calculate result.
Result will appear here
The Dot Product Calculator evaluates the standard Euclidean inner product in client-side JavaScript. If you want to learn how to calculate dot product of two vectors a = (x, y, z) and b = (u, v, w), multiply their corresponding X, Y, and Z components and add the three products together:
a · b = x × u + y × v + z × w = ||a|| × ||b|| × cos(θ)
For the preloaded vectors a = (3, 4, 0) and b = (1, 2, 3), the component products are 3 × 1 = 3, 4 × 2 = 8, and 0 × 3 = 0, which sum to the scalar 11. Geometrically, the scalar dot product also equals ||a|| × ||b|| × cos(θ), where θ is the angle between the two vectors (0° <= θ <= 180°). To calculate the dot product of two 2D vectors (x, y) and (u, v), leave Z component and Second vector Z set to 0.
Review these 10 canonical vector pairs to see how coordinate products (xu + yv + zw) determine the scalar dot product and the geometric angle between two vectors.
| Vector Scenario | First Vector a = (x, y, z) | Second Vector b = (u, v, w) | Pairwise Products (xu + yv + zw) | Dot Product (a · b) | Geometric Angle & Interpretation |
|---|---|---|---|---|---|
| Preloaded Hybrid Pair | (3, 4, 0) | (1, 2, 3) | 3 + 8 + 0 | 11 | Acute alignment (θ ≈ 53.97°) |
| Orthogonal Unit Axes (i · j) | (1, 0, 0) | (0, 1, 0) | 0 + 0 + 0 | 0 | Perpendicular (θ = 90°) |
| Perpendicular 3D Vectors | (2, -3, 1) | (4, 2, -2) | 8 + (-6) + (-2) | 0 | Orthogonal in R³ (θ = 90°) |
| Collinear Parallel Vectors | (2, 4, 6) | (1, 2, 3) | 2 + 8 + 18 | 28 | Same direction (θ = 0°, cos θ = 1) |
| Antiparallel Opposite Vectors | (3, -4, 0) | (-6, 8, 0) | -18 + (-32) + 0 | -50 | Opposite direction (θ = 180°, cos θ = -1) |
| Self Dot Product (a · a = ||a||²) | (3, 4, 12) | (3, 4, 12) | 9 + 16 + 144 | 169 | Squared magnitude (||a|| = sqrt(169) = 13) |
| 2D Obtuse Vector Pair | (4, 1, 0) | (-2, 3, 0) | -8 + 3 + 0 | -5 | Obtuse angle (θ ≈ 109.65°) |
| Cube Space & Face Diagonals | (1, 1, 1) | (1, 1, 0) | 1 + 1 + 0 | 2 | Angle θ = arccos(sqrt(2/3)) ≈ 35.26° |
| Physics Work (F · d) | (12, 5, -2) N | (4, -3, 6) m | 48 + (-15) + (-12) | 21 J | Positive mechanical work (21 joules) |
| 3D Graphics Normal Lighting | (0, 0, 1) | (0.5, 0.5, 0.7071) | 0 + 0 + 0.7071 | 0.7071 | Lambertian diffuse intensity (45° light) |
Follow these three steps to enter your two vectors, compute their scalar dot product, and export the output.
Type the Cartesian coordinates of your first vector (-1,000,000,000 to 1,000,000,000) into X component, Y component, and Z component (3, 4, 0 preloaded).
Type the coordinates of your second vector into Second vector X, Second vector Y, and Second vector Z (set both Z fields to 0 for 2D vectors).
Click Calculate result to evaluate xu + yv + zw immediately, then use Copy result or Download (result.txt) to save the scalar value.
Test these three worked examples in the workspace to verify component summation, perpendicularity tests, and physics work calculations.
With X component = 3, Y component = 4, Z component = 0 and Second vector X = 1, Second vector Y = 2, Second vector Z = 3, clicking Calculate result evaluates 3(1) + 4(2) + 0(3) = 3 + 8 + 0 and returns 11. Because 11 > 0, the two vectors point in a generally similar direction (θ ≈ 53.97°).

To test whether two 3D vectors meet at a 90-degree right angle, enter 2, -3, 1 for the first vector and 4, 2, -2 for the second vector. The calculator computes 2(4) + (-3)(2) + 1(-2) = 8 - 6 - 2 = 0, confirming that the two vectors are strictly perpendicular (cos 90° = 0).

In classical mechanics, the work W done by a constant force vector F acting over a displacement vector d is the dot product W = F · d. Entering 12, 5, -2 (newtons) and 4, -3, 6 (meters) returns 12(4) + 5(-3) + (-2)(6) = 48 - 15 - 12 = 21 joules (J).

Unlike a cross product, the output of this tool is a single scalar real number (formatted up to 12 significant digits). Its sign and magnitude reveal the directional relationship between your two vectors:
A positive scalar (a · b > 0) means the angle between the vectors is acute (0° <= θ < 90°) and they reinforce each other; a zero result (a · b = 0) for nonzero vectors proves they are orthogonal (θ = 90°); and a negative scalar (a · b < 0) indicates an obtuse angle (90° < θ <= 180°) where the vectors oppose each other.
Dividing a · b by ||b|| gives the signed scalar projection of vector a onto vector b.

Keep these mathematical assumptions and companion tools in mind when chaining vector operations:
The formula xu + yv + zw assumes both vectors are expressed in the same right-handed orthonormal Cartesian basis (i, j, k) with compatible physical units. Because vector dot multiplication is commutative (a · b = b · a) and distributive over addition, swapping the first and second vectors produces the exact same scalar result.
Continue your linear algebra workflow using our related cross product, magnitude, projection, angle, and matrix multiplication calculators.


Use this free cross product calculator to find the right-handed 3D vector product a × b = (yw - zv, zu - xw, xv - yu) for physics torque and surface normals.
Open tool
Find the interior angle between two 2D or 3D vectors in degrees with our free vector angle calculator. Includes cosine formula, examples, and lookup table.
Open tool
Calculate the Euclidean length of any 2D or 3D vector with our free vector magnitude calculator. Enter X, Y, and Z components for instant, exact results.
Open toolChoose another tool for your next calculation, conversion, or text task.

Project any 2D or 3D vector onto another with our free vector projection calculator. Computes ((a.b)/(b.b))*b with Kahan precision, steps, and worked examples.
Open tool
Find cosine similarity of two nonzero real vectors.
Open tool
Use this matrix multiplication calculator to multiply two 2x2 matrices in row order using row-by-column dot products, with 10 worked examples and instant copy.
Open tool
Calculate scalar or vector triple products of three 3D vectors.
Open toolAnswers about using Dot Product Calculator and understanding its results.
Multiply the matching X, Y, and Z coordinates of the two vectors and add the three products together: a · b = x * u + y * v + z * w. For instance, given (2, 5, -1) and (4, -2, 3), the calculation is (2 × 4) + (5 × -2) + (-1 × 3) = 8 - 10 - 3 = -5.
Yes! Any 2D vector (x, y) lies in the xy-plane with z = 0. Enter your 2D coordinates into X component, Y component, Second vector X, and Second vector Y, and set both Z component and Second vector Z to 0.
When two nonzero vectors have a dot product of 0, they are orthogonal (perpendicular to each other, forming a 90-degree right angle) because cos(90°) = 0.
The dot product (a · b = ||a|| ||b|| cos θ) measures how much two vectors align and returns a single scalar number. The cross product (a × b) measures perpendicular rotational area and returns a new 3D vector that is orthogonal to both original vectors.
Divide the dot product a · b by the product of the two vector magnitudes ||a|| × ||b||, then take the inverse cosine: θ = arccos((a · b) / (||a|| ||b||)).
Choose another tool for your next calculation, conversion, or text task.