Math & Statistics Calculator
Linear Interpolation Calculator
Enter two points to estimate y from x or find x from y. See the result on the graph and calculate a list of values for CSV export.
Known points
View graph · Calculate a list · Try the 4–20 mA example
Interpolation results
This is a straight-line estimate, not a statistical confidence interval.
See the line and your result
The solid segment joins the known points. A dashed extension marks extrapolation.
Calculate several x values
Enter one x per line, or separate values with semicolons. A decimal comma is allowed. Up to 100 values.
Enter x values to build a comparison table.
| X | Estimated y | Range | Position |
|---|
CSV exports use a dot as the decimal separator.
Calculation, step by step
A moving point shows linear interpolation
Interpolation formula
The calculator uses y = y1 + (x - x1) x (y2 - y1) / (x2 - x1). This is the straight-line estimate between the two known points.
It also reports the slope and y-intercept so the line equation can be reused.
Practical uses
- Estimate values from tables, charts or lab readings.
- Fill missing values between two measurements.
- Estimate a process value from two known points on a linear sensor signal.
Example with a 4–20 mA signal
A linear pressure transmitter maps 4 mA to 0 bar and 20 mA to 10 bar. At 12 mA, the signal is halfway through its range, so the estimated pressure is 5 bar. In reverse, 5 bar maps to 12 mA.
Load this example in the interpolator · Open the same example in the 4–20 mA converter
Linear Interpolation Calculator FAQ
What is linear interpolation?
Linear interpolation estimates a value between two known points by assuming the change between them is a straight line.
What is extrapolation?
Extrapolation means the target value is outside the known x range. The calculator still computes it, but uncertainty is higher.
Can this calculator solve for x from y?
Yes. Enter a target y value and it calculates the corresponding x when the line is not flat.
What formula does it use?
It uses y = y1 + (x – x1) x (y2 – y1) / (x2 – x1).
Math & Statistics directory
Need another math or statistics tool?
Browse the full math and statistics calculator collection for percentages, algebra, geometry, probability, z-scores, confidence intervals, regression, correlation, percentiles, matrices, and number conversions.
