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

linear0.25
easeInQuad0.0625
smoothstep0.15625
easeInOutCubic0.0625

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

SymbolMeaning
tTime t (0–1)
linearlinear
quadeaseInQuad
smoothsmoothstep
cubiceaseInOutCubic

More formulas in this category

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