
Dot Product Calculator
Use this dot product calculator and vector dot product calculator to compute the scalar product of two 3D or 2D vectors (x·u + y·v + z·w) in your browser.
Open toolEnter two 3D vectors into this cross product calculator using X component, Y component, and Z component for the first vector and Second vector X, Second vector Y, and Second vector Z for the second vector. Built as a fast browser vector cross product calculator, it evaluates the right-handed product (yw - zv, zu - xw, xv - yu) to 12 significant digits and returns (12, -9, 2) for the preloaded pair (3, 4, 0) and (1, 2, 3).
Enter the inputs, then select Calculate result.
Result will appear here
The Cross Product Calculator computes the 3D Euclidean vector product in client-side JavaScript. If you want to learn how to calculate cross product of two vectors a = (x, y, z) and b = (u, v, w), expand the symbolic 3x3 determinant whose top row holds the unit basis vectors (i, j, k). Each output coordinate is the 2x2 minor left after crossing out that axis's column, with the middle j cofactor written as zu - xw.
a × b = (y·w - z·v, z·u - x·w, x·v - y·u), where |a × b| = |a|·|b|·sin(θ)
Scope: 3D right-handed orthonormal Cartesian vectors (x, y, z) and (u, v, w) with component bounds [-1,000,000,000, 1,000,000,000]. Swapping vector order reverses the output sign: b × a = -(a × b). Parallel or zero vectors return (0, 0, 0). Each coordinate is formatted up to 12 significant digits (clamping |v| < 1e-12 to 0).
Review these 10 reference vector pairs to see how the cofactor formula (yw - zv, zu - xw, xv - yu) behaves across basis axes, collinear pairs, 2D planes, and physics torque vectors.
| Vector a = (x, y, z) | Vector b = (u, v, w) | Cross Product a × b | Magnitude |a × b| | Geometric / Physical Meaning |
|---|---|---|---|---|
| (1, 0, 0) (i) | (0, 1, 0) (j) | (0, 0, 1) (k) | 1 | Right-handed X × Y = +Z unit basis identity |
| (0, 1, 0) (j) | (1, 0, 0) (i) | (0, 0, -1) (-k) | 1 | Reversed order Y × X = -Z (anti-commutativity) |
| (0, 1, 0) (j) | (0, 0, 1) (k) | (1, 0, 0) (i) | 1 | Cyclic permutation Y × Z = +X |
| (0, 0, 1) (k) | (1, 0, 0) (i) | (0, 1, 0) (j) | 1 | Cyclic permutation Z × X = +Y |
| (3, 4, 0) | (1, 2, 3) | (12, -9, 2) | 15.1327 (√229) | Preloaded default 3D oblique vector pair |
| (2, -4, 6) | (-1, 2, -3) | (0, 0, 0) | 0 | Anti-parallel vectors (a = -2b, θ = 180°) |
| (5, 2, 0) | (1, 4, 0) | (0, 0, 18) | 18 | 2D vectors in xy-plane (parallelogram area = 18) |
| (0.4, 0, 0) | (0, 150, -50) | (0, 20, 60) | 63.2456 | Wrench torque τ = r × F in N·m |
| (2, 0, -1) | (0, 3, 4) | (3, -8, 6) | 10.4403 (√109) | Unnormalized 3D triangle mesh surface normal |
| (-3, 5, 2) | (4, 1, -6) | (-32, -10, -23) | 40.6571 (√1653) | Mixed-sign 3D vector pair across octants |
Follow these three steps to enter your 3D or planar 2D coordinates, compute the orthogonal vector, and export the result.
Type your first vector's coordinates (-1,000,000,000 to 1,000,000,000) into X component, Y component, and Z component (3, 4, 0 preloaded).
Type the second vector into Second vector X, Second vector Y, and Second vector Z (set both Z fields to 0 for 2D vectors in the xy-plane).
Click Calculate result to evaluate (yw - zv, zu - xw, xv - yu), then use Copy result or Download (result.txt) to save the ordered triple.
Run these three worked scenarios in the workspace to verify determinant cofactor arithmetic, mechanical lever torque, and 3D mesh surface normals.
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 cx = 4(3) - 0(2) = 12, cy = 0(1) - 3(3) = -9, and cz = 3(2) - 4(1) = 2, returning (12, -9, 2) with magnitude √229 ≈ 15.1327.

