Advanced maths

B spline curve calculator from control points and knot vector

A B-spline curve combines a knot vector, polynomial degree and control polygon.

Your numbers

Rows x,y; 2–16 controls.
Nondecreasing; count = controls + degree + 1.
Integer 1–5, below control count.
Within the closed base interval.
Strictly inside; current multiplicity below degree.

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 B-spline curve combines a knot vector, polynomial degree and control polygon. This calculator evaluates a clamped planar nonrational curve, its basis values and first derivative, then inserts one interior knot using affine control updates. The new representation is compared with the original at 101 parameter values to expose numerical reconstruction errors.

THE FORMULAC(u)=Σ_i N_i,p(u)P_i; N_i,p uses the Cox–de Boor recursion.

A worked example

For quadratic controls (0,0),(1,2),(2,0) and knots 0,0,0,1,1,1, the midpoint basis is (1/4,1/2,1/4). The curve point is (1,1), with derivative (2,0). Inserting 0.5 gives four controls (0,0),(0.5,1),(1.5,1),(2,0), preserving the same curve.

Good to know

Only clamped nonrational planar B-splines; 2–16 controls and degree 1–5. Interior knot multiplicity cannot exceed degree. Derivatives at internal knots use the right branch; the final endpoint uses the left-hand branch. No rational weights, NURBS surfaces or extrapolation.

Control points and curve points have different roles

Interior control points generally do not lie on the curve. They shape it through basis functions whose supports are determined by consecutive knot intervals. In the worked example, the middle control has height two while the curve midpoint has height one. Confusing the control polygon with interpolation data changes the mathematical problem.

The clamped end knots make the first and last controls the curve endpoints. Away from those endpoints, the active nonnegative basis functions sum to one. Their table provides a practical check of the evaluation: the curve coordinate is a weighted combination of the controls, not a separate polynomial fitted through all control points.

A quadratic spline bends below its middle control pointu = 0.5C(u) = (1,1)Tangent: (2,0)Inserted controls: (0,0), (0.5,1), (1.5,1), (2,0)
Controls (0,0),(1,2),(2,0), degree two and clamped knots give curve midpoint (1,1), with basis (1/4,1/2,1/4). Inserting knot 0.5 preserves the curve. The dashed control polygon is not the evaluated curve.

The Cubic Bézier curve calculator from control points covers a related task. This page focuses on b spline curve calculator from control points and knot vector with the method limits and worked example described below.

Repeated knots affect continuity and derivatives

A knot of multiplicity m reduces the continuity expected at that parameter to degree minus m, subject to the actual control configuration. A first derivative can jump when the allowed multiplicity reaches the degree. The page declares the branch used at a knot rather than silently averaging two potentially different tangent vectors.

The knot vector must have exactly control-count plus degree plus one entries. Both endpoint values occur degree plus one times. Nondecreasing order is essential because the recursive basis uses these intervals as denominators. Zero-width intervals contribute zero in the recursion; they are not an instruction to divide by zero.

Insertion changes the representation without changing the curve

A single inserted knot creates one additional control and updates only a local group of neighboring controls. The affine coefficients come from the old knot positions. Moving a control manually after insertion would change the curve; inserting a knot alone merely provides a finer representation for subsequent modeling work.

The 101-point comparison is a numerical regression check alongside the knot-insertion identity. It is not an interval proof over every real parameter. This workflow differs from the cubic Bézier calculator, which uses four controls and a fixed Bernstein basis rather than an editable knot vector with local support.

A few questions, answered

Is a NURBS curve supported?

No. All controls have implicit weight one; rational homogeneous-coordinate evaluation is outside this page.

Why insert a knot if the curve stays the same?

It adds local modeling freedom while preserving the initial geometric shape.

Find your calculator

Start typing to explore the library.