This account already has saved data. Do you want to keep this device's data, or use your account's saved data?
Appearance
Unit System
Temperature Format
Time Format
Linear Interpolation
Estimated y
Estimated y
Your Recent & Past Results
Restored a past calculation.
Compare Calculations
Side-by-Side Comparison
A comparison of your calculations' results.
Downloads
Includes your inputs and results for this calculation, plus any additional calculations you've compared.
Share & Print
The link includes your inputs and results, so anyone who opens it sees this exact calculation.
Estimating a Value Between Two Known Points
Linear interpolation estimates an unknown value between two known points, assuming a straight-line relationship between them. Enter two known (x, y) points and the x value you want an estimate for, and this calculator finds the corresponding y.
The Formula
y=y1+(x−x1)⋅x2−x1y2−y1
where (x1,y1) and (x2,y2) are your two known points and x is the value you want an estimate for.
Worked Example
A car is at 50 miles at 2 hours, and 140 miles at 5 hours. Where was it at 3.5 hours?
y=50+(3.5−2)⋅5−2140−50=50+1.5⋅30=95 miles
Key Factors to Consider
Interpolating between two points is generally more trustworthy than extrapolating beyond
them. A target x value that falls between your two known points stays within the range the
relationship was actually observed, while a target outside that range assumes the same
straight-line trend continues unchanged — an assumption that gets riskier the further outside
the known range you go.
This method is exact for a truly linear relationship, and only an approximation otherwise.
A physical process with constant speed, a fixed rate, or any genuinely straight-line
relationship gives an exact answer through this formula — but most real-world processes (like
compound growth or acceleration) actually curve, so the further apart your two known points are,
the more a straight-line estimate can diverge from reality partway between them.
Reference tables (like lookup tables in engineering, steam tables, or actuarial tables)
commonly rely on linear interpolation between listed values. Rather than publishing every
possible input value, a table lists a manageable set of known points and expects the reader to
interpolate between them — this is one of the most common practical uses of this exact
technique.
Adding a third known point can reveal whether linearity is actually a reasonable assumption.
If a third point you know falls close to the line drawn between the other two, linear
interpolation is probably reliable in that range — if it falls far off that line, the underlying
relationship likely curves and a straight-line estimate should be treated with more caution.
Common Mistakes
Extrapolating far beyond the known range and treating the result with the same confidence as
interpolation. A target value outside your two known points assumes the trend keeps going
unchanged — a much riskier assumption than estimating a value that actually falls between them.
Assuming a straight-line relationship without checking whether the real process is actually
linear. Processes like compound growth or acceleration curve rather than follow a straight
line, so a linear estimate can be noticeably wrong, especially far from the known points.
Mixing up which known point is which. Swapping x1/y1 with x2/y2 in the formula produces a
different (and wrong) slope — double-check that each known point’s x and y values are entered
together correctly.
Using two known points that are very far apart when the underlying relationship isn’t
linear. The wider the gap between your two points, the more room there is for a curve to
diverge from the straight line connecting them — closer, more relevant known points generally
produce a more trustworthy estimate.
Useful to Know
Have several data points instead of just two, and want the single best-fitting line through
all of them? The Least Squares Regression Calculator calculator handles that broader
case.
Need the slope between two points rather than an estimated value at a third? The
Distance, Midpoint & Slope Calculator calculator covers that directly.
Estimar un Valor Entre Dos Puntos Conocidos
La interpolación lineal estima un valor desconocido entre dos puntos conocidos, asumiendo una
relación de línea recta entre ellos. Ingresa dos puntos conocidos (x, y) y el valor de x para el
que quieres una estimación, y esta calculadora encuentra la y correspondiente.
La fórmula
y=y1+(x−x1)⋅x2−x1y2−y1
donde (x1,y1) y (x2,y2) son tus dos puntos conocidos y x es el valor para el que
quieres una estimación.
Ejemplo resuelto
Un auto está a 50 millas a las 2 horas, y a 140 millas a las 5 horas. ¿Dónde
estaba a las 3.5 horas?
y=50+(3.5−2)⋅5−2140−50=50+1.5⋅30=95 millas
Factores Clave a Considerar
Interpolar entre dos puntos generalmente es más confiable que extrapolar más allá de ellos.
Un valor objetivo de x que cae entre tus dos puntos conocidos permanece dentro del rango donde la
relación realmente se observó, mientras que un objetivo fuera de ese rango asume que la misma
tendencia de línea recta continúa sin cambios — una suposición que se vuelve más arriesgada mientras
más te alejes del rango conocido.
Este método es exacto para una relación verdaderamente lineal, y solo una aproximación en caso
contrario. Un proceso físico con velocidad constante, una tasa fija, o cualquier relación
genuinamente de línea recta da una respuesta exacta con esta fórmula — pero la mayoría de los
procesos del mundo real (como el crecimiento compuesto o la aceleración) en realidad se curvan, así
que mientras más separados estén tus dos puntos conocidos, más puede divergir una estimación de
línea recta de la realidad en algún punto intermedio.
Las tablas de referencia (como tablas de consulta en ingeniería, tablas de vapor, o tablas
actuariales) comúnmente dependen de la interpolación lineal entre valores listados. En lugar de
publicar cada valor de entrada posible, una tabla lista un conjunto manejable de puntos conocidos y
espera que el lector interpole entre ellos — este es uno de los usos prácticos más comunes de esta
técnica exacta.
Agregar un tercer punto conocido puede revelar si la linealidad es realmente una suposición
razonable. Si un tercer punto que conoces cae cerca de la línea trazada entre los otros dos, la
interpolación lineal probablemente es confiable en ese rango — si cae lejos de esa línea, la
relación subyacente probablemente se curva y una estimación de línea recta debería tratarse con
más precaución.
Errores Comunes
Extrapolar muy fuera del rango conocido y tratar el resultado con la misma confianza que una
interpolación. Un valor objetivo fuera de tus dos puntos conocidos asume que la tendencia
continúa sin cambios — una suposición mucho más arriesgada que estimar un valor que realmente
cae entre ellos.
Asumir una relación de línea recta sin verificar si el proceso real es realmente lineal.
Procesos como el crecimiento compuesto o la aceleración se curvan en lugar de seguir una línea
recta, así que una estimación lineal puede estar notablemente equivocada, especialmente lejos de
los puntos conocidos.
Confundir cuál punto conocido es cuál. Intercambiar x1/y1 con x2/y2 en la fórmula produce
una pendiente diferente (y errónea) — verifica dos veces que los valores x e y de cada punto
conocido se ingresaron juntos correctamente.
Usar dos puntos conocidos muy alejados entre sí cuando la relación subyacente no es lineal.
Cuanto más amplia sea la brecha entre tus dos puntos, más espacio hay para que una curva se
desvíe de la línea recta que los conecta — puntos conocidos más cercanos y relevantes
generalmente producen una estimación más confiable.
Útil Saber
¿Tienes varios puntos de datos en lugar de solo dos, y quieres la única línea que mejor se
ajuste a todos ellos? La Calculadora de Regresión por Mínimos Cuadrados maneja ese caso más amplio.
Linear interpolation estimates an unknown value between two known data points by assuming the relationship between them follows a straight line. If you know a car's position at 2 hours and at 5 hours, linear interpolation estimates where it was at 3.5 hours, assuming a constant speed the whole way.
What's the difference between interpolation and extrapolation?
Interpolation estimates a value that falls BETWEEN your two known points, which is generally reliable. Extrapolation estimates a value OUTSIDE that range, which assumes the same straight-line trend keeps going beyond what you actually observed -- a riskier assumption the further you go. This calculator flags which one your result actually is.
When is linear interpolation not accurate?
Linear interpolation assumes a straight-line relationship between your two points. If the real relationship curves (like compound interest, population growth, or acceleration), a straight-line estimate can be noticeably off -- especially the further your target value is from the two known points.
What are some real-world uses of linear interpolation?
It's commonly used to read values off reference tables (like engineering lookup tables or actuarial tables) that only list a limited set of known points, to estimate a missing data point in a time series, and in computer graphics to smoothly blend between two values (like colors or positions) over a range.
How can I tell if a straight-line estimate is reasonable for my data?
If you have a third known point, check how close it falls to the straight line drawn between your other two points. A close match suggests the relationship really is roughly linear in that range; a big gap suggests the underlying relationship curves, and a linear interpolation estimate should be treated with more caution.
We use cookies for analytics and ads to help support this free site. You can accept all, or decline and we'll only use what's needed for the site to work.