Bookmarks    
nPr and nCr    
Random Number    
SD Calculator    
Sample Size    
Percent Error    
Density    
Molarity    
Molar Mass    
Ohm's Law    
Watts to Amps    
Voltage Drop    
Long Division    
Mixed Numbers    
Rounding    
Nth Root    
Exponents    
Half-Life    
Polar Form    
De Moivre    
3D Distance    
Point to Line    
Cross Product    
Determinant    
Sin Cos Tan    
Triangle Area    
Scale Factor    
Sector Area    
Ellipse Area    
Cube Volume    
Box Volume    
Sphere Volume    
Cone Volume    
Pipe Volume    
Time Duration    
Time Card    
Present Value    
Future Value    
Churn Rate    
A/B Test Calc    
SEO Traffic    
Ideal Weight    
Fat Intake    
Child Height    
Golf Handicap    
Heat Index    
Wind Chill    
Dew Point    
Download Time    
kWh to Cost    
AC Size (BTU)    
Heating Costs    
LED Savings    
Trip Gas Cost    
Tire Size    
Solar Output    
Solar Payback    
Battery Size    
Wall Area    
Gravel Needed    
Mortar Mix    
Slope Grade    
Curtain Size    
Soil Needed    
Sod Needed    
Ramp Length    
Blind Size    
Drain Slope    
Board Feet    
Heat Loss    
Furniture Fit    
Moving Boxes    
Plywood Cuts    
Shelf Sag    
   Add
Probability and random number calculators
Independent Events
Independent Events
Two Events Solver
Two Events Solver
Repeated Trials
Repeated Trials
Bayes' Theorem
Bayes' Theorem
Expected Value
Expected Value
Binomial Distribution
Binomial Distribution
nPr and nCr
nPr and nCr
Circular Permutation
Circular Permutation
With Repetition
With Repetition
Random Number
Random Number
Averages and statistics calculators
Average Calculator
Average Calculator
Mean Median Mode
Mean Median Mode
SD Calculator
SD Calculator
Quartiles & IQR
Quartiles & IQR
Frequency Table
Frequency Table
Correlation (r)
Correlation (r)
Normal Probability
Normal Probability
Z-Score Calculator
Z-Score Calculator
Confidence Interval
Confidence Interval
Sample Size
Sample Size
Mark & Recapture
Mark & Recapture
P-Value Calculator
P-Value Calculator
Percentage and ratio calculators
Percentage Calc
Percentage Calc
Percent Change
Percent Change
Percent Difference
Percent Difference
Percent Error
Percent Error
Ratio Calculator
Ratio Calculator
Discount Calculator
Discount Calculator
Sales Tax Calculator
Sales Tax Calculator
Margin Calculator
Margin Calculator
Speed calculators
Speed Calculator
Speed Calculator
Density and concentration calculators
Density
Density
Molarity
Molarity
Molar Mass
Molar Mass
Physics and electricity calculators
Ohm's Law
Ohm's Law
Watts to Amps
Watts to Amps
Resistor Colors
Resistor Colors
Voltage Drop
Voltage Drop
Unit conversion calculators
Weight Converter
Weight Converter
Shoe Size Converter
Shoe Size Converter
Integer and signed number calculators
Long Division
Long Division
LCM Calculator
LCM Calculator
GCF Calculator
GCF Calculator
Integer Calculator
Integer Calculator
Prime Factorization
Prime Factorization
Diophantine Solver
Diophantine Solver
Modulo Calculator
Modulo Calculator
Factor Calculator
Factor Calculator
Roman Numerals
Roman Numerals
Fraction, decimal and rounding calculators
Fraction Calculator
Fraction Calculator
Mixed Numbers
Mixed Numbers
Simplify Fractions
Simplify Fractions
Fraction to Decimal
Fraction to Decimal
Decimal to Fraction
Decimal to Fraction
Rounding
Rounding
Equation and inequality calculators
Linear Equation
Linear Equation
Linear Systems
Linear Systems
Quadratic Formula
Quadratic Formula
Absolute Value
Absolute Value
Quadratic Inequality
Quadratic Inequality
Polynomial calculators
Binomial Theorem
Binomial Theorem
Square root and nth root calculators
Simplify Radicals
Simplify Radicals
Nth Root
Nth Root
Exponent and logarithm calculators
Exponents
Exponents
Log Calculator
Log Calculator
Number of Digits
Number of Digits
Scientific Notation
Scientific Notation
Sci. Notation Math
Sci. Notation Math
Half-Life
Half-Life
Complex number calculators
Complex Numbers
Complex Numbers
Polar Form
Polar Form
De Moivre
De Moivre
Function and graph calculators
Slope Calculator
Slope Calculator
Linear Function
Linear Function
Direct & Inverse Variation
Direct & Inverse Variation
y = ax² Calculator
y = ax² Calculator
Distance Formula
Distance Formula
3D Distance
3D Distance
Section Formula
Section Formula
Point to Line
Point to Line
Lat/Long Distance
Lat/Long Distance
Complete the Square
Complete the Square
Circle Equation
Circle Equation
Conic Sections
Conic Sections
Polar Coordinates
Polar Coordinates
Sequence calculators
Arithmetic Sequence
Arithmetic Sequence
Geometric Sequence
Geometric Sequence
Fibonacci Sequence
Fibonacci Sequence
Recurrence Relation
Recurrence Relation
Vector calculators
Vector Calculator
Vector Calculator
Cross Product
Cross Product
Matrix calculators
Matrix Calculator
Matrix Calculator
Determinant
Determinant
Inverse Matrix
Inverse Matrix
Plane geometry calculators
Sin Cos Tan
Sin Cos Tan
Degrees ⇔ Radians
Degrees ⇔ Radians
a sin θ + b cos θ
a sin θ + b cos θ
Triangle Solver
Triangle Solver
Triangle Area
Triangle Area
Right Triangle
Right Triangle
Pythagorean Theorem
Pythagorean Theorem
Polygon Angles
Polygon Angles
Scale Factor
Scale Factor
Parallel Lines
Parallel Lines
Rectangle Area
Rectangle Area
Parallelogram Area
Parallelogram Area
Trapezoid Area
Trapezoid Area
Circle Calculator
Circle Calculator
Sector Area
Sector Area
Inscribed Angle
Inscribed Angle
Ellipse Area
Ellipse Area
Solid geometry calculators
Cube Volume
Cube Volume
Cube Surface Area
Cube Surface Area
Box Volume
Box Volume
Box Surface Area
Box Surface Area
Cylinder Volume
Cylinder Volume
Cylinder Surface
Cylinder Surface
Sphere Volume
Sphere Volume
Sphere Surface
Sphere Surface
Spherical Cap Volume
Spherical Cap Volume
Cap Surface Area
Cap Surface Area
Ellipsoid Volume
Ellipsoid Volume
Ellipsoid Surface
Ellipsoid Surface
Pyramid Volume
Pyramid Volume
Pyramid Surface
Pyramid Surface
Cone Volume
Cone Volume
Cone Surface Area
Cone Surface Area
Frustum Volume
Frustum Volume
Frustum Surface Area
Frustum Surface Area
Pipe Volume
Pipe Volume
Capsule Volume
Capsule Volume
Capsule Surface Area
Capsule Surface Area
Date and time calculators
Age Calculator
Age Calculator
Days Between Dates
Days Between Dates
Date Calculator
Date Calculator
Hours From Now
Hours From Now
Day of the Week
Day of the Week
Time Calculator
Time Calculator
Time Zone Converter
Time Zone Converter
Hours Calculator
Hours Calculator
Time Duration
Time Duration
Time Card
Time Card
Finance and economics calculators
Compound Interest
Compound Interest
Simple Interest
Simple Interest
Interest Calculator
Interest Calculator
TVM Calculator
TVM Calculator
Present Value
Present Value
Future Value
Future Value
ROI Calculator
ROI Calculator
IRR Calculator
IRR Calculator
Payback Period
Payback Period
Average Return
Average Return
GDP Calculator
GDP Calculator
Web marketing and ad metric calculators
CTR Calculator
CTR Calculator
Conversion Rate
Conversion Rate
CPC, CPM & CPA
CPC, CPM & CPA
ROAS Calculator
ROAS Calculator
Break-Even CPA
Break-Even CPA
LTV Calculator
LTV Calculator
CAC Calculator
CAC Calculator
Churn Rate
Churn Rate
A/B Test Calc
A/B Test Calc
A/B Sample Size
A/B Sample Size
SEO Traffic
SEO Traffic
Break-Even Point
Break-Even Point
Markup vs. Margin
Markup vs. Margin
CAGR Calculator
CAGR Calculator
Health and fitness calculators
BMI Calculator
BMI Calculator
Sleep Calculator
Sleep Calculator
Calorie Calculator
Calorie Calculator
BMR Calculator
BMR Calculator
TDEE Calculator
TDEE Calculator
Ideal Weight
Ideal Weight
Body Fat Calculator
Body Fat Calculator
Lean Body Mass
Lean Body Mass
Calories Burned
Calories Burned
Protein Intake
Protein Intake
Macro Calculator
Macro Calculator
Carb Calculator
Carb Calculator
Fat Intake
Fat Intake
Child Height
Child Height
Sports calculators
Golf Handicap
Golf Handicap
Pace Calculator
Pace Calculator
1RM Calculator
1RM Calculator
Target Heart Rate
Target Heart Rate
Weather calculators
Heat Index
Heat Index
Wind Chill
Wind Chill
Dew Point
Dew Point
Computer calculators
Base Converter
Base Converter
Subnet Calculator
Subnet Calculator
Download Time
Download Time
Household energy and budget calculators
Electricity Cost
Electricity Cost
kWh to Cost
kWh to Cost
Yearly kWh to Cost
Yearly kWh to Cost
AC Size (BTU)
AC Size (BTU)
AC Running Cost
AC Running Cost
Heating Costs
Heating Costs
Gas vs Electric
Gas vs Electric
LED Savings
LED Savings
Salary Calculator
Salary Calculator
Budget Calculator
Budget Calculator
Car calculators
Trip Gas Cost
Trip Gas Cost
EV Charging Cost
EV Charging Cost
EV vs Gas Cost
EV vs Gas Cost
MPG Calculator
MPG Calculator
Tire Size
Tire Size
Solar power and battery calculators
Solar Output
Solar Output
Solar Panel Count
Solar Panel Count
Solar Payback
Solar Payback
Battery Size
Battery Size
Home and DIY calculators
Tile Calculator
Tile Calculator
Stair Calculator
Stair Calculator
Concrete Volume
Concrete Volume
Wall Area
Wall Area
Wallpaper Rolls
Wallpaper Rolls
Paint Calculator
Paint Calculator
Flooring Needed
Flooring Needed
Exterior Walls
Exterior Walls
Gravel Needed
Gravel Needed
Mortar Mix
Mortar Mix
Slope Grade
Slope Grade
Lumber Cut List
Lumber Cut List
Lot Coverage/FAR
Lot Coverage/FAR
Sheet Vinyl Roll
Sheet Vinyl Roll
Insulation Needed
Insulation Needed
Curtain Size
Curtain Size
TV Size & Distance
TV Size & Distance
Soil Needed
Soil Needed
Sod Needed
Sod Needed
Block Calculator
Block Calculator
Brick Calculator
Brick Calculator
Deck Materials
Deck Materials
Ramp Length
Ramp Length
Pilot Hole Size
Pilot Hole Size
Room Ventilation
Room Ventilation
Paint Thinning
Paint Thinning
Baseboard & Trim
Baseboard & Trim
Blind Size
Blind Size
Picture Hanging
Picture Hanging
Drain Slope
Drain Slope
Screw Calculator
Screw Calculator
Board Feet
Board Feet
Fence Calculator
Fence Calculator
Wood Shrinkage
Wood Shrinkage
Caulk Calculator
Caulk Calculator
Heat Loss
Heat Loss
Furniture Fit
Furniture Fit
Moving Boxes
Moving Boxes
Storage Capacity
Storage Capacity
Plywood Cuts
Plywood Cuts
Shelf Sag
Shelf Sag

