Geometry • Parametric Curves & Vector Splines

Bézier Curve Calculator

Plot interactive quadratic, cubic, and higher-degree Bézier splines, evaluate De Casteljau recursive linear interpolations, measure tangent velocity and curvature, export clean SVG paths, and test CSS cubic-bezier() animation easings.

|
Last Updated: November 2026
|
Verified Accurate: Mathematical & Computational Rigor
Points: 4 Degree: 3 (Cubic) Arc Length: 0 px
Click empty space to add points; drag handles to reshape
t = 0.500 B(t) = (340.0, 135.0)
Curve Presets

Control Point Manager

100
3 px
Control Point Coordinates (0–700, 0–460)
SVG Path Code
 
Direct Answer & Overview
Verified Educational Guide

Bézier Curve Definition and Standard Formulas

A Bézier curve is a parametric polynomial curve controlled by n + 1 points P₀ through Pₙ via Bernstein basis weights. As parameter t moves from 0 to 1, the curve interpolates smoothly from start anchor P₀ to end anchor Pₙ while curving toward the intermediate handles inside their convex hull.

Primary Mathematical Formula Standard Cubic Bézier Curve (Order 3, Four Control Points)
Standard Equation
ƒ(x)
Q.E.D.
B(t)=(1−t)3P0+3(1−t)2tP1+3(1−t)t2P2+t3P3,t∈[0,1]\mathbf{B}(t) = (1 - t)^3\mathbf{P}_0 + 3(1 - t)^2 t\mathbf{P}_1 + 3(1 - t)t^2\mathbf{P}_2 + t^3\mathbf{P}_3, \quad t \in [0, 1]
Evaluated via De Casteljau recursive linear interpolation with exact Bernstein basis weights
Exact Formula
Input Parameters
Required
1
Control Points — Ordered anchor endpoints (P₀, Pₙ) and intermediate handles (P₁, ..., Pₙ₋₁)
2
Curve Order — Degree n = points − 1 (Linear, Quadratic, Cubic, or up to 9th-degree spline)
3
Parameter t — Normalized scalar t in [0, 1] controlling curve progress and subdivision
Expected Outputs
Calculated
Coordinate B(t) — Exact evaluated Cartesian coordinate (x(t), y(t)) on the spline
Velocity & Curvature — First-derivative tangent speed |B′(t)| and instantaneous curvature κ(t)
Production Exports — Ready-to-use SVG path d="..." strings, CSS cubic-bezier(), and PNG graphics
Worked Numerical Example
Instant Verification
Evaluate a cubic Bézier curve at t = 0.5 for P₀(0, 0), P₁(0, 100), P₂(100, 100), P₃(100, 0).
→ Weights at t = 0.5 are 1/8, 3/8, 3/8, 1/8. B(0.5) = 0.125(0,0) + 0.375(0,100) + 0.375(100,100) + 0.125(100,0) = (50, 75).
Result: B(0.5) = (50, 75) | Tangent velocity B′(0.5) = (150, 0)

Parametric Definition and Bernstein Polynomial Basis

In computational geometry and computer-aided geometric design (CAGD), an explicit Cartesian equation of the form y=f(x)y = f(x) fails whenever a curve turns vertically, doubles back on itself, or forms a closed loop. Parametric representation solves this limitation by expressing each coordinate independently as a continuous function of a scalar parameter t∈[0,1]t \in [0, 1]. A Bézier curve of degree nn is defined by n+1n + 1 ordered control points P0,P1,…,Pn\mathbf{P}_0, \mathbf{P}_1, \dots, \mathbf{P}_n weighted by the Bernstein basis polynomials of degree nn:

B(t)=∑i=0nBi,n(t) Pi=∑i=0n(ni)(1−t)n−itiPi,0≤t≤1\mathbf{B}(t) = \sum_{i=0}^{n} B_{i,n}(t)\,\mathbf{P}_i = \sum_{i=0}^{n} \binom{n}{i} (1 - t)^{n - i} t^i \mathbf{P}_i, \qquad 0 \le t \le 1

