OhMyCalc

Interpolation Calculator

Perform linear interpolation between two points. Given (x0,y0) and (x1,y1), find y for any x between them.

How to Use the Interpolation Calculator

  1. Enter the first point (x₀, y₀) and the second point (x₁, y₁).
  2. Enter the target x value.
  3. Click Interpolate to find y and see the line equation.

クイックリファレンス

変換元変換先
(0,0)–(10,100), x=5y = 50
(1,2)–(3,8), x=2y = 5
(0,32)–(100,212), x=37y = 98.6
(10,50)–(20,100), x=15y = 75

使用例

計算式

y = y0 + (y1 − y0) × (x − x0) / (x1 − x0). Slope = (y1 − y0) / (x1 − x0).

よくある質問

What is linear interpolation?
Estimating a value between two known data points by assuming a straight line connects them.
Can x be outside the range?
Yes, but that becomes extrapolation and may be less accurate. Use the extrapolation calculator for that.
What if x0 equals x1?
The two points must have different x values to define a line.