Cross Product z-Component of Two 2D Vectors

(a⃗×b⃗)z=axby−aybx(\vec{a}\times\vec{b})_z = a_x b_y - a_y b_x

Worked example: (3, 4) × (1, 2) → +2 — press Try an example to run it live, then adjust anything.

Enter your known values, leave one input blank, and solves for the missing one. Tap a variable’s symbol to see what it means, with a typical value. Try different units for next level excitement!

Learning zone

Cross Product z-Component of Two 2D Vectors explained

(ax, ay)(bx, by)(a×b)z

Two vectors lying flat in the xy-plane have a cross product that points straight out of it, so only the z-component survives: axby − aybx. It is the same expression as a 2×2 determinant, and it carries a sign that the magnitude form throws away. Positive means b lies counterclockwise from a; negative means clockwise; zero means the two are parallel. That sign is the workhorse of computational geometry — convex hull algorithms, point-in-triangle tests, polygon winding checks and line-segment intersection all reduce to asking which way three points turn.

Example: a = (3, 4), b = (1, 2) gives 3·2 − 4·1 = 2, a small positive number, so b sits slightly counterclockwise from a. Set the expression to zero and you get the parallelism test: with a = (2, 3) and by = 6, the vectors are parallel only when bx = 4, since (2, 3) and (4, 6) are the same direction scaled. The usual mistake is dropping the minus sign or swapping the order — a × b = −(b × a), so reversing the arguments flips the answer's sign and the geometric conclusion with it.

Cross Product z-Component of Two 2D Vectors formula

(a⃗×b⃗)z=axby−aybx(\vec{a}\times\vec{b})_z = a_x b_y - a_y b_x
Where
  • (a⃗×b⃗)z(\vec{a}\times\vec{b})_z= Cross product z-component
  • axa_x= x-component of a
  • aya_y= y-component of a
  • bxb_x= x-component of b
  • byb_y= y-component of b

Missing one of these? Work it out first, then come back