Math Solver Free

Cross Product Calculator

a × b for 2D and 3D vectors — determinant steps, magnitude, angle and area.

Vector a
Vector b
a × b
(-3, 6, -3)

Step by step (determinant expansion)

i component: (2)(6) - (3)(5) = 12 - 15 = -3

j component: (3)(4) - (1)(6) = 12 - 6 = 6

k component: (1)(5) - (2)(4) = 5 - 8 = -3

Magnitude |a × b| — the area of the parallelogram spanned by a and b: 7.3484692

Angle between a and b: 12.9332°

Unit vector in the direction of a × b: (-0.408248, 0.816497, -0.408248)

Perpendicular check: the result is perpendicular to both inputs: (a × b) · a = 0, (a × b) · b = 0

What Is the Cross Product?

The cross product of two vectors a and b, written a × b, is a third vector that is perpendicular to both of them, with length equal to the area of the parallelogram they span. This cross product calculator computes a × b for 3D vectors — and the single-number 2D form — showing the determinant expansion component by component, then adds the facts you usually need next: the magnitude (that parallelogram area), the angle between the vectors, the unit vector in the result's direction, and a built-in perpendicularity check that dots the answer with both inputs to prove it comes out at zero.

How Do You Compute a Cross Product, Step by Step?

  1. Write the determinant layout: a row of unit vectors i, j, k over the components of a, then the components of b.
  2. i component: cover the i column and take the 2×2 determinant of what remains: a2·b3 − a3·b2.
  3. j component: same idea — a3·b1 − a1·b3 — remembering the cofactor sign flip is already baked into this ordering.
  4. k component: a1·b2 − a2·b1.
  5. Check: dot the result with a and with b; both must be 0. The calculator prints this check under every answer.

Worked Example 1: (1, 2, 3) × (4, 5, 6)

With a = (1, 2, 3) and b = (4, 5, 6): the i component is (2)(6) − (3)(5) = 12 − 15 = −3; the j component is (3)(4) − (1)(6) = 12 − 6 = 6; the k component is (1)(5) − (2)(4) = 5 − 8 = −3. So a × b = (−3, 6, −3), the calculator's default example. Its magnitude is sqrt(9 + 36 + 9) = sqrt(54) ≈ 7.35 — the area of the parallelogram with sides a and b. The check confirms the geometry: (−3, 6, −3) · (1, 2, 3) = 0 and (−3, 6, −3) · (4, 5, 6) = 0, so the result is perpendicular to both inputs, as it must be.

Worked Example 2: A 2D Cross Product

Take a = (2, 1) and b = (1, 3) in the plane. Treating them as 3D vectors with z = 0, only the k component survives: (2)(3) − (1)(1) = 6 − 1 = 5. The parallelogram they span has area 5, and the positive sign says b sits counterclockwise from a. Flip the order — b × a — and you get −5: the cross product is anti-commutative, a × b = −(b × a), so the order you enter the vectors matters for the sign (and, in 3D, for the direction).

Cross Product vs Dot Product

The two vector products answer different questions. The dot product returns a scalar measuring alignment — maximal when the vectors point together, zero when perpendicular. The cross product returns a vector measuring the plane the two vectors define — zero when they are parallel, longest when perpendicular. Together with the determinant calculator (the cross product is a determinant with a symbolic first row) and the matrix calculator, they cover the core computations of a linear algebra course.

Where Cross Products Are Used

The cross product is the working tool behind a surprising amount of physics and computing. Torque is r × F: the turning effect of a force grows with the lever arm, the force, and the sine of the angle between them — exactly |a||b|sin(theta). The magnetic force on a moving charge is q(v × B), which is why charged particles spiral in magnetic fields instead of travelling straight. Angular momentum is r × p. In computer graphics, the normal vector of a triangle with edges u and v is u × v, and the sign of its direction decides which side of the surface faces the camera — the calculation this page performs is, quite literally, how 3D engines decide what is visible. A useful special case to remember: the area of the triangle with sides a and b is half the parallelogram area, (1/2)|a × b|, a formula that solves many coordinate-geometry problems in one line.

Three Mistakes to Watch For

First, the j component sign: the cofactor expansion subtracts the middle determinant, and forgetting it is the most common cross product error — the component formula on this page already includes the flip, which is why the printed steps read a3·b1 − a1·b3. Second, swapping the order: b × a is the exact negative of a × b. Third, expecting a number: in 3D the answer is a vector, and if your result is not perpendicular to both inputs, the arithmetic — not the geometry — is wrong. Use the built-in check.

Frequently Asked Questions

What is the cross product of (1, 2, 3) and (4, 5, 6)?

The cross product is (-3, 6, -3). Component by component: i: (2)(6) - (3)(5) = 12 - 15 = -3; j: (3)(4) - (1)(6) = 12 - 6 = 6; k: (1)(5) - (2)(4) = 5 - 8 = -3. You can verify it is correct because the result is perpendicular to both inputs: (-3, 6, -3) · (1, 2, 3) = -3 + 12 - 9 = 0 and (-3, 6, -3) · (4, 5, 6) = -12 + 30 - 18 = 0. This is the calculator's default example.

What is the cross product formula?

For a = (a1, a2, a3) and b = (b1, b2, b3), the cross product is a × b = (a2*b3 - a3*b2, a3*b1 - a1*b3, a1*b2 - a2*b1). Each component is a 2x2 determinant: delete the row and column of that component from the pair and take the difference of the diagonal products. The j component carries a built-in sign flip, which the expanded form above already accounts for — writing the three determinants in a row, the middle one is subtracted.

What is the difference between the cross product and the dot product?

The dot product a · b is a number (a scalar): it multiplies matching components and adds them, and it measures alignment — zero when the vectors are perpendicular. The cross product a × b is a vector: it is perpendicular to both inputs, its length is |a||b|sin(theta), and it measures the area spanned by the two vectors. One answers 'how much do they point the same way?', the other builds the vector that points in neither's plane. Our dot product calculator covers the scalar side.

What does the cross product measure geometrically?

Two things at once. Its direction is perpendicular to the plane containing a and b, chosen by the right-hand rule: point your fingers along a, curl toward b, and your thumb gives the direction of a × b. Its magnitude is |a||b|sin(theta), which equals the area of the parallelogram with sides a and b. That is why cross products appear everywhere in physics and graphics: torque, angular momentum, magnetic force and surface normals are all cross products.

What is the cross product of two 2D vectors?

For 2D vectors a = (a1, a2) and b = (b1, b2), embed them in 3D with z = 0. The cross product collapses to a single number, the z-component: a1*b2 - a2*b1. Its absolute value is the area of the parallelogram the two vectors span, and its sign tells the orientation: positive means b is counterclockwise from a, negative means clockwise. This scalar is also the 2x2 determinant of the matrix with rows a and b.

When is the cross product zero?

The cross product is the zero vector exactly when the two vectors are parallel (or one of them is the zero vector), because |a||b|sin(theta) = 0 when the angle between them is 0 or 180 degrees. That makes a × b = 0 a clean test for parallelism — and it is why the calculator calls it out explicitly when your result comes out as (0, 0, 0).

Related Tools & Guides

About the MathSolverFree Team

The MathSolverFree Team builds and maintains the calculators and step-by-step solvers on this site. Every tool is checked against worked textbook examples before it is published, and the method behind each solver is written out in full — in the worked examples on the page and in our guides — so you can see exactly how an answer is reached, not just the answer itself.

How we build and test our tools·More about the team