Extrapolação Linear

mesma fórmula; x fora do intervalo.
Created by
Renato Passos, Eng. de Software
Reviewed by
Renato Passos, Eng. de Software

Last updated: Apr 18, 2026

y
150,0000

Formula

projeção linear

About this calculator

The linear extrapolation calculator allows you to estimate y values for a given x that lies outside the range of known data. It assumes a linear relationship between x and y and projects this trend beyond the provided points. The calculation is based on the equation of the line passing through two points (x1, y1) and (x2, y2), using the linear interpolation formula applied to an x outside the interval [x1, x2].

To use the tool, enter the coordinates of two known points (x1, y1) and (x2, y2) and the x value for which you want to estimate y. The calculator then determines the slope and intercept, projecting y linearly. It is important that x1 ≠ x2 for the line to be defined. The result is displayed with up to four decimal places.

This calculator is useful in scenarios such as simple trend forecasting, estimating future values based on past data, or curve fitting in engineering and science problems. For example, if you have temperature data over time and want to predict the temperature at a time beyond the last measurement, provided the trend is approximately linear.

Caution: linear extrapolation assumes the linear relationship holds outside the known range, which may not be true. The farther x is from the original data, the greater the potential error. Always check whether the linearity assumption is reasonable for your context. Additionally, accuracy depends on the quality of the provided points; very close points can amplify measurement errors.

Frequently asked questions

Can I use more than two points for extrapolation?

No, this calculator uses exactly two points to define the line. For more points, you would need a linear regression tool.

What happens if x1 equals x2?

If x1 equals x2, a unique vertical line cannot be defined. The calculator will display an error, as the slope would be infinite.

Does linear extrapolation work for any type of data?

It only works for data that follows a linear trend. If the relationship is not linear, extrapolation may be inaccurate.

Can I use negative values for x or y?

Yes, the calculator accepts real numbers, including negatives. Just ensure x1 and x2 are different.

How many decimal places does the result show?

The result is displayed with up to four decimal places, rounded as needed.

Other Calculo Numerico calculators