Linear Interpolation Calculator
Two modes: simple two-point interpolation, or paste a table and query any value. Linear, log-x, log-y, and log-log interpolation. Inverse interpolation supported. Live plot. Built for engineering table lookups — steam tables, soil curves, friction factor charts.
Try an example:
Why linear interpolation matters in engineering
Engineering reference data is published in tables — steam tables, soil consolidation curves, Moody friction factor charts, AISC steel section properties, atmospheric standard tables. Real design conditions almost never land exactly on a tabulated value. You're forever interpolating between rows.
Linear interpolation is the simplest, most-used technique. For most engineering tables, the underlying physical relationship is smooth enough that linear interpolation between adjacent tabulated points is accurate to within ~1%. When the relationship is exponential or power-law, log interpolation does better.
When to use which method
- Linear: default. Most appropriate for relationships that are nearly linear over the interval being interpolated. Manning's roughness vs. surface condition, thermal conductivity vs. temperature, beam deflection vs. load.
- Log-x, linear-y: when the independent variable spans orders of magnitude (Reynolds number, frequency, time) and the dependent variable changes slowly with x. Common for friction factor vs. Reynolds for a fixed roughness.
- Linear-x, log-y: when the dependent variable changes exponentially. Vapor pressure vs. temperature (over modest ranges), radioactive decay, settlement vs. time in primary consolidation.
- Log-log: when both variables span orders of magnitude and the relationship is power-law. Sediment transport rate vs. shear stress, scaling laws in biology, frequency response of mechanical systems.
The accuracy question
Linear interpolation introduces error proportional to the second derivative of the underlying function and the square of the interval width. For a smooth, monotonic curve where consecutive table entries differ by a few percent, the error is typically much less than the precision of the tabulated values themselves. For sharply curved relationships (e.g., vapor pressure of water over wide temperature ranges) or when the function has an inflection nearby, switch to log interpolation or use a tighter table.
Inverse interpolation
The inverse mode solves "given y, find x" — useful when looking up the temperature corresponding to a measured saturation pressure, or the Reynolds number that produces a specific friction factor. The math is the same equation rearranged. Watch for non-monotonic functions: if y is not monotonic over the interval, inverse interpolation can give multiple valid answers; this calculator returns the one that falls within the bracketing x range.
Reference: Press, W.H. et al. (2007). Numerical Recipes: The Art of Scientific Computing (3rd ed.), Chapter 3. For engineering table interpolation conventions, see Crane Technical Paper 410 and ASTM E380 for SI-conversion practices.
Related tools
- Darcy-Weisbach pipe head loss (uses friction factor — interpolate from a Moody-style table)
- Manning's open-channel flow
- Reynolds number flow regime