This calculator performs linear interpolation to find an unknown value (Y) for a specific point (X) that lies on a straight line connecting two known points.
Enter the coordinates for the two known points (Point 1 and Point 2) and the target X-value to find its corresponding Y-value on the line.
The Formula Used
The calculation is based on the classic linear interpolation formula:
Y = Y₁ + (X - X₁) * (Y₂ - Y₁) / (X₂ - X₁)
Where:
- (X₁, Y₁) are the coordinates of the first point.
- (X₂, Y₂) are the coordinates of the second point.
- X is the target point where the value is to be estimated.
- Y is the resulting interpolated value.
Example
Let's find the value at the midpoint of a line segment defined by two points.
- First Point (X₁, Y₁): (0, 0)
- Second Point (X₂, Y₂): (10, 100)
- Target X: 5
The calculator will determine that the target X (5) is exactly halfway between X₁ (0) and X₂ (10). It then calculates the corresponding Y-value, which will also be halfway between Y₁ (0) and Y₂ (100).
Result: The interpolated value (Y) is 50.