Linear Interpolation Calculator

LERP between two values

CalculatorsFreeNo Signup
4.7(680 reviews)
All Tools

Loading tool...

About Linear Interpolation Calculator

A linear interpolation (LERP) calculator that finds intermediate values between two known points. Enter two endpoints and a parameter t (0–1) to find the interpolated value. Also supports extrapolation (t outside 0–1) and table-based interpolation with multiple data points. All calculations are client-side. Essential for animation, game development, data analysis, and engineering.

Linear Interpolation Calculator Features

  • LERP formula
  • t parameter
  • Extrapolation
  • Table lookup
  • Visual slider
Linear interpolation (LERP) estimates a value between two known points: lerp(a, b, t) = a + t(b − a), where t∈[0,1]. At t=0, result=a. At t=1, result=b. At t=0.5, result=midpoint. Used everywhere: animation easing, color blending, sensor data, financial projections.

How to Use

Enter endpoints and parameter:

  • a: Start value
  • b: End value
  • t: Parameter (0 to 1)

Formula

  • lerp(a,b,t) = a + t(b−a)
  • lerp(a,b,t) = (1−t)a + tb
  • Both forms are equivalent

Applications

  • Animation: smooth transitions
  • Colors: gradient blending
  • Game dev: smooth movement
  • Data: filling gaps between measurements

Step-by-Step Instructions

  1. 1Enter start value (a).
  2. 2Enter end value (b).
  3. 3Set parameter t (0–1).
  4. 4View the interpolated result.
  5. 5Drag the slider to explore.

Linear Interpolation Calculator — Frequently Asked Questions

What happens when t is outside 0–1?+

That's extrapolation. t<0 goes below a, t>1 goes above b. The formula still works, but you're estimating beyond the known range.

How is LERP used in animation?+

Smoothly transition between positions, colors, or values. Each frame: current = lerp(start, end, t), where t increases from 0 to 1 over the animation duration.

What's the difference between interpolation and extrapolation?+

Interpolation estimates between known points (safe). Extrapolation predicts beyond known points (risky). Linear extrapolation assumes the trend continues, which may not be true.

Share this tool: