Shapes & spaces

Cubic Bézier curve calculator from control points

Evaluate a cubic Bézier point and derivative, split its control polygon and estimate arc length with a visible refinement gap.

Your numbers

One x,y pair per line. Use a decimal point, at most six decimal places, and no thousands separators. Coordinates must be within ±1,000,000.

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

A cubic Bézier curve is defined by two endpoints and two interior control points. The interior controls influence the tangents and shape but generally do not lie on the curve. This calculator evaluates the selected parameter, computes the derivative, returns the two control polygons after a de Casteljau split and estimates the full curve length. Related outputs stay together on one page rather than being split into several nearly identical calculators.

THE FORMULAB(t) = (1−t)³P0 + 3(1−t)²tP1 + 3(1−t)t²P2 + t³P3, for 0 ≤ t ≤ 1.

A worked example

For controls (0,0), (0,2), (2,2) and (2,0), parameter t = 0.5 gives point (1,1.5) and derivative (3,0). The point lies below the control polygon’s top edge. This particular curve has full arc length four; the numerical subdivision estimate approaches that value. Half the parameter interval is not generally half the arc length on an arbitrary curve.

Good to know

Exactly four planar controls are required within the supported coordinate grid and range. The parameter is limited to [0,1]. Length is a numerical approximation between subdivision chord and control-polygon sums, with a half-gap estimate and refinement status. These floating-point bounds are not certified interval enclosures. Rational curves, CSS easing inversion and three-dimensional controls are not modeled.

The controls shape the tangent, not a four-point interpolant

The curve begins at P0 and ends at P3. Its endpoint derivatives are 3(P1 − P0) and 3(P3 − P2), so moving the interior controls changes the initial and final tangent directions. In the default example those directions are vertical, while the midpoint derivative is horizontal. Requiring a polynomial to pass through four supplied observations is a different interpolation problem.

de Casteljau evaluation repeatedly interpolates neighboring controls using the same t. The resulting triangle of intermediate points yields the curve point and both subcurve control polygons. The left output runs from the original start to B(t); the right runs from B(t) to the original end. Each subcurve receives its own local parameter interval from zero to one, so derivative magnitudes under that reparameterization need not equal the original derivative.

The Bézier midpoint lies below its upper control points and has a horizontal tangentt = 1/2B(t) = (1,1.5)B′(t) = (3,0)
At t = 1/2, the default curve point is (1,1.5) with derivative (3,0). The straight control polygon is distinct from the cubic curve.

The Convex hull calculator from unordered points bounds the four controls; the Bézier curve remains in that convex hull throughout its parameter interval.

Arc length and the parameter measure different things

A constant increment in t does not usually move a constant distance along the curve. Speed is the length of B′(t), which changes with t. If B′(t) is zero, the selected point still exists but a tangent direction cannot be obtained by normalizing that zero vector. The calculator therefore reports derivative components directly rather than inventing an angle at a stationary point.

Length refinement uses a geometric comparison: every subcurve’s endpoint chord is a lower length bound, while its control-polygon length is an upper bound in real arithmetic. Repeated subdivision narrows the total gap. The result shows the midpoint estimate, half-gap and convergence status, while the step details expose both sums. Extremely difficult configurations may reach a refinement limit, which remains visible. The plotted curve is sampled for display; that drawing sample is not the algorithm used to estimate length.

A few questions, answered

Does t = 0.5 always split length equally?

No. It splits the parameter interval equally. Equal arc-length splitting requires solving an additional distance-along-curve problem.

Can control points repeat?

Yes. Repeated controls can create stationary endpoints or even a constant curve. The point and derivative remain meaningful, although a zero derivative has no direction.

Find your calculator

Start typing to explore the library.