Denavit–Hartenberg parameters, often shortened to DH parameters, are a convention that describes the geometry between two consecutive joints of a serial manipulator with exactly four numbers: link length, link twist, link offset and joint angle. In robotics and manipulation, they provide a compact, standardized way to attach a coordinate frame to every joint and to build the forward kinematics of an arm as a product of simple homogeneous transformations.
The convention was introduced by Jacques Denavit and Richard Hartenberg in 1955. It remains the most widely taught kinematic notation for industrial arms, because a single table of parameters is enough to compute where the tool center point lies for any set of joint values.
How the four DH parameters define a link
Each DH parameter set describes the rigid transformation from frame i−1 to frame i using two rotations and two translations about only two axes. The z-axis of each frame is aligned with a joint axis, and the x-axis lies along the common normal between consecutive z-axes. This placement removes two of the six degrees of freedom that a general rigid transformation would otherwise need.
The table below summarizes the four quantities in the classic (distal) convention, which is the variant most textbooks present first.
| Parameter | Symbol | Measured along or about | Meaning |
|---|---|---|---|
| Link length | a | x-axis of frame i | Distance between joint axes along the common normal |
| Link twist | α (alpha) | x-axis of frame i | Angle between consecutive joint axes |
| Link offset | d | z-axis of frame i−1 | Distance along the joint axis between common normals |
| Joint angle | θ (theta) | z-axis of frame i−1 | Rotation about the joint axis between common normals |
For a revolute joint, θ is the variable and a, α and d are constants fixed by the mechanical design. For a prismatic joint, d becomes the variable and θ stays constant. The resulting transform is written as Rot(z, θ) · Trans(z, d) · Trans(x, a) · Rot(x, α), a 4×4 homogeneous matrix that contains the orientation and position of one link relative to the previous one.
Building forward kinematics from a DH table
The pose of the end effector is obtained by multiplying the link transforms in order from the base frame to the last frame. For a six-axis arm this means six matrix products, which produce the full position and orientation of the flange. A fixed tool transform is then appended to reach the tool center point.
Because every link is reduced to one row, the DH table becomes the complete kinematic description of the arm. The same table is the input for computing the robot Jacobian, for numerical inverse kinematics and for checking reach inside the robot workspace. Simulation tools, motion planning libraries and controller firmware can all consume it.
The following example shows the structure of a DH table for a simple planar arm with two revolute joints, which is a common teaching case.
| Joint | Length a | Twist α | Offset d | Angle θ |
|---|---|---|---|---|
| 1 | L1 (e.g. 0.40 m) | 0° | 0 m | θ1 (variable) |
| 2 | L2 (e.g. 0.30 m) | 0° | 0 m | θ2 (variable) |
Multiplying the two transforms gives the familiar result that the end point lies at x = L1 cos θ1 + L2 cos(θ1 + θ2) and y = L1 sin θ1 + L2 sin(θ1 + θ2). For spatial arms the twist angles, typically ±90° between perpendicular axes, introduce the out-of-plane geometry.
Classic and modified DH conventions compared
Two DH conventions are in common use, and mixing them is a frequent source of errors. The classic convention, associated with Denavit and Hartenberg and popularized in many robotics textbooks, places frame i at the distal end of link i. The modified convention, introduced by John Craig, places frame i at the proximal end and changes the order of operations.
| Aspect | Classic (distal) DH | Modified (proximal) DH |
|---|---|---|
| Frame placement | Frame i on the axis of joint i+1 | Frame i on the axis of joint i |
| Transform order | Rot z, Trans z, Trans x, Rot x | Rot x, Trans x, Rot z, Trans z |
| Index of a and α | Refer to the current link | Refer to the previous link |
| Typical use | Many university courses | Craig-based texts and some controllers |
| Tree structures | Awkward for branching chains | Handles branching chains more cleanly |
Both conventions describe the same physical arm with four parameters per joint, but the numerical values differ. A DH table must therefore always state which convention it uses, otherwise forward kinematics will produce a plausible but wrong pose.
Alternatives and when DH parameters fall short
DH parameters are minimal but not universal: they work best for serial chains with clearly defined joint axes, yet they become ill-conditioned in some geometric cases. The best-known problem appears when two consecutive joint axes are nearly parallel, because the common normal can jump along the axis after a tiny misalignment.
This sensitivity matters most in kinematic calibration, where small parameter changes should produce small pose changes. For that reason, calibration practice often uses extensions or different models, as summarized below.
| Method | Parameters per joint | Main strength | Main weakness |
|---|---|---|---|
| Classic DH | 4 | Minimal and widely understood | Singular for near-parallel axes |
| Modified DH | 4 | Cleaner for branched chains | Same parallel-axis issue |
| Hayati–Mirmirani extension | 4 or 5 | Stable for parallel axes | Mixed notation in one model |
| Product of exponentials | 6 (screw axis) | No frame-placement rules | Not minimal, more abstract |
| URDF-style origin and axis | 6 plus axis | Direct from CAD geometry | Redundant, not minimal |
Modern software frameworks such as MoveIt usually read a URDF description rather than a DH table, but DH parameters are still printed in arm datasheets and remain the lingua franca for analytic kinematics and controller configuration.
Common mistakes when assigning DH frames
Most DH errors come from frame assignment rather than arithmetic. Typical issues include the following:
- Mixing classic and modified parameters taken from different sources in one table.
- Forgetting the joint zero offset, so θ in the table differs from the encoder reading by a constant angle.
- Choosing the wrong sign of α, which mirrors part of the arm.
- Placing the base frame inconsistently with the robot mounting surface.
- Ignoring the tool transform, so the computed pose describes the flange instead of the tool tip.
A reliable check is to set all joints to zero and compare the computed pose with the manufacturer drawing, then move one joint at a time and confirm that the direction of motion matches the physical robot.
The short version
A robot arm is a chain of rigid pieces connected by joints. To know where the gripper is, the controller needs to know how each piece is turned and shifted relative to the one before it.
Denavit–Hartenberg parameters are a tidy recipe for that. For every joint, four numbers describe the step from one piece to the next: how far apart the joints are, how much they are tilted, how far they are offset and how much the joint has turned. Chain those steps together and the controller knows exactly where the hand is.
Where it makes a difference
An integration engineer is commissioning a six-axis arm for a welding cell. The welding torch must follow a seam within about 0.5 mm, and the path planner computes poses from the arm’s published DH table plus a torch transform of 180 mm along the flange axis.
During the first test, the torch tip drifts several millimeters away from the seam whenever the wrist rotates. The engineer notices that the datasheet uses the modified convention, while the planning script assumed the classic one. After rewriting the table in the correct convention and adding the missing joint 2 zero offset of −90°, the zero-position pose matches the drawing, and the torch follows the seam within tolerance across the full weld path.