Here (ni)=n!i!(n−i)!\binom{n}{i} = \frac{n!}{i!(n - i)!} denotes the binomial coefficient from Pascal’s triangle, ensuring smooth symmetric blending across the interval from t=0t = 0 to t=1t = 1.

Formulated independently in 1959 by French physicist and mathematician Paul de Casteljau at Citroën and popularized in 1962 by Renault engineer Pierre Bézier for sculpting automobile chassis surfaces, Bernstein-basis curves possess five structural properties that make them reliable for engineering software, coordinate geometry visualization, and real-time rendering pipelines:

Endpoint Interpolation and Tangency

At t=0t = 0, only B0,n(0)=1B_{0,n}(0) = 1 is nonzero, forcing B(0)=P0\mathbf{B}(0) = \mathbf{P}_0. At t=1t = 1, only Bn,n(1)=1B_{n,n}(1) = 1 is nonzero, forcing B(1)=Pn\mathbf{B}(1) = \mathbf{P}_n. Moreover, the curve leaves P0\mathbf{P}_0 tangent to segment P0P1‾\overline{\mathbf{P}_0\mathbf{P}_1} and arrives at Pn\mathbf{P}_n tangent to Pn−1Pn‾\overline{\mathbf{P}_{n-1}\mathbf{P}_n}.

Partition of Unity and Convex Hull Bound

By the binomial theorem, ∑i=0nBi,n(t)=((1−t)+t)n=1\sum_{i=0}^{n} B_{i,n}(t) = ((1 - t) + t)^n = 1 and every weight satisfies Bi,n(t)≥0B_{i,n}(t) \ge 0 for t∈[0,1]t \in [0, 1]. Because B(t)\mathbf{B}(t) is a convex combination of its control points, the curve never exits the convex hull polygon enclosing {P0,…,Pn}\{\mathbf{P}_0, \dots, \mathbf{P}_n\}—a property critical for bounding-box culling and collision checks.

Affine Transformation Invariance

Rotating, translating, scaling, or shearing a Bézier curve produces the exact same result whether you transform every evaluated curve point or simply transform the n+1n + 1 control points first and evaluate afterward: T(B(t))=∑Bi,n(t) T(Pi)T(\mathbf{B}(t)) = \sum B_{i,n}(t)\,T(\mathbf{P}_i).

Variation-Diminishing Property

No straight line in the plane can intersect a planar Bézier curve more times than it intersects the polyline formed by its control polygon. As a result, Bézier curves never introduce spurious high-frequency oscillations or ringing artifacts when control points are smoothly aligned.

Linear, Quadratic, Cubic, and Matrix Formulations

While Bernstein polynomials define curves of arbitrarily high degree, real-world graphics engines, CAD kernels, and typography standards standardize primarily on degree 1 (linear), degree 2 (quadratic), and degree 3 (cubic) Bézier segments. Higher-order geometries are typically constructed by chaining cubic segments together rather than raising the polynomial degree, which reduces computational cost and improves local editability.

Linear Bézier Curve (Degree 1, Two Points)

With two control points P0\mathbf{P}_0 and P1\mathbf{P}_1, the curve reduces to direct linear interpolation between endpoints, matching the formula used in our Linear Interpolation Calculator:

B(t)=(1−t)P0+tP1=P0+t(P1−P0),t∈[0,1]\mathbf{B}(t) = (1 - t)\mathbf{P}_0 + t\mathbf{P}_1 = \mathbf{P}_0 + t(\mathbf{P}_1 - \mathbf{P}_0), \qquad t \in [0, 1]

Quadratic Bézier Curve (Degree 2, Three Points)

Adding a single off-curve handle P1\mathbf{P}_1 yields a second-degree curve whose image is always a segment of a true mathematical parabola (compare with conic locus geometry in our Parabola Calculator):