Cross Product Calculator (Components, Parallelogram Area, Normal Vector)

Enter the components of the two vectors a and b. The formula below is linked to the input fields, so you can also calculate by editing the stacked numbers in it directly. For 2D vectors, leave the z-component fields blank (0).

Enter numbers only. Decimals, negative numbers and fractions such as 3/4 are accepted. Blank components are treated as 0.
Result and figure
Enter the components of the two vectors in the fields on the left and press "Calculate". The result and a 3D figure will appear here.

What you can do on this page

  • Enter the components of two 3D vectors \(\vec{a}\) and \(\vec{b}\), and get the components of the cross product \(\vec{a}\times\vec{b}\), with each step of the criss-cross multiplication shown
  • The magnitude \(|\vec{a}\times\vec{b}|\) (the area of the parallelogram formed by the two vectors) is shown both as an exact value with a square root, such as \(3\sqrt{6}\), and as a decimal. The area of the triangle (half of it) is calculated at the same time
  • You also get the unit normal vector \(\vec{n}\), which is perpendicular to both \(\vec{a}\) and \(\vec{b}\), the angle \(\theta\) between the two vectors, and a check that the dot products are 0 (proof of perpendicularity)
  • The result is also drawn as a 3D figure you can rotate with the mouse, so you can see how the cross product stands perpendicular to the parallelogram (right-hand rule)
  • Components can be decimals, negative numbers or fractions such as 3/4. Leave the z-components blank (0) to use it for 2D vectors too
  • A plain-language explanation of the formulas and copy-and-paste formulas for Excel, Google Sheets and Python are all on this page
