Formula
y = y₁ + (x - x₁) × (y₂ - y₁) / (x₂ - x₁)
Worked example
With these values
- x₁
- 10
- y₁
- 100
- x₂
- 20
- y₂
- 180
- x
- 14
The calculator gives
- Interpolated y
- 132
- Slope
- 8
These values are only an illustration. Replace them with yours in the form above.
How "Interpolated y" changes with "x₁"
| x₁ | Interpolated y |
|---|---|
| 5 | 148 |
| 8 | 140 |
| 10 | 132 |
| 12 | 120 |
| 15 | 84 |
All other values stay as in the example.
How to use this calculator
Change any value: results update as you type. Copy a result with one click, or share a link that keeps all your values.
Read the guide
Questions
How is the result calculated?
The calculator applies this rule: y = y₁ + (x - x₁) × (y₂ - y₁) / (x₂ - x₁)
Is it free?
Yes. It is free, needs no account, and works on phone and desktop.
Are my numbers stored?
Everything runs in your browser. Nothing you type is sent to a server.