B(t)=(1−t)2P0+2(1−t)tP1+t2P2\mathbf{B}(t) = (1 - t)^2 \mathbf{P}_0 + 2(1 - t)t\mathbf{P}_1 + t^2 \mathbf{P}_2

Its peak influence from handle P1\mathbf{P}_1 occurs at t=0.5t = 0.5, where the weights are (0.25,  0.50,  0.25)(0.25,\; 0.50,\; 0.25). Because a quadratic polynomial has a constant second derivative B′′(t)=2(P0−2P1+P2)\mathbf{B}^{''}(t) = 2(\mathbf{P}_0 - 2\mathbf{P}_1 + \mathbf{P}_2), a single quadratic segment cannot form an inflection point (S-curve).

Cubic Bézier Curve (Degree 3, Four Points) and Matrix Form

Four control points P0,P1,P2,P3\mathbf{P}_0, \mathbf{P}_1, \mathbf{P}_2, \mathbf{P}_3 yield the lowest-degree polynomial curve capable of non-planar 3D twisting, S-shaped inflection points, and self-intersecting loops:

B(t)=(1−t)3P0+3(1−t)2tP1+3(1−t)t2P2+t3P3\mathbf{B}(t) = (1 - t)^3\mathbf{P}_0 + 3(1 - t)^2 t\mathbf{P}_1 + 3(1 - t)t^2\mathbf{P}_2 + t^3\mathbf{P}_3 B(t)=[1tt2t3][1000−33003−630−13−31][P0P1P2P3]\mathbf{B}(t) = \begin{bmatrix} 1 & t & t^2 & t^3 \end{bmatrix} \begin{bmatrix} 1 & 0 & 0 & 0 \\ -3 & 3 & 0 & 0 \\ 3 & -6 & 3 & 0 \\ -1 & 3 & -3 & 1 \end{bmatrix} \begin{bmatrix} \mathbf{P}_0 \\ \mathbf{P}_1 \\ \mathbf{P}_2 \\ \mathbf{P}_3 \end{bmatrix}

Expressing B(t)\mathbf{B}(t) in monomial power-basis matrix form allows GPU vertex shaders and rasterizers to precompute polynomial coefficients at3+bt2+ct+d\mathbf{a}t^3 + \mathbf{b}t^2 + \mathbf{c}t + \mathbf{d} once per curve and evaluate points with minimal multiply-add operations.

Curve Type Control Points Inflection / Loops SVG / Font Standard Primary Advantage
Linear (Degree 1) 2 None SVG L Zero curvature; exact straight segments
Quadratic (Degree 2) 3 None (parabolic arc) SVG Q / TrueType (.ttf) Analytic arc length; rapid rasterization
Cubic (Degree 3) 4 Up to 2 inflections or 1 loop SVG C / OpenType (.otf) / CSS Independent start/end tangents; S-curves
Quartic / Quintic (4–5) 5–6 Multiple inflections Robotics / Motion Control Minimum-jerk & snap-continuous paths

De Casteljau’s Recursive Algorithm and Curve Subdivision

Evaluating high-degree polynomials directly in the monomial power basis ∑cktk\sum \mathbf{c}_k t^k can suffer from catastrophic floating-point cancellation when coefficients alternate with large magnitudes. De Casteljau’s algorithm avoids power expansion entirely by replacing algebra with a pyramid of convex linear interpolations between adjacent points. Given control points Pi(0)=Pi\mathbf{P}_i^{(0)} = \mathbf{P}_i, each recursive tier k=1,…,nk = 1, \dots, n computes:

