Shapes & spaces

Cubic Bezier point at arc length calculator with parameter inversion

Find the parameter and point reached after a supplied absolute or fractional cubic Bezier arc length.

Your numbers

One coordinate or index row per line; comma-separated entries.
Use finite values within the stated calculator bounds.
Use finite values within the stated calculator bounds.

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 parameter and point reached after a supplied absolute or fractional cubic Bezier arc length.

THE FORMULAs(t)=∫₀ᵗ||B′(u)||du; solve s(t)=s_target on 0≤t≤1.

A worked example

For controls (0,0), (1,2), (2,2), (3,0), half the total length occurs at t = 0.5 and point (1.5,1.5). Total length is approximately 4.4368285726.

Good to know

Exactly four finite planar controls. Target fraction in [0,1] or absolute length no greater than total. Adaptive speed quadrature and monotone bisection; coincident controls give a zero-length special case. Floating quadrature, not certified interval length.

Travel distance is not the same as parameter

A Bezier parameter describes how polynomial basis functions blend the control points. It does not generally advance at constant physical speed along the curve. Consequently a parameter value of one-half need not mark half the traveled arc length, even though it lies halfway through the parameter interval.

This calculator solves the inverse distance problem. You supply a target travel along the whole cubic segment, and it returns the parameter and curve point at that travel. It also reports total length and a numerical residual, so the inversion can be checked against the original distance request.

Half travel on a symmetric cubicTotal ≈ 4.436829Half travel: t = 0.5Point (1.5,1.5)
Scroll across to see the full diagram.
For the symmetric default only, half arc length has parameter 0.5 at point(1.5,1.5).

Compare this with the Cubic Bézier curve calculator from control points. Find t and the curve point at a requested traveled length; evaluating a supplied t and reporting total length does not perform the inverse task.

Entering the controls and target

Provide exactly four planar control points in their usual cubic order. The first and last points are the segment endpoints; the two middle controls determine its tangents and shape. All coordinates use one length unit, which also becomes the unit of an absolute arc-length target.

Choose fraction mode for a number between zero and one, or absolute mode for a traveled distance. An absolute request greater than the computed total is rejected. A fraction is converted into a target distance using the same total-length calculation, so a copied fraction is not interpreted as a parameter.

Why the default midpoint is special

The default controls form a curve symmetric about the vertical line through x equal to one-point-five. Its two halves have equal arc length. Therefore a half-length request happens to return parameter one-half and the curve point one-point-five, one-point-five.

The total length is approximately four-point-four-three-six-eight-two-eight-five-seven-two-six, and half of it is approximately two-point-two-one-eight-four-one-four-two-eight-six-three. This equality follows from symmetry rather than a general Bezier rule. Moving only one middle control normally breaks the equality between half parameter and half distance.

Integrating speed rather than coordinate change

The derivative of a cubic Bezier curve is a quadratic vector-valued function. Its Euclidean norm is speed, which is integrated from zero to the candidate parameter. Integrating x or y separately would instead measure coordinate displacement and could miss loops or changes in travel direction.

The implementation uses adaptive numerical quadrature for this speed integral. A scalar bisection then brackets the target because accumulated length is nondecreasing. It recomputes length at successive parameter candidates rather than assuming that straight-line chord length is a sufficiently accurate substitute for the actual traveled path.

Stationary points and zero-length curves

The speed can vanish at an isolated parameter without making accumulated arc length decrease. Such a point can make inverse travel locally sensitive, but monotone bracketing still avoids an unrestricted Newton step dividing by a tiny speed. A nonconstant polynomial curve cannot remain stationary throughout a whole parameter interval.

When all four controls coincide, the curve has zero total length and no unique parameter for zero travel. The calculator returns a declared representative rather than inventing a unique inverse. Small but nonzero curves are not silently replaced by this exact zero-length case; the integration scale follows the actual control differences.

Reading residuals and tolerances

The residual compares the numerically integrated travel at the returned parameter with the numerical target. It assesses consistency of the inversion under the chosen quadrature, not a formal enclosure of the true mathematical arc length. The number of displayed digits should not be read as an interval-certified accuracy guarantee.

A successful bisection can have a tiny residual even when the underlying speed integral has finite error. Compare stricter integration or independent high-precision evaluation when the result will drive precision machining or animation timing. An apparently exact midpoint in the symmetric example is a special checkable case, not universal evidence of exact quadrature.

Practical checks for a changed curve

For collinear controls progressing in one direction, arc length agrees with distance traveled along that line. Translating or rotating the curve should preserve the recovered parameter for the same fractional request. Scaling every control coordinate requires scaling an absolute target by the same positive factor.

Use the output to place a marker, inspect spacing or initialize a more elaborate path parameterization. This page treats one planar cubic segment only. It does not handle a multi-segment path's join rules, rational Bezier weights or a physical acceleration law along the curve.

A few questions, answered

Does target 0.5 mean t=0.5?

Only in fraction mode does it mean half the total travel, and the corresponding parameter is generally different.

Can speed vanish inside the curve?

Yes. Monotone length bracketing avoids dividing by speed as a Newton step would.

What if every control point is equal?

The total length is zero, and the interface returns a representative parameter with nonuniqueness stated.

Is the length exact?

No. It is an adaptive numerical speed integral with a consistency residual, not a certified interval enclosure.

Find your calculator

Start typing to explore the library.