Shapes & spaces

Dubins shortest path calculator between oriented points

Find the shortest forward-only curvature-bounded Dubins path between two oriented planar points in an obstacle-free plane.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Find the shortest forward-only curvature-bounded Dubins path between two oriented planar points in an obstacle-free plane. The calculation compares the six standard turn-straight-turn and three-turn families, then reports the shortest feasible candidate, segment lengths and sampled poses. Heading is part of each endpoint, so a shortest point-to-point line is not necessarily a valid answer.

THE FORMULACompare the LSL,RSR,LSR,RSL,RLR,LRL forward-only Dubins path families.

A worked example

From (0,0,heading 0°) to (4,0,heading 0°) with unit minimum turn radius, the shortest path is the straight segment of length four. The page also evaluates feasible arc–straight–arc and three-arc candidates and reconstructs the selected endpoint heading.

Good to know

Obstacle-free forward-only planar motion, positive turn radius≤1,000,000 and normalized separation≤1,000,000. Sampled display, exact family formulas evaluated numerically; endpoint residual checked. No reverse, obstacles, footprint, acceleration or collision/safety certification.

Position and heading define a pose

Each endpoint contains x, y and a heading in radians. The minimum turning radius bounds curvature magnitude. The model moves forward only and can turn left, turn right or travel straight.

It cannot reverse, pivot in place or change position independently of heading. Angles differing by a full turn describe the same orientation. All distances and the radius must use a consistent unit.

Aligned Dubins poses permit a straight shortest pathLength = 4Headings both zeroMinimum radius = 1Other families checked
From (0,0,heading 0°) to (4,0,heading 0°) with unit minimum turn radius, the shortest path is the straight segment of length four. The page also evaluates feasible arc–straight–arc and three-arc candidates and reconstructs the selected endpoint heading. Static schematic; numerical labels define the example.

Endpoint headings and curvature constrain motion; straight visibility paths inside a polygon do not satisfy those constraints. The Clothoid spiral coordinates calculator from curvature and arc length offers a complementary calculation under its own stated assumptions.

The six candidate families

Dubins’ result reduces the obstacle-free shortest-path search to LSL, RSR, LSR, RSL, RLR and LRL families, allowing degenerate zero-length segments. L and R are maximum-curvature circular arcs and S is a straight segment.

Not every family is feasible for every endpoint pair. Comparing only the four families with a straight section would miss cases where a three-arc path is shorter.

Worked example and mathematical rule

From (0,0,heading 0°) to (4,0,heading 0°) with unit minimum turn radius, the shortest path is the straight segment of length four. The page also evaluates feasible arc–straight–arc and three-arc candidates and reconstructs the selected endpoint heading.

Compare the LSL,RSR,LSR,RSL,RLR,LRL forward-only Dubins path families.

Normalization and reconstruction

The geometry is translated, rotated and scaled by the turning radius to evaluate dimensionless candidate formulas. Segment lengths are then returned in the original distance unit.

The implementation reconstructs the endpoint from the selected segments and checks position and heading agreement. This catches sign and normalization mistakes that a plausible-looking length alone would not reveal. Sampled poses visualize the path but do not define a different discretized optimization problem.

Short paths can still require a loop

Nearby positions with incompatible headings may require a substantial turn to satisfy the final orientation. A Euclidean distance of zero therefore does not imply a zero Dubins length unless the poses agree.

Increasing the turning radius can also change which family is optimal. At family boundaries, two candidates may have equal length, so the selected label can change abruptly while the optimal length remains continuous.

Obstacle-free and idealized limits

The path does not avoid buildings, walls or other obstacles. A collision-free route requires an additional planning layer that checks and combines feasible motions.

Curvature can jump between zero and its bound at segment boundaries, so this model does not impose a curvature-rate or steering-acceleration limit. A clothoid transition is a different construction. Vehicle width, speed, acceleration and tire dynamics are also absent.

Verification and attribution

For matching headings along a forward straight line, the result should equal Euclidean distance. Scaling all positions and radius by the same positive factor scales length while preserving family structure.

Reflecting the geometry exchanges left and right turns. The candidate formulas are adapted from the openly licensed PythonRobotics implementation, with its license retained. Use the result to study ideal bounded-curvature geometry rather than treating a shortest mathematical path as a deployment-ready vehicle command sequence.

A few questions, answered

Can the path reverse?

No. Dubins paths are forward-only.

Does it avoid obstacles?

No. The plane is assumed obstacle-free.

Why not simply connect the points?

Endpoint headings and minimum turning radius constrain feasible motion.

Is steering rate limited?

No. Curvature can change abruptly between the standard segments.

Find your calculator

Start typing to explore the library.