Fits a straight line to data using linear regression and returns its intercept on the y-axis.
INTERCEPT(yvalues, xvalues)
yvalues and xvalues are single row or column ranges specifying points in a set of data. yvalues and xvalues must be the same size.
INTERCEPT fits a straight line through these data points, using the linear regression method (least squares). It then returns the y value where that straight line crosses the y-axis.
The equation of a straight line may be given as y = a + bx. The linear regression method calculates:
and
a is the y-axis intercept returned by this function.
INTERCEPT(B2:B6, A2:A6)
where the x values in A2:A6 are 1, 2, 3, 4, 5 and the y values in B2:B6 are 2, 4, 7, 8, 10 returns 0.2. The equation of the straight line found is very nearly y = 2x (and would be if B4 contained 6) - thus the straight line very nearly (but not quite) goes through the origin.
Predicting Home Sale Price
Imagine you are a real estate analyst trying to understand the relationship between a house's square footage and its sale price. You believe that the sale price is influenced by the size of the house, but you also know that even a house with zero square footage (which is not possible in reality, but is the theoretical point of a linear regression model) would still have some baseline value due to the land it sits on, the neighborhood, and other fixed factors. This baseline value is the intercept.
The INTERCEPT function calculates the point where the regression line crosses the y-axis (the price axis in this case). This value represents the predicted value of the dependent variable (price) when the independent variable (square footage) is zero.
Table of Sample Data:
House ID | Square Footage (X-values) | Sale Price (Y-values) | ||
|---|---|---|---|---|
A | B | C | ||
1 | 1 | 1,200 | $350,000.00 | |
2 | 2 | 1,500 | $420,000.00 | |
3 | 3 | 1,800 | $480,000.00 | |
4 | 4 | 2,000 | $510,000.00 | |
5 | 5 | 2,300 | $580,000.00 |
Using the INTERCEPT Function:
The syntax for the INTERCEPT function is:
INTERCEPT(known_y's, known_x's)
If the data from the table above is in cells A1:C5, the formula would look like this:
INTERCEPT(C1:C5, B1:B5)
Interpretation of the Result:
Let's say the result of this calculation is approximately $108,306.
This means that, based on the linear relationship found in your data, a house with zero square footage would be predicted to have a base value of $108,306.
Meaning:
While a house with 0 square feet is impossible, the intercept value of $108,306 is a very useful piece of information. It represents the value contributed by factors other than square footage. This could include:
In essence, the intercept provides a baseline or starting point for the linear regression model. The overall predictive equation would be:
Where the slope tells you how much the price increases for each additional square foot, and the intercept is the base price before any square footage is considered.
Result for INTERCEPT(C1:C5, B1:B5):
PRODUCT & FEATURES
RESOURCES
Terms | Privacy | Spam Policy
© 2026 Zapof