Differential Drive Kinematics Explained: Forward and Inverse
Most mobile robots, from robot vacuums to warehouse carts, steer the same way: two driven wheels on one axle, turning at different speeds. The relationship…
Robotics · October 2026
Kinematics and odometry for two-wheeled robots, worked out for you.

About
Most mobile robots steer by driving two wheels at different speeds. The maths is short, but the details (units, signs, wheel separation, encoder counts) cause a large share of real-world bugs. The Differential Drive Calculator puts the maths in front of you with a drawing of the result.
Anyone writing a motor driver node, configuring diff_drive_controller, or debugging odometry that drifts. The defaults are typical of small TurtleBot-style robots.
The calculator uses the same unicycle model as the ROS 2 diff_drive_controller. We test it with cases that have exact answers: equal wheel travel gives a straight line, opposite wheel travel gives a turn on the spot, and an arc of known radius ends exactly where geometry says it should.
Open the Differential Drive Calculator. The guides below derive the kinematics, follow a Twist message down to the motors, build odometry from encoders, calibrate the robot and limit its motion smoothly.
Gallery
Blogs
Most mobile robots, from robot vacuums to warehouse carts, steer the same way: two driven wheels on one axle, turning at different speeds. The relationship…
In ROS 2, everything that wants a robot to move, from a teleop keyboard to the Nav2 navigation stack, publishes a velocity command on a cmd_vel topic.…
Wheel odometry estimates where a robot is by counting how far each wheel has turned. It is fast, cheap and smooth, which is why every mobile robot uses it, and…
A differential-drive robot's odometry depends on two numbers: the wheel radius and the wheel separation. The values on the drawing are never quite the values…
Every mobile robot needs limits on speed and acceleration: motors have a top speed, tyres have limited grip, and a tall robot tips over if it brakes too hard.…
FAQ
Any robot with two independently driven wheels on one axis and passive casters, such as TurtleBot-style rovers, and skid-steer robots as an approximation.
Yes. It uses the standard unicycle model that the diff_drive_controller uses, with wheel separation and wheel radius as the two parameters.
Yes. It is free and runs entirely in your browser.
Contact
Questions, ideas, or want to work with the team? Your message goes straight to the Differential Drive Calculator team on XPARO. Add your email if you'd like a reply.