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)
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
| Symbol | Meaning |
|---|---|
p0 | P₀ |
p1 | P₁ |
p2 | P₂ |
p3 | P₃ |
t | t (0–1) |
v | B(t) |
More formulas in this category
- Rectangle Collision (AABB)
- Circle Collision
- Linear Interpolation (lerp)
- Easing Functions
- Projectile Path
- Reflection Vector
- Pseudo-Random Numbers (xorshift)
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