A wrench of length 0.4 m along the positive X-axis (r = (0.4, 0, 0)) is pulled by force F = (0, 150, -50) N. Entering 0.4, 0, 0 and 0, 150, -50 outputs torque τ = r × F = (0, 20, 60) N·m, representing 60 N·m of counterclockwise twist around the Z-axis and 20 N·m around the Y-axis.

Given two triangle edge vectors e1 = (2, 0, -1) and e2 = (0, 3, 4), the calculator computes cx = 0(4) - (-1)(3) = 3, cy = (-1)(0) - 2(4) = -8, and cz = 2(3) - 0(0) = 6, returning the outward normal (3, -8, 6). Swapping the two vectors reverses the winding order and outputs (-3, 8, -6).

The returned ordered triple (cx, cy, cz) encodes both the right-handed axis perpendicular to your two inputs and the surface area of the parallelogram they span.
Right-hand rule and parallelogram area: Point the index finger of your right hand along (x, y, z) and curl your middle finger toward (u, v, w) through the smaller angle θ; your thumb points along a × b. Its Euclidean length √(cx² + cy² + cz²) = |a|·|b|·sin(θ) equals the area of the parallelogram spanned by a and b (twice the triangle area).
Zero-dot-product orthogonality check: Because c = a × b is strictly orthogonal to both input vectors, taking its scalar dot product with either a or b in the Dot Product Calculator must return 0 (for (12, -9, 2), 12(3) + (-9)(4) + 2(0) = 0 and 12(1) + (-9)(2) + 2(3) = 0).

Keep these algebraic rules and numerical bounds in mind before chaining your cross product into downstream physics or graphics formulas.
Anti-commutativity and numerical bounds: Because a × b = -(b × a), always enter position r as the first vector and force F as the second vector when computing torque τ = r × F or angular momentum L = r × p. Each input accepts finite numbers between -1,000,000,000 and 1,000,000,000, and the output formats each coordinate to 12 significant digits (clamping residuals below 1e-12 to 0).
Related vector and matrix tools: Need the scalar product xu + yv + zw or interior angle cos(θ)? Open the Dot Product Calculator. To compute the scalar triple product a·(b×c) (parallelepiped volume) in one step, use the Determinant Calculator, or transform your normal vector with a 3x3 rotation matrix in the Matrix Multiplication Calculator.


Use this dot product calculator and vector dot product calculator to compute the scalar product of two 3D or 2D vectors (x·u + y·v + z·w) in your browser.
Open tool
Use this determinant calculator to evaluate any 2x2 matrix in your browser with det(A) = ad - bc. Check invertibility, area scaling, and 10 worked examples.
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 toolChoose another tool for your next calculation, conversion, or text task.

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 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
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 toolAnswers about using Cross Product Calculator and understanding its results.
For a = (x, y, z) and b = (u, v, w), compute three 2x2 determinants: the X coordinate is y*w - z*v, the Y coordinate is z*u - x*w, and the Z coordinate is x*v - y*u. With the default vectors (3, 4, 0) and (1, 2, 3), this gives (4*3 - 0*2, 0*1 - 3*3, 3*2 - 4*1) = (12, -9, 2).
The cross product is anti-commutative (b × a = -(a × b)) because exchanging the second and third rows of a 3x3 determinant negates every 2x2 cofactor. Geometrically, curling the fingers of your right hand from b to a points your thumb in the exact opposite direction (180 degrees away) from curling a to b.
Embed both 2D vectors in the flat xy-plane by setting Z component (z = 0) and Second vector Z (w = 0) to 0. Both the X and Y components cancel to 0, and the calculator outputs (0, 0, x*v - y*u), where x*v - y*u is the standard 2D signed determinant.
An output of (0, 0, 0) means that either at least one input is the zero vector (0, 0, 0) or the two non-zero vectors are collinear (parallel with θ = 0° or anti-parallel with θ = 180°, where sin(θ) = 0). One vector is a scalar multiple of the other (a = k*b), and they span zero parallelogram area.
The cross product a × b scales with sin(θ) and returns a 3D vector (cx, cy, cz) perpendicular to both inputs, making it ideal for rotational torque, magnetic Lorentz force F = q(v × B), and surface normals. The dot product a · b scales with cos(θ) and returns a single scalar number x*u + y*v + z*w that measures parallel alignment and mechanical work.
Choose another tool for your next calculation, conversion, or text task.