Shapes & spaces

Clothoid spiral coordinates calculator from curvature and arc length

Evaluate a planar clothoid whose curvature changes linearly with arc length.

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

Evaluate a planar clothoid whose curvature changes linearly with arc length. Starting position, heading, initial curvature, curvature rate and length determine sampled coordinates and the endpoint. Numerical quadrature integrates the tangent direction, while final heading and curvature follow directly from the defining formulas. This is a forward evaluation, not an inverse fitting of a spiral between two arbitrary poses.

THE FORMULAθ(s)=θ0+κ0s+as²/2; r(s)=r0+∫_0^s(cos θ(u),sin θ(u))du.

A worked example

Starting at the origin with heading zero, initial curvature zero and curvature rate one, unit arc length ends at approximately (0.9752876882,0.1637140474). Final heading is 1/2 radian and final curvature one. Arc length, rather than x-coordinate, drives the curvature ramp.

Good to know

Arc length 0–1000 and absolute turning budget≤200π. Adaptive integration of 100 consecutive segments; signed radians/length curvature convention. Numerical quadrature, not certified interval bounds or compliance with road/rail design standards.

Arc length is the independent variable

The tangent vector has unit length because the curve is parameterized by distance traveled. Curvature at s equals initial curvature plus curvature rate times s.

Integrating curvature gives heading, with a linear and a quadratic term. Coordinates then integrate cosine and sine of that heading. This relationship makes the clothoid useful for gradual curvature transitions, but it does not by itself select appropriate road, rail or vehicle design parameters.

Clothoid curvature increases linearly with arc lengthκ(s) = sθ(1) = 1/2Endpoint ≈ (.975,.164)
Starting at the origin with heading zero, initial curvature zero and curvature rate one, unit arc length ends at approximately (0.9752876882,0.1637140474). Final heading is 1/2 radian and final curvature one. Arc length, rather than x-coordinate, drives the curvature ramp. Static schematic; numerical labels define the example.

Controls curvature as a linear function of arc length instead of choosing a polynomial control polygon. The Polygon equal area cut calculator with a specified line direction offers a complementary calculation under its own stated assumptions.

Units and sign conventions

Heading is in radians, curvature has inverse-length units and curvature rate has inverse-length-squared units. Positive curvature turns counterclockwise in the stated coordinate system.

A negative rate can reduce positive curvature, pass through zero and begin bending the other way. All distances must share one unit. Converting meters to centimeters without converting both curvature quantities accordingly describes a different curve even if the printed endpoint coordinates look comparable.

Worked example and mathematical rule

Starting at the origin with heading zero, initial curvature zero and curvature rate one, unit arc length ends at approximately (0.9752876882,0.1637140474). Final heading is 1/2 radian and final curvature one. Arc length, rather than x-coordinate, drives the curvature ramp.

θ(s)=θ0+κ0s+as²/2; r(s)=r0+∫_0^s(cos θ(u),sin θ(u))du.

Straight and circular limits

Zero initial curvature and zero rate give a straight line at the initial heading. Zero rate with nonzero curvature gives a circular arc.

A genuine clothoid has a nonzero rate and continuously changing radius of curvature, except that radius becomes infinite where curvature crosses zero. These limits provide independent checks on the coordinate integrals. A clothoid need not have increasing curvature magnitude throughout its interval when the initial curvature and rate have opposite signs.

Quadrature and sampling

The implementation integrates tangent components over successive sample intervals using bounded numerical quadrature. The displayed points approximate the continuous path, while the final heading and curvature use their explicit formulas.

Tight spirals can cause cancellation in coordinate increments even when heading remains easy to evaluate. A turning-budget limit controls difficult oscillatory cases. Connecting sampled points with straight segments is only a visualization and slightly shortens the represented path relative to its specified arc length.

Not a general endpoint connector

Choosing a length and curvature parameters determines an endpoint; it does not guarantee arrival at an independently desired pose. Inverse clothoid interpolation may have several solutions or require multiple pieces and an optimization criterion.

Likewise, a single clothoid does not automatically create a straight-to-circle transition unless its endpoint curvatures are selected to match those neighboring pieces. State the continuity conditions required by the application before using the forward coordinates.

Practical interpretation

A linearly varying curvature can reduce abrupt steering changes compared with ideal circular-arc joins, but dynamics and comfort depend on speed and other constraints. The calculator does not certify highway standards, rail geometry or vehicle stability.

Compare translations and rotations of a benchmark curve to verify coordinate handling. When sharing a result, include initial heading, signed curvatures, rate, length and units, not merely a screenshot of the final shape.

A few questions, answered

Does this find parameters for two desired endpoints?

No. It evaluates the endpoint from supplied parameters.

What units does curvature rate use?

Inverse length squared.

What happens when rate is zero?

The curve is a circle arc for nonzero initial curvature, or a line when both are zero.

Does linear curvature guarantee physical comfort?

No. Speed, dynamics and application-specific standards also matter.

Find your calculator

Start typing to explore the library.