Pi(k)(t)=(1−t) Pi(k−1)(t)+t Pi+1(k−1)(t),i=0,…,n−k\mathbf{P}_i^{(k)}(t) = (1 - t)\,\mathbf{P}_i^{(k-1)}(t) + t\,\mathbf{P}_{i+1}^{(k-1)}(t), \qquad i = 0, \dots, n - k
Tier 1 (3 segments for cubic) P0(1),  P1(1),  P2(1)\mathbf{P}_0^{(1)},\; \mathbf{P}_1^{(1)},\; \mathbf{P}_2^{(1)} connect the mid-ratios along the outer control polygon edges.
Tier 2 (2 segments for cubic) P0(2),  P1(2)\mathbf{P}_0^{(2)},\; \mathbf{P}_1^{(2)} define the exact tangent line touching the curve at B(t)\mathbf{B}(t).
Tier 3 (Final Curve Point) B(t)=P0(3)\mathbf{B}(t) = \mathbf{P}_0^{(3)} splits segment P0(2)P1(2)‾\overline{\mathbf{P}_0^{(2)}\mathbf{P}_1^{(2)}} in ratio t:(1−t)t : (1 - t).

Crucially, De Casteljau’s triangle simultaneously solves exact curve subdivision. The left diagonal of the triangle—P0(0),P0(1),P0(2),…,P0(n)\mathbf{P}_0^{(0)}, \mathbf{P}_0^{(1)}, \mathbf{P}_0^{(2)}, \dots, \mathbf{P}_0^{(n)}—forms the exact control polygon for the sub-curve spanning [0,t][0, t], while the right diagonal—P0(n),P1(n−1),…,Pn(0)\mathbf{P}_0^{(n)}, \mathbf{P}_1^{(n-1)}, \dots, \mathbf{P}_n^{(0)}—forms the exact control polygon for the remaining sub-curve spanning [t,1][t, 1]. Graphics renderers leverage this property recursively to flatten curves into adaptive line segments whenever the control polygon height falls below a half-pixel tolerance, and you can test this splitting behavior directly using the Split Left [0, t] action inside the De Casteljau Inspector tab above.

Derivatives, Curvature, Arc Length, and Spline Continuity

Understanding how a Bézier curve moves, bends, and joins neighboring segments requires differentiating the Bernstein polynomial with respect to tt—a foundational operation in parametric calculus that connects directly to our Derivative Calculator and Slope Calculator. Because the derivative of a degree-nn Bézier curve is another Bézier curve of degree n−1n - 1 scaled by nn, the first and second derivatives are written cleanly in terms of forward differences ΔPi=Pi+1−Pi\Delta \mathbf{P}_i = \mathbf{P}_{i+1} - \mathbf{P}_i:

