Easing Functions
Functions that bend the progress of time from 0 to 1 so motion starts or stops gently.
smoothstep(t) = t²(3 − 2t) easeInQuad(t) = t²
easeIn starts slowly, easeOut ends slowly and easeInOut does both.
smoothstep is a cubic polynomial whose speed is zero at both ends.
Calculator
Change a value and the result and picture update instantly.
Result
linear
easeInQuad
smoothstep
easeInOutCubic
Animated picture
The picture follows your values. Some points and shapes can be dragged.
Use in game development
Menus sliding in, camera moves and counting-up numbers look natural with easing.
Code example (JavaScript)
const e = t * t * (3 - 2 * t); // smoothstep
x = lerp(startX, endX, e);
What the symbols mean
| Symbol | Meaning |
|---|---|
t | Time t (0–1) |
linear | linear |
quad | easeInQuad |
smooth | smoothstep |
cubic | easeInOutCubic |
More formulas in this category
- Rectangle Collision (AABB)
- Circle Collision
- Linear Interpolation (lerp)
- Cubic Bézier Curves
- Projectile Path
- Reflection Vector
- Pseudo-Random Numbers (xorshift)
Frequently asked questions
- What is the formula for Easing Functions?
- The formula for Easing Functions is smoothstep(t) = t²(3 − 2t) easeInQuad(t) = t². Functions that bend the progress of time from 0 to 1 so motion starts or stops gently.
Math Formula Quiz Math for Game Development
Sources
Checked: 2026-11-29