If this tool helped you, you can buy us a coffee ☕
根据已知两点坐标,快速计算中间点线性插值结果。
If the target x is between the two known points, it's interpolation. If it's outside this range, it's extrapolation (results may have larger errors).
Linear Interpolation Formula
y = y₁ + (x − x₁) · (y₂ − y₁) / (x₂ − x₁)
Alternative Form: y = y₁ + t · (y₂ − y₁)
Ratio: t = (x − x₁) / (x₂ − x₁)
Linear interpolation assumes a linear relationship between two points, best suited for data with gradual changes or within small intervals.
y = y₁ + (x − x₁) · (y₂ − y₁) / (x₂ − x₁)y = 10 + (3 − 1) · (30 − 10) / (5 − 1)y = 20y = 10 + 5 · (x - 1)
Prime and Composite Number Calculator
Instantly identify prime, composite, or special numbers. Supports batch checking and mathematical property analysis.

Inverse Trigonometric Function Calculator
Accurately calculate radian values for inverse trig functions like arcsin and arccos. Supports 6 function types and custom decimal precision.

Circle Area Calculator
Quickly calculate the area of a circle by entering the radius, diameter, or circumference. Supports custom units and precision settings.

Trigonometry Calculator
Calculate six trigonometric functions from radian values with custom decimal precision.

Prime and Composite Number Calculator
Instantly identify prime, composite, or special numbers. Supports batch checking and mathematical property analysis.

Inverse Trigonometric Function Calculator
Accurately calculate radian values for inverse trig functions like arcsin and arccos. Supports 6 function types and custom decimal precision.

Circle Area Calculator
Quickly calculate the area of a circle by entering the radius, diameter, or circumference. Supports custom units and precision settings.

Trigonometry Calculator
Calculate six trigonometric functions from radian values with custom decimal precision.

Least Common Multiple (LCM) Calculator
Quickly calculate the least common multiple (LCM) of two or more integers. Supports space-separated number list input.
在数据分析、工程估算或缺失值填充时,经常需要根据已知两点的数值关系推算中间未知点的值,手工计算不仅繁琐还容易出错。线性插值法计算器正是为解决这类痛点而生,您只需输入两个已知数据点的坐标 (x₁, y₁)、(x₂, y₂) 以及待求点的 x 值,工具会基于线性插值公式 y = y₁ + (y₂ - y₁)·(x - x₁)/(x₂ - x₁) 自动计算出对应的 y 值,并同步展示带代入数值的计算步骤,让结果清晰可复核。
请确保所有输入均为有效数字,支持小数和负数;插值计算一般用于 x 值位于已知两点横坐标之间的内插,若 x 超出该范围则属于外推,结果仍会给出,但外推精度可能随距离增加而下降;计算结果仅供参考,高精度场景请结合原始数据验证;本工具为纯前端计算,不会上传或保存您的任何数据,可放心使用。
线性插值广泛应用于信号处理、数值分析、数据清洗及工程设计中的表格查值。为保证插值精度,建议两个已知点之间的区间尽量小,且函数在该区间内接近线性。典型应用示例:已知某材料在温度 20℃ 时长度为 10.0mm,40℃ 时长度为 10.4mm,可使用本工具快速估算 30℃ 时的长度,输入 (20, 10.0)、(40, 10.4) 及 x=30,得到结果 10.2mm。对于非线性关系,可结合分段线性插值或高阶插值方法提升准确性。