B′(t)=n∑i=0n−1Bi,n−1(t) (Pi+1−Pi)\mathbf{B}'(t) = n \sum_{i=0}^{n-1} B_{i,n-1}(t)\,(\mathbf{P}_{i+1} - \mathbf{P}_i) κ(t)=x′(t) y′′(t)−y′(t) x′′(t)((x′(t))2+(y′(t))2)3/2,L=∫01(x′(t))2+(y′(t))2 dt\kappa(t) = \frac{x'(t)\,y''(t) - y'(t)\,x''(t)}{\left((x'(t))^2 + (y'(t))^2\right)^{3/2}}, \qquad L = \int_{0}^{1} \sqrt{(x'(t))^2 + (y'(t))^2}\,dt

From these equations, B′(0)=n(P1−P0)\mathbf{B}'(0) = n(\mathbf{P}_1 - \mathbf{P}_0) and B′(1)=n(Pn−Pn−1)\mathbf{B}'(1) = n(\mathbf{P}_n - \mathbf{P}_{n-1}). Notice that the magnitude of the tangent vector depends on the Euclidean distance between each anchor and its neighboring handle. Meanwhile, total curve length LL generally lacks an elementary closed-form integral for cubic splines and is evaluated numerically via Gauss-Legendre quadrature or adaptive chord summation, as explored in our Arc Length Calculator.

C⁰ Positional Continuity

Segment A’s end anchor equals Segment B’s start anchor (P3=Q0\mathbf{P}_3 = \mathbf{Q}_0). The path is connected, but can form a sharp corner cusp.

G¹ vs C¹ Tangent Continuity

Collinear handles (Q1−Q0=λ(P3−P2)\mathbf{Q}_1 - \mathbf{Q}_0 = \lambda(\mathbf{P}_3 - \mathbf{P}_2) with λ>0\lambda > 0) produce smooth G¹ visual tangency; setting λ=1\lambda = 1 (P3\mathbf{P}_3 at the exact midpoint of P2\mathbf{P}_2 and Q1\mathbf{Q}_1) enforces velocity-matched C¹ continuity.

G² Curvature Continuity

Required for Class-A automotive reflections and high-speed rail tracks: matching curvature κ(t)\kappa(t) across segment joins eliminates abrupt lateral acceleration jumps and optical reflection kinks.

CSS cubic-bezier() Easing Functions and SVG Path Syntax

Two of the most widespread daily uses of Bézier mathematics in front-end engineering are CSS timing functions and Scalable Vector Graphics (SVG) paths. Although both use four-point cubic formulations, their coordinate constraints and evaluation mechanics differ fundamentally.

CSS Easing: Time vs Progress

A CSS timing curve fixes P0=(0,0)\mathbf{P}_0 = (0, 0) and P3=(1,1)\mathbf{P}_3 = (1, 1), leaving four tunable scalar inputs (x1,y1,x2,y2)(x_1, y_1, x_2, y_2). Here x(t)x(t) represents normalized elapsed time and y(t)y(t) represents normalized output progress. Because every timestamp must map to a unique progress value, W3C CSS Easing Level 1 mandates 0≤x1,x2≤10 \le x_1, x_2 \le 1 so x(t)x(t) remains monotonic. Browsers invert x(t)=ux(t) = u numerically (Newton-Raphson plus bisection fallback) to find tt, then return y(t)y(t).

  • ease: cubic-bezier(0.25, 0.10, 0.25, 1.00)
  • ease-in: cubic-bezier(0.42, 0.00, 1.00, 1.00)
  • ease-out: cubic-bezier(0.00, 0.00, 0.58, 1.00)
  • ease-in-out: cubic-bezier(0.42, 0.00, 0.58, 1.00)

SVG Path Commands and Conic Approximations

Inside an SVG <path> element, quadratic Béziers use Q x1 y1, x2 y2 (with smooth mirrored continuation T x2 y2), while cubic Béziers use C x1 y1, x2 y2, x3 y3 (with smooth G¹ continuation S x2 y2, x3 y3). Notice that because polynomial Béziers cannot match exact circular or elliptical trigonometry, vector illustrators approximate a circle or ellipse using four cubic quadrants with handle distance κ=43(2−1)≈0.55228\kappa = \frac{4}{3}(\sqrt{2} - 1) \approx 0.55228 (read more in our Conic Sections Guide).

<path d="M 80,360 C 200,60 480,60 600,360"
  fill="none" stroke="#2563eb" stroke-width="3" />

Industry Applications in Typography, CAD, and Robotics

Beyond web design and SVG graphics, composite Bézier curves serve as the geometric backbone across precision manufacturing, font engineering, and autonomous motion planning:

Digital Typography (TrueType & OpenType)

TrueType (.ttf) and WOFF fonts store character outlines as chains of quadratic Bézier curves with implicit midpoints between consecutive off-curve handles, enabling rapid GPU signed-distance-field rendering. PostScript and CFF OpenType (.otf) fonts use cubic Béziers to model serif curves with fewer anchor points.

Aerospace & Automotive CAD Surfaces

Tensor-product Bézier patches—generalized into Non-Uniform Rational B-Splines (NURBS)—define fuselage skins, turbine blades, and automotive body panels. Surface normals and reflection lines are computed directly from partial derivatives and vector cross products along parametric (u,v)(u, v) grids.

Autonomous Robotics & Motion Control

Mobile robots, CNC toolpaths, and UAV drones generate collision-free corridors using quintic (degree-5) Bézier splines because they guarantee continuous position, velocity, and acceleration (C2C^2 continuity), minimizing mechanical jerk while keeping the robot safely inside the obstacle-free convex hull. Tangent alignment with desired headings relies on dot product and vector projection checks.

Step-by-Step Worked Numerical Problems

Worked Problem 1 • Quadratic Bernstein Evaluation Order 2 (3 Points)

Find the exact curve point and tangent vector at t=0.5t = 0.5 for P0(0,0)\mathbf{P}_0(0, 0), P1(50,100)\mathbf{P}_1(50, 100), and P2(100,0)\mathbf{P}_2(100, 0).

1. Evaluate the quadratic Bernstein weights at t=0.5t = 0.5: B0,2(0.5)=(1−0.5)2=0.25B_{0,2}(0.5) = (1 - 0.5)^2 = 0.25, B1,2(0.5)=2(0.5)(0.5)=0.50B_{1,2}(0.5) = 2(0.5)(0.5) = 0.50, and B2,2(0.5)=(0.5)2=0.25B_{2,2}(0.5) = (0.5)^2 = 0.25 (note 0.25+0.50+0.25=1.000.25 + 0.50 + 0.25 = 1.00).

2. Compute x(0.5)=0.25(0)+0.50(50)+0.25(100)=0+25+25=50x(0.5) = 0.25(0) + 0.50(50) + 0.25(100) = 0 + 25 + 25 = 50.

3. Compute y(0.5)=0.25(0)+0.50(100)+0.25(0)=0+50+0=50y(0.5) = 0.25(0) + 0.50(100) + 0.25(0) = 0 + 50 + 0 = 50.

4. Compute the first derivative B′(t)=2(1−t)(P1−P0)+2t(P2−P1)\mathbf{B}'(t) = 2(1 - t)(\mathbf{P}_1 - \mathbf{P}_0) + 2t(\mathbf{P}_2 - \mathbf{P}_1). At t=0.5t = 0.5, B′(0.5)=1(50,100)+1(50,−100)=(100,0)\mathbf{B}'(0.5) = 1(50, 100) + 1(50, -100) = (100, 0), confirming a horizontal apex tangent.

Result: B(0.5) = (50, 50) with horizontal tangent velocity B′(0.5) = (100, 0).

Worked Problem 2 • Cubic De Casteljau Subdivision Order 3 (4 Points)

Use De Casteljau’s algorithm at t=0.25t = 0.25 for P0(0,0)\mathbf{P}_0(0, 0), P1(0,80)\mathbf{P}_1(0, 80), P2(80,80)\mathbf{P}_2(80, 80), and P3(80,0)\mathbf{P}_3(80, 0).

1. Tier 1 interpolations (0.75Pi+0.25Pi+10.75\mathbf{P}_i + 0.25\mathbf{P}_{i+1}): P0(1)=(0,20)\mathbf{P}_0^{(1)} = (0, 20), P1(1)=(20,80)\mathbf{P}_1^{(1)} = (20, 80), and P2(1)=(80,60)\mathbf{P}_2^{(1)} = (80, 60).

2. Tier 2 interpolations: P0(2)=0.75(0,20)+0.25(20,80)=(5,35)\mathbf{P}_0^{(2)} = 0.75(0, 20) + 0.25(20, 80) = (5, 35) and P1(2)=0.75(20,80)+0.25(80,60)=(35,75)\mathbf{P}_1^{(2)} = 0.75(20, 80) + 0.25(80, 60) = (35, 75).

3. Tier 3 final point: B(0.25)=0.75(5,35)+0.25(35,75)=(12.5,45)\mathbf{B}(0.25) = 0.75(5, 35) + 0.25(35, 75) = (12.5, 45).

Result: B(0.25) = (12.5, 45); left sub-curve control points are (0, 0), (0, 20), (5, 35), (12.5, 45).

Worked Problem 3 • CSS cubic-bezier() Verification UI Animation Easing

Evaluate time and progress at t=0.5t = 0.5 for standard CSS cubic-bezier(0.25, 0.1, 0.25, 1.0) (ease).

1. Endpoints are fixed at P0=(0,0)\mathbf{P}_0 = (0, 0) and P3=(1,1)\mathbf{P}_3 = (1, 1), with P1=(0.25,0.1)\mathbf{P}_1 = (0.25, 0.1) and P2=(0.25,1.0)\mathbf{P}_2 = (0.25, 1.0).

2. At t=0.5t = 0.5, the cubic weights are (0.125,  0.375,  0.375,  0.125)(0.125,\; 0.375,\; 0.375,\; 0.125).

3. Elapsed time coordinate: x(0.5)=0.375(0.25)+0.375(0.25)+0.125(1)=0.3125x(0.5) = 0.375(0.25) + 0.375(0.25) + 0.125(1) = 0.3125 (31.25% of animation duration).

4. Property progress coordinate: y(0.5)=0.375(0.1)+0.375(1.0)+0.125(1)=0.5375y(0.5) = 0.375(0.1) + 0.375(1.0) + 0.125(1) = 0.5375 (53.75% of transition distance).

Result: By 31.25% elapsed duration, the CSS ease curve has already completed 53.75% of the motion.

Common Mathematical and Implementation Pitfalls

Assuming the Curve Passes Through Intermediate Control Handles

Only the start anchor P0\mathbf{P}_0 and end anchor Pn\mathbf{P}_n are guaranteed to lie on the curve. Intermediate points P1,…,Pn−1\mathbf{P}_1, \dots, \mathbf{P}_{n-1} govern tangent directions and curvature pull without being interpolated. When you need a smooth curve that passes directly through every waypoint, convert waypoints into Catmull-Rom or interpolating cubic Hermite spline segments first.

Confusing Parameter t with Constant Arc-Length Speed

Stepping tt uniformly (for example, incrementing by 0.01 per animation frame) rarely moves an object at uniform spatial speed because ∥B′(t)∥\|\mathbf{B}'(t)\| fluctuates with handle spacing. For constant-velocity motion along a track, precompute a cumulative chord-length lookup table and binary-search tt for each target arc distance.

Using Single High-Degree Curves Instead of Piecewise Cubic Splines

Increasing a single Bézier curve above degree 5 makes every control point exert weak global influence across the entire span and increases polynomial conditioning errors. Professional drawing tools keep individual segments at degree 3 and chain them with G1G^1 or C1C^1 handle alignment for localized editing control.

Computational Methodology and Editorial Standards

All numerical calculations inside this Bézier Curve Calculator execute locally in your browser using IEEE-754 double-precision floating-point arithmetic. Rather than expanding high-order monomial powers, every curve evaluation, animation frame, and subdivision split uses recursive De Casteljau interpolation to preserve precision near endpoints and inflection points. Arc length is approximated by adaptive composite chord summation across user-configurable step counts (20–200 segments), first-derivative tangent velocity and signed curvature κ(t)\kappa(t) are evaluated via central finite differences, and convex hull boundaries are constructed using Andrew’s monotone-chain algorithm.

Authoritative Mathematical & Specification References

  • Gerald Farin, Curves and Surfaces for CAGD: A Practical Guide (5th ed., Morgan Kaufmann) — Bernstein polynomial theory, De Casteljau subdivision, and geometric continuity.
  • Michael E. Mortenson, Geometric Modeling (3rd ed., Industrial Press) — Parametric cubic matrix representations and differential geometry.
  • W3C CSS Easing Functions Level 1 & SVG 2 Path Data Specifications — Normalized cubic-bezier() domain constraints and Q/C vector path grammar.
Fact-Checked & Verified • Computational Accuracy Standards
Updated November 2026 • Editorial Policy
Authored By
Sanjay Samanta

Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.

Reviewed & Verified By
Academic Review Board

Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.

Found an error or have an improvement suggestion? Report a calculation issue

Frequently Asked Questions

What is a Bézier curve in mathematics and computer graphics?
A Bézier curve is a parametric curve defined by an ordered sequence of control points P₀ through Pₙ weighted by Bernstein basis polynomials. Independently formalized by Paul de Casteljau at Citroën and popularized by Pierre Bézier at Renault in the 1960s, it guarantees smooth, affine-invariant geometry inside the convex hull of its control points, making it foundational for CAD surfacing, vector graphics, digital typography, and UI animation timing.
What is the difference between quadratic and cubic Bézier curve formulas?
A quadratic Bézier curve (degree 2, 3 control points) follows B(t) = (1 − t)²P₀ + 2(1 − t)tP₁ + t²P₂ and forms a single parabolic arc with no inflection points. A cubic Bézier curve (degree 3, 4 control points) follows B(t) = (1 − t)³P₀ + 3(1 − t)²tP₁ + 3(1 − t)t²P₂ + t³P₃, providing two intermediate handles that enable S-shaped inflection curves, loops, and independent entry and exit tangent angles.
How does De Casteljau’s algorithm evaluate and split a Bézier curve?
De Casteljau’s algorithm evaluates B(t) geometrically through repeated linear interpolations (lerps) between consecutive control points at ratio t : (1 − t) until a single point remains. Beyond superior numerical stability compared to direct polynomial expansion, the intermediate points along the left and right edges of the De Casteljau triangle directly supply the exact control polygons for splitting the curve into two sub-segments at any parameter t.
How do CSS cubic-bezier(x₁, y₁, x₂, y₂) easing functions work?
CSS cubic-bezier(x₁, y₁, x₂, y₂) represents a normalized cubic Bézier curve anchored at P₀ = (0, 0) and P₃ = (1, 1), where x represents normalized elapsed time and y represents animation progress. Because time cannot flow backward, W3C requires x₁ and x₂ to lie in [0, 1], whereas y₁ and y₂ may exceed [0, 1] to create anticipation pull-backs (y < 0) or spring overshoot bounces (y > 1).
Why are Bézier curves always contained inside the convex hull of their control points?
For every t in [0, 1], all Bernstein basis polynomials Bᵢ,ₙ(t) are non-negative and sum identically to 1 (the partition of unity property). Consequently, every evaluated point B(t) is a convex combination of the control points P₀, ..., Pₙ, which mathematically guarantees that the entire curve remains inside the smallest convex polygon enclosing its control points.
What is the difference between C¹ parametric continuity and G¹ geometric continuity?
Two joined Bézier segments share G¹ geometric continuity at their junction if their unit tangent vectors point in the exact same direction—meaning the shared endpoint and its two adjacent handles are collinear. They achieve stronger C¹ parametric continuity only if the tangent velocity vectors match in both direction and magnitude, requiring equal handle lengths on both sides of the junction.
Why does changing parameter t at a constant rate not produce constant speed along the curve?
In a general Bézier curve, the speed magnitude ||B′(t)|| varies across t ∈ [0, 1] depending on how unevenly the control handles are spaced. Uniform steps in t therefore cause markers to accelerate or decelerate along the path. Achieving constant physical velocity requires arc-length reparameterization using numerical integration and lookup-table inversion.
Can a cubic Bézier curve represent an exact circle or ellipse?
A non-rational polynomial Bézier curve cannot represent a circular arc with zero error because circular trigonometric functions are transcendental rather than polynomial. However, a four-segment cubic Bézier approximation using handle offset k = (4/3)(√2 − 1) ≈ 0.55228475 times the radius matches a true circle to within 0.027% radial error, while rational NURBS curves represent conics exactly.