New: 36 free tools for Unreal Engine and Unity developers.Try them →

Easing Functions for Game Developers: Which One to Use When

What easing functions are, how ease in, ease out and ease in-out feel, and which easing curves work best for UI, cameras, pickups and game feel.

In this article
  1. What an easing function does
  2. The three families
  3. The curve shapes
  4. Which easing for which job
  5. Rules of thumb
  6. Seeing is understanding
  7. Built-in options in the engines
  8. Summary
  9. FAQ

Move a UI panel from A to B at a constant speed and it looks robotic. Make it start fast and slow down at the end, and suddenly it feels polished. That difference is an easing function, and choosing the right one is one of the cheapest ways to improve game feel.

What an easing function does

An animation has a progress value t that goes from 0 at the start to 1 at the end. Without easing, the object moves the same distance every frame (linear). An easing function reshapes that progress:

eased = Ease(t)              // t from 0 to 1
position = Lerp(start, end, eased)

The object still starts at A and ends at B at the same time, but its speed changes along the way.

The three families

FamilySpeedFeels likeUse for
Ease outFast → slowArrives softlyThings entering the screen, UI appearing
Ease inSlow → fastAccelerates awayThings leaving the screen
Ease in-outSlow → fast → slowNatural movementMoving between two on-screen places, cameras

A simple rule: ease out when appearing, ease in when leaving, ease in-out when moving across.

The curve shapes

Each family comes in several strengths, named after the maths behind them:

  • Sine: very gentle.
  • Quad, Cubic, Quart, Quint: progressively stronger acceleration.
  • Expo: very sharp.
  • Circ: quick, then a long tail.
  • Back: goes slightly past the target and comes back (overshoot).
  • Elastic: springs back and forth like a rubber band.
  • Bounce: bounces at the end like a dropped ball.

Which easing for which job

SituationTry
UI panels sliding ineaseOutCubic, easeOutQuart
Buttons and pop-upseaseOutBack (a little overshoot feels alive)
Camera moveseaseInOutSine, easeInOutCubic
Coins and pickups landingeaseOutBounce
Springy, cartoon motioneaseOutElastic
Fading audio or lightseaseInOutQuad, easeOutExpo

Rules of thumb

  • Keep UI animations short: 150–400 ms. Players see menus hundreds of times.
  • Be consistent. Use one or two easings across your UI so it feels like one product.
  • Use overshoot sparingly. easeOutBack on everything becomes tiring.
  • Do not ease gameplay input. Character movement that responds to the stick should feel immediate; easing belongs to transitions, cameras and feedback.

Seeing is understanding

Easing names are hard to imagine from text. The free Easing Functions & Curves tool shows 31 easings side by side with live previews and curves, so you can compare easeOutCubic and easeOutQuart in a second. It also gives ready-to-use code for Unity C#, Unreal C++ and JavaScript, using the standard Robert Penner formulas, so names match most tweening libraries.

Built-in options in the engines

  • Unity: AnimationCurve fields let you draw curves in the Inspector; tween libraries such as DOTween use the same easing names.
  • Unreal Engine: Blueprints have an Ease node, and Timelines with curve assets let you draw any curve.

Summary

  • Easing reshapes progress from 0 to 1 before you lerp.
  • Ease out to appear, ease in to leave, ease in-out to move across.
  • easeOutCubic for UI, easeOutBack for buttons, easeInOutSine for cameras.
  • Keep UI animations at 150–400 ms and stay consistent.

Frequently asked questions

What is an easing function?

A function that takes linear progress from 0 to 1 and returns an eased progress value. Feeding that value into a lerp makes motion speed up or slow down instead of moving at a constant speed.

What is the difference between ease in and ease out?

Ease in starts slowly and speeds up, so motion ends abruptly. Ease out starts fast and slows down, so it lands softly. Ease in-out does both.

Which easing is best for UI animations?

Ease out curves such as easeOutCubic or easeOutQuart feel responsive and smooth. Use easeOutBack for a small, friendly overshoot on buttons and pop-ups.

How long should UI animations be?

Usually 150 to 400 milliseconds. Shorter feels snappy, longer starts to feel sluggish, especially for things players see many times.

  • #animation
  • #game feel
  • #ui
Written by Renish

Indie Unreal Engine developer and founder of Tvashta Studio. Builds the Shopping Simulator Kit plugin in UE5 C++ and the free tools on this site, and writes these guides from that work for Unreal Engine and Unity developers. More about the studio.

Related articles

All articles →