When to use this calculator
Estimate a value on the straight line between two measured points. Distinct x coordinates are required. Outside the interval, this is linear extrapolation.
Explore the algebra & number calculators for other questions in this topic. For a related calculation, use the Logarithm Calculator: Find the exponent needed to produce a number in a chosen base.
PUTTING IT INTO PRACTICE
Linear Interpolation: a worked example
The values below are an illustrative example, not a recommendation. Replace them with measurements or assumptions that match your question.
| Input | Example value |
|---|---|
| First x | 0 |
| First y | 10 |
| Second x | 10 |
| Second y | 30 |
| Target x | 5 |
| Result | 20 |
- Check the input labels and enter the example values above.
- Apply the relationship: y = y₁ + (x−x₁)(y₂−y₁)/(x₂−x₁).
- The result is 20 , rounded for display.
How to interpret your result
Distinct x coordinates are required. Outside the interval, this is linear extrapolation.
Identify whether the question asks for one term, a total or a count of possible selections. Sequences use a fixed difference or ratio. In counting problems, order and replacement determine the correct model.
Frequently asked questions
Do combinations and permutations count the same thing?
No. Combinations ignore the order of selection; permutations count different orders separately.
When is the linear interpolation calculator useful?
Estimate a value on the straight line between two measured points. Distinct x coordinates are required. Outside the interval, this is linear extrapolation.
How do I use the linear interpolation calculator?
Enter first x, first y, second x, second y, target x. The result updates automatically. Use the units shown beside each input; the example values illustrate the method.
Which formula does this calculator use?
y = y₁ + (x−x₁)(y₂−y₁)/(x₂−x₁).
What should I check before using the result?
Distinct x coordinates are required. Outside the interval, this is linear extrapolation.
How are results rounded?
Scalar numbers display up to six decimal places, with scientific notation for very large or small values. Text, fraction, date and schedule outputs use the format described on the tool. Intermediate calculations use JavaScript floating-point arithmetic. Keep sensible precision for your measurements.
Calculators Map editorial process · Updated · Methods and limitations