Home · Everyday · Matrices · Quaternion Calculator

Quaternion Calculator

Quaternion arithmetic — add, subtract, multiply (Hamilton product), conjugate and norm for 3D-rotation math.

Your figures

Example result — edit the figures to make it yours

-60 + 12i + 30j + 24k

q₁ × q₂ (Hamilton product)

Quaternion multiplication follows Hamilton's rules i² = j² = k² = ijk = −1 and is not commutative — order matters. The headline figure for the correctness record is the norm of the result.

Norm of result72.2496

What this calculator does

Quaternion arithmetic — add, subtract, multiply (Hamilton product), conjugate and norm for 3D-rotation math. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.

The formula and method

Hamilton product with i² = j² = k² = ijk = −1; multiplication is not commutative

Quaternions are written w + xi + yj + zk with i² = j² = k² = ijk = −1.

Multiplication is the Hamilton product and is not commutative: q₁·q₂ ≠ q₂·q₁ in general.

The norm is |q| = √(w² + x² + y² + z²).

Worked example

With the example inputs this page opens with (q₁ scalar (a) 1, q₁ i (b) 2, q₁ j (c) 3, q₁ k (d) 4), the result is -60 + 12i + 30j + 24k — q₁ × q₂ (hamilton product). Quaternion multiplication follows Hamilton's rules i² = j² = k² = ijk = −1 and is not commutative — order matters. The headline figure for the correctness record is the norm of the result.

Quick reference

Quick reference — varying q₁ scalar (a)
q₁ scalar (a)q₁ × q₂ (Hamilton product)
0.5-62.5 + 9i + 26.5j + 20k
0.8-61 + 10.8i + 28.6j + 22.4k
1-60 + 12i + 30j + 24k
1.25-58.75 + 13.5i + 31.75j + 26k
1.5-57.5 + 15i + 33.5j + 28k
2-55 + 18i + 37j + 32k

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Quaternion Calculator work?

Quaternion arithmetic — add, subtract, multiply (Hamilton product), conjugate and norm for 3D-rotation math. Q₁ · q₂ · Operation → Result. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Quaternion Calculator need?

Q₁ · q₂ · Operation → Result. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Quaternion Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.