The cross product is defined only for vectors in 3D space. For 2D vectors, treat the z-component as 0; the cross product then has only a z-component. In the US, the cross product is usually taught in multivariable calculus (Calculus III), linear algebra and physics, and some precalculus courses introduce it too. In engineering, physics and 3D graphics, it is one of the first basic tools you learn.

What is this calculation used for?

Shading in 3D graphics and games (finding which way a surface faces)

In the 3D images of games and movies, the surface of an object is split into many small triangles. The normal vector that shows which way each triangle faces is calculated as the cross product of two of its side vectors. How the light direction relates to this normal vector decides whether the surface looks bright or dark.
Curved surfaces look smoothly lit because the shading is calculated from these normal vectors, face by face.

Tightening a bolt with a wrench (torque)

The turning effect of a force is called torque (or moment of force). It is the cross product of the vector from the center of rotation to the point where you push and the vector of the force. Its magnitude, \(|\vec{r}||\vec{F}|\sin\theta\), matches everyday experience: "a longer wrench turns more easily" and "pushing at a right angle to the handle works best".
Mechanics use a torque wrench to tighten car bolts to a set value because this quantity is what they need to control.

How an electric motor turns (force from a magnetic field)

An electric current in a magnetic field feels a force perpendicular to both the current and the field. The direction and size of this force are given by the cross product of the vector for the current and the vector for the magnetic field (for a single charge such as an electron, it is the cross product of its velocity and the field, \(\vec{F} = q\vec{v}\times\vec{B}\)). This perpendicular force is what turns a motor and moves the cone of a speaker.
The right-hand rule taught in high school physics is a way to find the direction of this cross product with your hand.

Surveying and land area (area from coordinates)

The area of a piece of land is calculated from the measured coordinates of its boundary points. Go around the polygon's vertices in order, compute \(x_1y_2 - x_2y_1\) for each pair of neighboring points, add them all up, and take half the absolute value of the total. You get the area without measuring each side. The key is to add the terms with their signs, without taking absolute values one by one. The extra parts then cancel out automatically, and even a dented (concave) lot gives the correct area. This uses the \(z\)-component of the cross product (the signed area) and is known as the shoelace formula, or the surveyor's area formula.
The same idea is used to compute the areas of lots in property surveys and in mapping (GIS) software.

Orienting drones and robots (finding the axis of rotation)

To turn a drone or robot from "the direction it faces now" to "the direction it should face", you have to decide which axis to rotate around and by how many degrees. The cross product of the two direction vectors gives a vector perpendicular to both, which is the axis of rotation itself. The angle is found by combining the magnitude of the cross product (the \(\sin\theta\) part) and the dot product (the \(\cos\theta\) part).
The same idea is used for drone flight control and for turning a character's head or arm toward a target in 3D animation.

Formulas and figures

