Cubic Bézier Curves

A smooth curve defined by four control points.

B(t) = (1−t)³P₀ + 3(1−t)²t P₁ + 3(1−t)t² P₂ + t³P₃

The curve starts at P₀, ends at P₃ and is pulled toward P₁ and P₂.

Use the same formula separately for x and y. The tool computes one component.

Calculator

Change a value and the result and picture update instantly.

Result

B(t)0.0625

Animated picture

The picture follows your values. Some points and shapes can be dragged.

Use in game development

Enemy flight paths, camera rails, vector art and CSS cubic-bezier easing all use it. Drag the points in the picture.

Code example (JavaScript)

const u = 1 - t;
const x = u*u*u*p0.x + 3*u*u*t*p1.x + 3*u*t*t*p2.x + t*t*t*p3.x;

What the symbols mean

SymbolMeaning
p0P₀
p1P₁
p2P₂
p3P₃
tt (0–1)
vB(t)

More formulas in this category

Frequently asked questions

What is the formula for Cubic Bézier Curves?
The formula for Cubic Bézier Curves is B(t) = (1−t)³P₀ + 3(1−t)²t P₁ + 3(1−t)t² P₂ + t³P₃. A smooth curve defined by four control points.

Math Formula Quiz Math for Game Development

Sources

Checked: 2026-11-29