Worked example
Example: (3, −2, 1) and (1, 4, 2). The inputs, in the units selected above:
| Input | Value |
|---|---|
| a, x component | 3.0000 - |
| a, y component | -2.0000 - |
| a, z component | 1.0000 - |
| b, x component | 1.0000 - |
| b, y component | 4.0000 - |
| b, z component | 2.0000 - |
Applying the formula below gives:
| Result | Value |
|---|---|
| Magnitude of a | 3.7417 |
| Magnitude of b | 4.5826 |
| Dot product | -3.0000 |
| Angle between | 100.08 ° |
| Cross product, x | -8.0000 |
| Cross product, y | -5.0000 |
| Cross product, z | 14.000 |
| Parallelogram area | 16.882 |
| Projection of a on b | -0.65465 |
Open this example in the calculator and change any input.
Formula
\(a\cdot b = |a||b|\cos\theta, \quad a\times b = (a_yb_z - a_zb_y,\ a_zb_x - a_xb_z,\ a_xb_y - a_yb_x)\)
Variables
| Symbol | Meaning | SI unit |
|---|---|---|
| \(a_x\) | a, x component | - |
| \(a_y\) | a, y component | - |
| \(a_z\) | a, z component | - |
| \(b_x\) | b, x component | - |
| \(b_y\) | b, y component | - |
| \(b_z\) | b, z component | - |
| \(|a|\) | Magnitude of a | - |
| \(|b|\) | Magnitude of b | - |
| \(a\cdot b\) | Dot product | - |
| \(\theta\) | Angle between | rad |
| \((a\times b)_x\) | Cross product, x | - |
| \((a\times b)_y\) | Cross product, y | - |
| \((a\times b)_z\) | Cross product, z | - |
| \(|a\times b|\) | Parallelogram area | - |
| \(a\cdot\hat b\) | Projection of a on b | - |
Method and standards
Vector products.
Where it is used
- Statics (moments of forces).
- Geometry of piping and structures.
Common mistakes
- Order of the cross product (b × a = −a × b).
- Mixing degrees and radians.
Assumptions and limits
- 3-D Cartesian vectors.
References
- Vector algebra (Kreyszig, Advanced Engineering Mathematics, 10th ed. (Wiley), ch. 9)
Questions and answers
What does a zero dot product mean?
The vectors are perpendicular.
Where is the cross product used?
Moments (r × F), torque, angular momentum and normals to surfaces.
What do the defaults represent?
a = (3, −2, 1) and b = (1, 4, 2).
Method and article reviewed by FireCAD engineering on 13 November 2026. Every result is checked against an independent calculation on each release: how we verify our calculators.