Components of the cross product (criss-cross multiplication)
Figure
Standard notation (the usual math form)
\(\vec{a} \times \vec{b}\) \(=\) \((\) \(a_2 b_3 - a_3 b_2\) \(,\) \(a_3 b_1 - a_1 b_3\) \(,\) \(a_1 b_2 - a_2 b_1\) \()\)
In words (symbols replaced with words)
④ \(\vec{a}\times\vec{b}\): cross product \(=\) \((\) ① \(x\)-component (criss-cross of \(y\) and \(z\)) \(,\) ② \(y\)-component (criss-cross of \(z\) and \(x\)) \(,\) ③ \(z\)-component (criss-cross of \(x\) and \(y\)) \()\)
The formula in words
① With \(\vec{a} = (a_1,\ a_2,\ a_3)\) and \(\vec{b} = (b_1,\ b_2,\ b_3)\), first make the \(x\)-component, the criss-cross difference of \(y\) and \(z\): \(a_2b_3 - a_3b_2\) ,
② then the \(y\)-component, the criss-cross difference of \(z\) and \(x\): \(a_3b_1 - a_1b_3\) ,
③ and the \(z\)-component, the criss-cross difference of \(x\) and \(y\): \(a_1b_2 - a_2b_1\) .
④ The vector with these three numbers as its components is the \(\vec{a}\times\vec{b}\): cross product
Quick example
The cross product of \(\vec{a} = (1,\ 2,\ 3)\) and \(\vec{b} = (4,\ 5,\ 6)\) is
\(\vec{a}\times\vec{b}\): cross product \(=\) \((\) \(x\)-component (\(2 \times 6 - 3 \times 5\)) \(,\) \(y\)-component (\(3 \times 4 - 1 \times 6\)) \(,\) \(z\)-component (\(1 \times 5 - 2 \times 4\)) \()\)
\(\vec{a} \times \vec{b} = (2 \times 6 - 3 \times 5,\ \ 3 \times 4 - 1 \times 6,\ \ 1 \times 5 - 2 \times 4)\)
\(= (12 - 15,\ \ 12 - 6,\ \ 5 - 8) = (-3,\ 6,\ -3)\)
Key idea
You do not need to memorize the three components one by one; criss-cross multiplication builds them. Picture the order \(x \to y \to z \to x \to y \to z\), going around in a loop (this is called cyclic order). Cover the letter of the component you want and read the next two letters: for the \(x\)-component that is \(y,\ z\), for the \(y\)-component \(z,\ x\), and for the \(z\)-component \(x,\ y\). Write just those two columns of \(\vec{a}\) and \(\vec{b}\) in two rows, then take the product going down to the right minus the product going up to the right. The figure above shows these steps. Only the \(y\)-component, \(a_3b_1 - a_1b_3\), looks reversed compared with the others. That is because the letters are read in the order \(z,\ x\), not \(x,\ z\). If you mix up this order, only the \(y\)-component comes out with the wrong sign. Many US textbooks write the same calculation as a 3×3 determinant with the unit vectors \(\mathbf{i},\ \mathbf{j},\ \mathbf{k}\) in the top row and the components of \(\vec{a}\) and \(\vec{b}\) in the two rows below. Expanding it along the top row gives exactly these three components (the minus sign in front of \(\mathbf{j}\) is why the \(y\)-component looks reversed). Also note that \(\vec{b} \times \vec{a}\) has the opposite sign of \(\vec{a} \times \vec{b}\) (\(\vec{b} \times \vec{a} = -\left( \vec{a} \times \vec{b} \right)\)). Swapping the order changes the answer, so unlike the dot product, order matters.
Magnitude of the cross product (\(|\vec{a}||\vec{b}|\sin\theta\))
Figure
Standard notation (the usual math form)
\(\left| \vec{a} \times \vec{b} \right|\) \(=\) \(\left| \vec{a} \right|\) \(\left| \vec{b} \right|\) \(\sin\theta\)
In words (symbols replaced with words)
④ \(|\vec{a}\times\vec{b}|\): magnitude of the cross product \(=\) ① \(|\vec{a}|\): magnitude of \(\vec{a}\) ② \(|\vec{b}|\): magnitude of \(\vec{b}\) ③ \(\sin\theta\): sine of the angle \(\theta\) between them
The formula in words
① Multiply the \(|\vec{a}|\): magnitude of \(\vec{a}\)
② by the \(|\vec{b}|\): magnitude of \(\vec{b}\) ,
③ then by the \(\sin\theta\): sine of the angle \(\theta\) between the two vectors ,
④ and you get the \(|\vec{a}\times\vec{b}|\): magnitude of the cross product
Quick example
When a vector of magnitude 4 and a vector of magnitude 3 form an angle of 30°, the magnitude of the cross product is
magnitude of the cross product \(=\) magnitude of \(\vec{a}\) (4) magnitude of \(\vec{b}\) (3) \(\sin 30^\circ\)
\(\left| \vec{a} \times \vec{b} \right| = 4 \times 3 \times \sin 30^\circ = 4 \times 3 \times \dfrac{1}{2} = 6\)
Key idea
The area of a parallelogram is "base × height". If the base is \(|\vec{a}|\), the height is \(|\vec{b}|\sin\theta\) (the dotted line in the figure above). So \(|\vec{a}||\vec{b}|\sin\theta\) is exactly the area of the parallelogram. The angle \(\theta\) is taken between 0° and 180°. In this range \(\sin\theta\) is never negative, so \(|\vec{a}||\vec{b}|\sin\theta\) is never negative either and works directly as a length or an area. (\(\cos\theta\) becomes negative past 90°, which is why the dot product can be negative.) The dot product is \(|\vec{a}||\vec{b}|\cos\theta\), while the magnitude of the cross product uses \(\sin\theta\). When the two vectors point the same way (\(\theta = 0^\circ\)) or opposite ways (\(\theta = 180^\circ\)), \(\sin\theta = 0\) and the cross product is the zero vector. At a right angle (\(\theta = 90^\circ\)), \(\sin\theta = 1\), the largest value. "Zero when parallel, largest when perpendicular" is exactly the opposite of the dot product. This formula is handy when you know the angle. When you know the components, it is faster to find the components with criss-cross multiplication (Formula 1) and then take the magnitude, and no rounding error from the angle gets in. This calculator also works exactly from the components.
Area of the parallelogram and the triangle
Figure
Standard notation (the usual math form)
\(S\) \(=\) \(\left| \vec{a} \times \vec{b} \right|\)
\(S_{\triangle}\) \(=\) \(\dfrac{1}{2} \left| \vec{a} \times \vec{b} \right|\)
In words (symbols replaced with words)
② \(S\): parallelogram area \(=\) ① \(|\vec{a}\times\vec{b}|\): magnitude of the cross product
④ \(S_{\triangle}\): triangle area \(=\) ③ half the magnitude of the cross product
The formula in words
① Think of the parallelogram with the two vectors as two of its sides. The \(|\vec{a}\times\vec{b}|\): magnitude of the cross product is exactly the
② \(S\): parallelogram area ,
③ and half the magnitude of the cross product is the
④ \(S_{\triangle}\): area of the triangle with the two vectors as two of its sides
Quick example
The areas of the parallelogram and triangle formed by \(\vec{a} = (1,\ 2,\ 3)\) and \(\vec{b} = (4,\ 5,\ 6)\) are (the cross product is \((-3,\ 6,\ -3)\) from Formula 1)
parallelogram area \(=\) magnitude of the cross product \((-3,\ 6,\ -3)\)
\(S = \sqrt{(-3)^{2} + 6^{2} + (-3)^{2}} = \sqrt{54} = 3\sqrt{6} \approx 7.34846922835\)
\(S_{\triangle} = \dfrac{1}{2} \times 3\sqrt{6} = \dfrac{3\sqrt{6}}{2} \approx 3.67423461417\)
Key idea
Cut a parallelogram along a diagonal and you get two congruent triangles. So the area of the triangle is exactly half the area of the parallelogram. To find the area of the triangle formed by three points A, B and C in space, take the cross product of \(\overrightarrow{\mathrm{AB}}\) and \(\overrightarrow{\mathrm{AC}}\) and halve its magnitude. You do not need to measure the three sides and use Heron's formula; as long as you know the coordinates, you get the area. That is a strength of the cross product. Magnitudes often come out with large numbers under the root, like \(\sqrt{54}\). Look for a perfect square, as in \(54 = 9 \times 6\), and simplify to \(3\sqrt{6}\) (the rule is to move every factor you can outside the root). This calculator shows both the simplified radical and the decimal.
Unit normal vector (perpendicular to both, length 1)
Figure
Standard notation (the usual math form)
\(\vec{n}\) \(=\) \(\dfrac{1}{\left| \vec{a} \times \vec{b} \right|}\) \(\left( \vec{a} \times \vec{b} \right)\)
In words (symbols replaced with words)
③ \(\vec{n}\): unit normal vector \(=\) ② divide by the magnitude (makes the length 1) ① \(\vec{a}\times\vec{b}\): cross product
The formula in words
① Take the \(\vec{a}\times\vec{b}\): cross product and
② divide it by its magnitude \(|\vec{a}\times\vec{b}|\) (= multiply by 1 over the magnitude) . The direction stays the same and only the length becomes 1, giving the
③ \(\vec{n}\): unit normal vector
Quick example
When the cross product is \((-3,\ 6,\ -3)\) and its magnitude is \(3\sqrt{6}\), the unit normal vector is
\(\vec{n}\): unit normal vector \(=\) divide by the magnitude \(3\sqrt{6}\) cross product \((-3,\ 6,\ -3)\)
\(\vec{n} = \dfrac{1}{3\sqrt{6}}(-3,\ 6,\ -3) \approx (-0.408248290464,\ 0.816496580928,\ -0.408248290464)\)
\(\vec{a} \cdot \left( \vec{a} \times \vec{b} \right) = 1 \times (-3) + 2 \times 6 + 3 \times (-3) = 0\)
Key idea
The cross product is perpendicular to both of the original vectors. If you compute the dot products, you always get \(\vec{a} \cdot (\vec{a}\times\vec{b}) = 0\) and \(\vec{b} \cdot (\vec{a}\times\vec{b}) = 0\) (a dot product of 0 tells you the vectors are perpendicular). This calculator checks that both are 0 and shows them in the result. A vector perpendicular to a plane is called a normal vector, and a normal vector scaled to length 1 is a unit normal vector. It drops the length and keeps only the direction, which is what you need when only "which way the surface faces" matters, as in shading in 3D graphics. A plane has two perpendicular directions, front and back, and your right hand decides which one you get. Curl the fingers of your right hand from \(\vec{a}\) toward \(\vec{b}\); your thumb then points in the direction of \(\vec{a}\times\vec{b}\) (the right-hand rule). \(\vec{b}\times\vec{a}\) points the opposite way, toward the back of the plane. So a plane has two unit normal vectors, \(\vec{n}\) and \(-\vec{n}\), and both are "length 1 and perpendicular to the plane". Which one you get depends on the order in which you multiply \(\vec{a}\) and \(\vec{b}\); this calculator shows the one in the direction of \(\vec{a}\times\vec{b}\). If you need a single answer, set a rule yourself, such as "the one with a positive \(z\)-component".
For 2D vectors (the triangle area formula)
Figure
Standard notation (the usual math form)
\(S_{\triangle}\) \(=\) \(\dfrac{1}{2}\) \(\Bigl|\) \(x_1 y_2\) \(-\) \(x_2 y_1\) \(\Bigr|\)
In words (symbols replaced with words)
④ \(S_{\triangle}\): area of triangle OAB \(=\) ③ half of the parallelogram \(\Bigl|\) ① \(x\)-coordinate of A times \(y\)-coordinate of B \(-\) ② \(x\)-coordinate of B times \(y\)-coordinate of A \(\Bigr|\)
The formula in words
① For three points \(\mathrm{O}(0,\ 0)\), \(\mathrm{A}(x_1,\ y_1)\) and \(\mathrm{B}(x_2,\ y_2)\) in the plane, take the \(x_1y_2\): \(x\)-coordinate of A times \(y\)-coordinate of B ,
② subtract the \(x_2y_1\): \(x\)-coordinate of B times \(y\)-coordinate of A , and take the absolute value (drop the minus sign if there is one).
③ Divide by 2 to take half of the parallelogram and you get the
④ \(S_{\triangle}\): area of triangle OAB
Quick example
The area of the triangle formed by \(\mathrm{O}(0,\ 0)\), \(\mathrm{A}(4,\ 1)\) and \(\mathrm{B}(1,\ 3)\) is
triangle area \(=\) half of the parallelogram \(\Bigl|\) A's \(x\) times B's \(y\) (\(4 \times 3\)) \(-\) B's \(x\) times A's \(y\) (\(1 \times 1\)) \(\Bigr|\)
\(S_{\triangle} = \dfrac{1}{2}\left| 4 \times 3 - 1 \times 1 \right| = \dfrac{1}{2}\left| 12 - 1 \right| = \dfrac{11}{2} = 5.5\)
Key idea
The 2D vectors \(\vec{a} = (x_1,\ y_1)\) and \(\vec{b} = (x_2,\ y_2)\) can be treated as the 3D vectors \((x_1,\ y_1,\ 0)\) and \((x_2,\ y_2,\ 0)\), with a \(z\)-component of 0. If you take their cross product, the \(x\)- and \(y\)-components are 0, and only the \(z\)-component \(x_1y_2 - x_2y_1\) remains. In other words, the textbook triangle area formula \(S_{\triangle} = \dfrac{1}{2}|x_1y_2 - x_2y_1|\) is exactly half (the absolute value of) the \(z\)-component of the cross product. Leave the \(z\)-component fields blank (0) in this calculator to see this for yourself. The sign of \(x_1y_2 - x_2y_1\), before taking the absolute value, also carries information. If it is positive, turning from \(\vec{a}\) to \(\vec{b}\) is counterclockwise; if it is negative, the turn is clockwise. This "signed area" is used to find the area of a polygon from its coordinates in one pass (the shoelace formula, also called the surveyor's area formula).
The cross product \(\vec{a}\times\vec{b}\) makes a new vector from two 3D vectors. Its components come from three criss-cross subtractions. Its direction is perpendicular to both original vectors (right-hand rule), and its magnitude \(|\vec{a}||\vec{b}|\sin\theta\) equals the area of the parallelogram formed by the two vectors. Half of that is the triangle area, and dividing the cross product by its magnitude gives the unit normal vector.

Symbols and terms

Symbols

\(\vec{a}\) vector a A symbol for a quantity with a direction and a magnitude (length). The arrow over the letter marks it as a vector. In college textbooks and physics, vectors are often printed in bold (a) instead of with an arrow.
\(a_1,\ a_2,\ a_3\) a sub 1, a sub 2, a sub 3 The components of vector \(\vec{a}\): three numbers that tell how far it goes in the \(x\), \(y\) and \(z\) directions. The small number at the lower right (the subscript) tells which component it is. Some books write \(a_x,\ a_y,\ a_z\) instead.
\(\vec{a} \times \vec{b}\) a cross b The cross product (also called the vector product). It is named after the \(\times\) (cross) sign it uses. The answer is a vector, not a number.
\(\vec{a} \cdot \vec{b}\) a dot b The dot product (also called the scalar product). It is named after the dot it uses. Its answer is a number (a scalar). Its name and symbol look like those of the cross product, so keep the two apart.
\(\left| \vec{a} \right|\) magnitude of a The magnitude (length) of a vector, that is, the length of the arrow. From the components it is \(\sqrt{a_1^2 + a_2^2 + a_3^2}\), found with the Pythagorean theorem. It uses the same bars as absolute value, and both describe a distance from the origin.
\(\theta\) theta The angle between the two vectors. It is a Greek letter often used for angles. For the cross product, it is taken between 0° and 180°.
\(\sin\theta\) sine theta The sine of the angle \(\theta\). In a right triangle it is the ratio "opposite side ÷ hypotenuse", written \(\sin\) for short. Between 0° and 180° it is never negative: \(\sin 0^\circ = 0\), \(\sin 30^\circ = \dfrac{1}{2}\), \(\sin 90^\circ = 1\), \(\sin 180^\circ = 0\).
\(\overrightarrow{\mathrm{AB}}\) vector AB The vector that starts at point A and ends at point B. Its components are "coordinates of the end point − coordinates of the start point". To get a triangle area from three points, first make two side vectors in this form.
\(S\) S A letter often used for area, said to come from "surface" (\(A\) is also common in US books). On this page it stands for the area of the parallelogram.
\(S_{\triangle}\) S triangle The area of the triangle. A small triangle sign is added to \(S\) to tell it apart from the area of the parallelogram.
\(\vec{n}\) vector n The normal vector. By custom it uses \(n\), the first letter of "normal" (perpendicular). On this page it is the unit normal vector, scaled to length 1.
\(\vec{0}\) zero vector The vector whose components are all 0 (the zero vector). Its magnitude is 0 and it has no direction. When two vectors are parallel, their cross product is this zero vector.
\(\sqrt{\phantom{a}}\) square root The square root sign (radical). \(\sqrt{54}\) is "the positive number that gives 54 when squared". When a perfect square (\(4,\ 9,\ 16, \dots\)) hides under the root, move it outside to simplify, as in \(\sqrt{54} = \sqrt{9 \times 6} = 3\sqrt{6}\).

Terms

vector A quantity with both a direction and a magnitude. Two arrows with the same direction and length count as the same vector, wherever they are drawn. Quantities that say "which way and how much", such as force, velocity and wind, are vectors.
component form Writing a vector as a list of how far it goes in the \(x\), \(y\) and \(z\) directions, like \((1,\ 2,\ 3)\). It can also be written as a column (a column vector) with the same meaning. Some books use angle brackets, \(\langle 1,\ 2,\ 3 \rangle\), or \(\mathbf{i} + 2\mathbf{j} + 3\mathbf{k}\).
cross product An operation that makes a new vector from two 3D vectors. It is also called the vector product. The new vector is perpendicular to both of the original vectors, and its magnitude equals the area of the parallelogram they form.
dot product An operation that makes a number (a scalar) from two vectors. It equals \(|\vec{a}||\vec{b}|\cos\theta\), and when it is 0, the two vectors are perpendicular. It is different from the cross product, whose answer is a vector.
magnitude The length of a vector. For components \((a_1,\ a_2,\ a_3)\) it is \(\sqrt{a_1^2 + a_2^2 + a_3^2}\), the Pythagorean theorem extended to space. It is also called the norm.
angle between vectors The angle formed between two vectors when they are drawn from the same starting point. It is taken between 0° and 180°.
parallelogram A four-sided shape whose two pairs of opposite sides are parallel. When two vectors are used as two of its sides, its area is the magnitude of the cross product.
normal vector A vector perpendicular to a plane (or a line). It shows which way the surface faces, and the cross product makes one easily from two vectors lying in the plane.
unit vector A vector of length 1. Dividing a vector by its own magnitude keeps its direction and makes its length 1, giving a unit vector.
unit normal vector A normal vector scaled to length 1. It is used when you want only the direction.
criss-cross multiplication A way of calculating with four numbers written in two rows - multiply along the two diagonals (down to the right and up to the right) and subtract. It is the 2×2 determinant pattern \(ad - bc\), and each component of the cross product has this form.
right-hand rule The rule that gives the direction of the cross product. Curl the fingers of your right hand from \(\vec{a}\) toward \(\vec{b}\); your thumb points in the direction of \(\vec{a}\times\vec{b}\). A coordinate system that follows this rule is called right-handed.
zero vector The vector whose components are all 0. Its magnitude is 0, and it has no direction. When two vectors are parallel, their cross product is the zero vector.
perpendicular When the angle between two vectors is 90°. It is also called orthogonal. You can check it by seeing that the dot product is 0.
parallel When two vectors point in the same direction or exactly opposite directions. They can then lie on the same line, so they cannot form a parallelogram (it collapses flat with area 0).
signed area An area given a plus or minus sign depending on the direction of turning. In the plane, \(x_1y_2 - x_2y_1\) is a signed area: positive for counterclockwise and negative for clockwise. Its absolute value is the ordinary area.
determinant A single number determined by numbers arranged in a square. The 2×2 determinant \(\begin{vmatrix} a & b \\ c & d \end{vmatrix} = ad - bc\) is exactly criss-cross multiplication, and each component of the cross product has the form of this 2×2 determinant.
cyclic order An order that goes around in a loop and returns to the start, as in \(x \to y \to z \to x\). The three components of the cross product repeat the same form in this cyclic order.

Good to know before you start

Here is what helps you use the calculation on this page with real understanding, not just by pressing the button.
If you get stuck, going back over these topics is the quickest way forward.

What a vector is (Precalculus)
  • Knowing that a vector is a quantity with a direction and a magnitude and can be drawn as an arrow (a quantity that says "which way and how much", like force or velocity)
  • Being able to write a vector with components such as \((1,\ 2,\ 3)\) (how far it goes in each of the \(x\), \(y\) and \(z\) directions)
Coordinates in 3D space (Grade 6 to Precalculus)
  • Knowing that adding a height \(z\) to plane coordinates \((x,\ y)\) gives \((x,\ y,\ z)\), which fixes the position of a point in space
  • Being able to picture the \(x\)-, \(y\)- and \(z\)-axes meeting at right angles to each other
The Pythagorean theorem and vector magnitude (Grade 8 to Precalculus)
  • Knowing that \(a^2 + b^2 = c^2\) holds in a right triangle
  • Knowing that the magnitude of a 3D vector is \(\sqrt{a_1^2 + a_2^2 + a_3^2}\) (the Pythagorean theorem used twice)
Working with square roots (Grade 8 to Algebra 1)
  • Being able to simplify a radical by moving a perfect square outside the root, as in \(\sqrt{54} = \sqrt{9 \times 6} = 3\sqrt{6}\)
  • Knowing the approximate decimal value of a root, such as \(\sqrt{3} \approx 1.732\)
The dot product (Precalculus)
  • Knowing that the dot product \(\vec{a} \cdot \vec{b}\) is \(a_1b_1 + a_2b_2 + a_3b_3\) and that the answer is a number
  • Knowing that two vectors are perpendicular when their dot product is 0 (this page uses it to check that the cross product is perpendicular)
Right triangle trigonometry (Geometry)
  • Knowing that \(\sin\theta\) is the ratio "opposite side ÷ hypotenuse" in a right triangle
  • Remembering key values such as \(\sin 30^\circ = \dfrac{1}{2}\) and \(\sin 90^\circ = 1\)
Area of parallelograms and triangles (Grade 6)
  • Knowing that the area of a parallelogram is "base × height"
  • Knowing that a triangle has exactly half the area of a parallelogram with the same base and height

How to calculate it in Excel

Copy the whole table below and paste it into cell A1 in Excel. It works as is.
Table to find the components of the cross product
x-component of a (a₁) 1
y-component of a (a₂) 2
z-component of a (a₃) 3
x-component of b (b₁) 4
y-component of b (b₂) 5
z-component of b (b₃) 6
x-component of a×b (a₂b₃ − a₃b₂) =B2*B6-B3*B5
y-component of a×b (a₃b₁ − a₁b₃) =B3*B4-B1*B6
z-component of a×b (a₁b₂ − a₂b₁) =B1*B5-B2*B4
Table to check that the magnitude = |a||b|sinθ
x-component of a (a₁) 1
y-component of a (a₂) 2
z-component of a (a₃) 3
x-component of b (b₁) 4
y-component of b (b₂) 5
z-component of b (b₃) 6
Magnitude |a×b| (from components) =SQRT((B2*B6-B3*B5)^2+(B3*B4-B1*B6)^2+(B1*B5-B2*B4)^2)
Magnitude of a |a| =SQRT(B1^2+B2^2+B3^2)
Magnitude of b |b| =SQRT(B4^2+B5^2+B6^2)
Dot product a·b =B1*B4+B2*B5+B3*B6
Angle θ (degrees) =DEGREES(ACOS(B10/(B8*B9)))
|a||b|sinθ =B8*B9*SIN(RADIANS(B11))
Table to find the parallelogram and triangle areas
x-component of a×b -3
y-component of a×b 6
z-component of a×b -3
Parallelogram area S (= magnitude) =SQRT(B1^2+B2^2+B3^2)
Triangle area (half the parallelogram) =B4/2
Table to find the unit normal vector
x-component of a×b -3
y-component of a×b 6
z-component of a×b -3
Magnitude |a×b| =SQRT(B1^2+B2^2+B3^2)
x-component of the unit normal =B1/B4
y-component of the unit normal =B2/B4
z-component of the unit normal =B3/B4
Table to find the area of a triangle in the plane
x-coordinate of A (x₁) 4
y-coordinate of A (y₁) 1
x-coordinate of B (x₂) 1
y-coordinate of B (y₂) 3
z-component of the cross product (x₁y₂ − x₂y₁) =B1*B4-B3*B2
Area of triangle OAB =ABS(B5)/2
After pasting, the upper rows (the vector components) are your inputs and the lower rows are calculated automatically.
"*" is multiplication, "^" is a power, and SQRT is the square root function. The first table uses a = (1, 2, 3) and b = (4, 5, 6), and the answer is (−3, 6, −3).
The second table checks that "the magnitude found from the components" and "the value from |a||b|sinθ" match. B7 and B12 both come out as 7.348469… (the angle is about 12.93°).
In the third table, the parallelogram area is 7.348469… and the triangle area is half of that, 3.674234…. In the fourth table, the unit normal vector is (−0.408248…, 0.816497…, −0.408248…).
The fifth table is the case of 2D vectors with a z-component of 0. The area of the triangle with O(0, 0), A(4, 1) and B(1, 3) is 5.5.

How to calculate it in Google Sheets

Copy the whole table below and paste it into cell A1 in Google Sheets. It works as is.
Table to find the components of the cross product
x-component of a (a₁) 1
y-component of a (a₂) 2
z-component of a (a₃) 3
x-component of b (b₁) 4
y-component of b (b₂) 5
z-component of b (b₃) 6
x-component of a×b (a₂b₃ − a₃b₂) =B2*B6-B3*B5
y-component of a×b (a₃b₁ − a₁b₃) =B3*B4-B1*B6
z-component of a×b (a₁b₂ − a₂b₁) =B1*B5-B2*B4
Table to check that the magnitude = |a||b|sinθ
x-component of a (a₁) 1
y-component of a (a₂) 2
z-component of a (a₃) 3
x-component of b (b₁) 4
y-component of b (b₂) 5
z-component of b (b₃) 6
Magnitude |a×b| (from components) =SQRT((B2*B6-B3*B5)^2+(B3*B4-B1*B6)^2+(B1*B5-B2*B4)^2)
Magnitude of a |a| =SQRT(B1^2+B2^2+B3^2)
Magnitude of b |b| =SQRT(B4^2+B5^2+B6^2)
Dot product a·b =B1*B4+B2*B5+B3*B6
Angle θ (degrees) =DEGREES(ACOS(B10/(B8*B9)))
|a||b|sinθ =B8*B9*SIN(RADIANS(B11))
Table to find the parallelogram and triangle areas
x-component of a×b -3
y-component of a×b 6
z-component of a×b -3
Parallelogram area S (= magnitude) =SQRT(B1^2+B2^2+B3^2)
Triangle area (half the parallelogram) =B4/2
Table to find the unit normal vector
x-component of a×b -3
y-component of a×b 6
z-component of a×b -3
Magnitude |a×b| =SQRT(B1^2+B2^2+B3^2)
x-component of the unit normal =B1/B4
y-component of the unit normal =B2/B4
z-component of the unit normal =B3/B4
Table to find the area of a triangle in the plane
x-coordinate of A (x₁) 4
y-coordinate of A (y₁) 1
x-coordinate of B (x₂) 1
y-coordinate of B (y₂) 3
z-component of the cross product (x₁y₂ − x₂y₁) =B1*B4-B3*B2
Area of triangle OAB =ABS(B5)/2
The same formulas as in Excel work as is (SQRT, ACOS, DEGREES, RADIANS and ABS have the same names in Google Sheets). Copy the whole table, paste it into cell A1, and replace the components with your own numbers.

How to calculate it in Python

from fractions import Fraction
import math

# Vector components (a fraction such as 3/4 can be written as Fraction(3, 4))
a = (Fraction(1), Fraction(2), Fraction(3))
b = (Fraction(4), Fraction(5), Fraction(6))

def cross(u, v):
    # Cross product (criss-cross multiplication), built in the order x, y, z
    return (u[1] * v[2] - u[2] * v[1],
            u[2] * v[0] - u[0] * v[2],
            u[0] * v[1] - u[1] * v[0])

def dot(u, v):
    return u[0] * v[0] + u[1] * v[1] + u[2] * v[2]

c = cross(a, b)
area = math.sqrt(dot(c, c))       # parallelogram area (= magnitude of the cross product)

print(f"Cross product a×b = ({c[0]}, {c[1]}, {c[2]})")
print(f"Parallelogram area: {area}")
print(f"Triangle area: {area / 2}")
print(f"Perpendicular check (both are 0): {dot(a, c)}, {dot(b, c)}")
With the fractions module from the standard library, the calculation stays exact with no rounding error even when the components are fractions. This example is the cross product of a = (1, 2, 3) and b = (4, 5, 6). Running it prints "Cross product a×b = (-3, 6, -3)", "Parallelogram area: 7.3484692283495345", "Triangle area: 3.6742346141747673" and "Perpendicular check (both are 0): 0, 0". Change the components and run it again.

How to write it in LaTeX and other math languages (copy and paste)

Components of the cross product (criss-cross multiplication)
a×b = (a₂b₃ − a₃b₂, a₃b₁ − a₁b₃, a₁b₂ − a₂b₁)
\vec{a} \times \vec{b} = \begin{pmatrix} a_2 b_3 - a_3 b_2 \\ a_3 b_1 - a_1 b_3 \\ a_1 b_2 - a_2 b_1 \end{pmatrix}
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mover><mi>a</mi><mo>&#x2192;</mo></mover>
    <mo>&#xD7;</mo>
    <mover><mi>b</mi><mo>&#x2192;</mo></mover>
    <mo>=</mo>
    <mo>(</mo>
    <mrow>
      <msub><mi>a</mi><mn>2</mn></msub><msub><mi>b</mi><mn>3</mn></msub>
      <mo>&#x2212;</mo>
      <msub><mi>a</mi><mn>3</mn></msub><msub><mi>b</mi><mn>2</mn></msub>
    </mrow>
    <mo>,</mo>
    <mrow>
      <msub><mi>a</mi><mn>3</mn></msub><msub><mi>b</mi><mn>1</mn></msub>
      <mo>&#x2212;</mo>
      <msub><mi>a</mi><mn>1</mn></msub><msub><mi>b</mi><mn>3</mn></msub>
    </mrow>
    <mo>,</mo>
    <mrow>
      <msub><mi>a</mi><mn>1</mn></msub><msub><mi>b</mi><mn>2</mn></msub>
      <mo>&#x2212;</mo>
      <msub><mi>a</mi><mn>2</mn></msub><msub><mi>b</mi><mn>1</mn></msub>
    </mrow>
    <mo>)</mo>
  </mrow>
</math>
vec a xx vec b = (a_2 b_3 - a_3 b_2, a_3 b_1 - a_1 b_3, a_1 b_2 - a_2 b_1)
Cross[{a1, a2, a3}, {b1, b2, b3}]
LinearAlgebra:-CrossProduct(Vector([a1, a2, a3]), Vector([b1, b2, b3]));
c = cross(a, b);
a⃗×b⃗ = (a_2 b_3 − a_3 b_2, a_3 b_1 − a_1 b_3, a_1 b_2 − a_2 b_1)
Magnitude of the cross product (\(|\vec{a}||\vec{b}|\sin\theta\))
|a×b| = |a||b|sinθ
\left| \vec{a} \times \vec{b} \right| = \left| \vec{a} \right| \left| \vec{b} \right| \sin\theta
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mo>|</mo>
    <mover><mi>a</mi><mo>&#x2192;</mo></mover>
    <mo>&#xD7;</mo>
    <mover><mi>b</mi><mo>&#x2192;</mo></mover>
    <mo>|</mo>
    <mo>=</mo>
    <mo>|</mo><mover><mi>a</mi><mo>&#x2192;</mo></mover><mo>|</mo>
    <mo>|</mo><mover><mi>b</mi><mo>&#x2192;</mo></mover><mo>|</mo>
    <mi>sin</mi><mo>&#x2061;</mo><mi>&#x3B8;</mi>
  </mrow>
</math>
|vec a xx vec b| = |vec a| |vec b| sin theta
Norm[Cross[a, b]] == Norm[a] Norm[b] Sin[theta]
LinearAlgebra:-Norm(LinearAlgebra:-CrossProduct(a, b), 2);
m = norm(cross(a, b));
|a⃗×b⃗| = |a⃗||b⃗| sin⁡θ
Area of the parallelogram and the triangle
S = |a×b|,  S△ = |a×b| ÷ 2
S = \left| \vec{a} \times \vec{b} \right|,\quad S_{\triangle} = \frac{1}{2} \left| \vec{a} \times \vec{b} \right|
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>S</mi>
    <mo>=</mo>
    <mo>|</mo>
    <mover><mi>a</mi><mo>&#x2192;</mo></mover>
    <mo>&#xD7;</mo>
    <mover><mi>b</mi><mo>&#x2192;</mo></mover>
    <mo>|</mo>
    <mo>,</mo>
    <msub><mi>S</mi><mo>&#x25B3;</mo></msub>
    <mo>=</mo>
    <mfrac><mn>1</mn><mn>2</mn></mfrac>
    <mo>|</mo>
    <mover><mi>a</mi><mo>&#x2192;</mo></mover>
    <mo>&#xD7;</mo>
    <mover><mi>b</mi><mo>&#x2192;</mo></mover>
    <mo>|</mo>
  </mrow>
</math>
S = |vec a xx vec b|, S_triangle = 1/2 |vec a xx vec b|
area = Norm[Cross[a, b]]; triangle = area/2
S := LinearAlgebra:-Norm(LinearAlgebra:-CrossProduct(a, b), 2);
S = norm(cross(a, b)); tri = S / 2;
S = |a⃗×b⃗|,  S_△ = 1/2 |a⃗×b⃗|
Unit normal vector (perpendicular to both, length 1)
n = (a×b) ÷ |a×b|
\vec{n} = \frac{\vec{a} \times \vec{b}}{\left| \vec{a} \times \vec{b} \right|}
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mover><mi>n</mi><mo>&#x2192;</mo></mover>
    <mo>=</mo>
    <mfrac>
      <mrow>
        <mover><mi>a</mi><mo>&#x2192;</mo></mover>
        <mo>&#xD7;</mo>
        <mover><mi>b</mi><mo>&#x2192;</mo></mover>
      </mrow>
      <mrow>
        <mo>|</mo>
        <mover><mi>a</mi><mo>&#x2192;</mo></mover>
        <mo>&#xD7;</mo>
        <mover><mi>b</mi><mo>&#x2192;</mo></mover>
        <mo>|</mo>
      </mrow>
    </mfrac>
  </mrow>
</math>
vec n = (vec a xx vec b) / |vec a xx vec b|
n = Normalize[Cross[a, b]]
n := LinearAlgebra:-Normalize(LinearAlgebra:-CrossProduct(a, b), 2);
n = cross(a, b) / norm(cross(a, b));
n⃗ = (a⃗×b⃗)/|a⃗×b⃗|
For 2D vectors (the triangle area formula)
S△ = |x₁y₂ − x₂y₁| ÷ 2
S_{\triangle} = \frac{1}{2} \left| x_1 y_2 - x_2 y_1 \right|
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <msub><mi>S</mi><mo>&#x25B3;</mo></msub>
    <mo>=</mo>
    <mfrac><mn>1</mn><mn>2</mn></mfrac>
    <mo>|</mo>
    <msub><mi>x</mi><mn>1</mn></msub><msub><mi>y</mi><mn>2</mn></msub>
    <mo>&#x2212;</mo>
    <msub><mi>x</mi><mn>2</mn></msub><msub><mi>y</mi><mn>1</mn></msub>
    <mo>|</mo>
  </mrow>
</math>
S_triangle = 1/2 |x_1 y_2 - x_2 y_1|
Abs[x1*y2 - x2*y1]/2
S := abs(x1*y2 - x2*y1)/2;
S = abs(x1*y2 - x2*y1) / 2;
S_△ = 1/2 |x_1 y_2 − x_2 y_1|

How to have ChatGPT  do the calculation

You are a calculation assistant for vectors (3D geometry). Do the following calculation by actually running Python code, and base your answer only on the numbers from the execution result (do not answer by mental math or guessing).

For the vectors a = (1, 2, 3) and b = (4, 5, 6), find the following.
1. The components of the cross product a×b (also show the criss-cross multiplication steps)
2. The magnitude |a×b| (both as an exact value with the radical simplified and as a decimal)
3. The areas of the parallelogram and the triangle formed by a and b
4. The values of a·(a×b) and b·(a×b), to check that the cross product is perpendicular to both

In Python, compute the components exactly with the fractions module from the standard library; you may use sympy to simplify the radical. Show the formulas you used and the numbers from the execution result.

How to Use
  1. 1
    Enter your numbers
    Type the numbers you want to calculate with into the input fields
  2. 2
    Calculate
    Press the "Calculate" button
  3. 3
    Check the result
    The result appears on the spot. The same page also explains the idea behind the calculation and the formula
  DataChef Features
Easy and Free
Unlimited conversions for free.
No technical knowledge required.
Intuitive and user-friendly operation.
No Registration Required
Available immediately after access.
Can be used without registering personal information.
Safe and Secure
Fully SSL encrypted communication.
Automatic file deletion by clicking "download".
Fast
High-speed site access
and rapid file conversion.
No Watermark
No watermark.
No attribution required.
Commercial Use Available
Free for commercial use.
No need to contact us for commercial use permission.