Statistical function

INTERCEPT function

Returns where the best-fit straight line through your data crosses the y-axis: the predicted y when x is 0.

Available in All versions of Excel, including Microsoft 365 and Excel for the web

In every Excel versionWorks in Google Sheets

Syntax

INTERCEPT(known_y's, known_x's)
ArgumentWhat it means
known_y'sRequiredThe dependent values (the thing you want to explain, e.g. total cost).
known_x'sRequiredThe independent values (e.g. units produced). Same number of points as known_y's.

Returns: The intercept b of the least-squares line y = mx + b.

How INTERCEPT works

Linear regression draws the straight line that fits a cloud of points best, in the sense that the squared vertical distances from the points to the line are as small as possible. That line has two numbers: the SLOPE (how much y changes for each extra unit of x) and the intercept (the value of y when x is zero). INTERCEPT returns the second one.

In business the intercept often has a real meaning. Plot total monthly cost against units produced and the intercept estimates fixed costs, the cost you pay even when you produce nothing; the slope estimates the variable cost per unit. Be careful when x = 0 is far outside your data, though: the line is then an extrapolation and the intercept may be meaningless. Pairs where either value is text, logical or empty are ignored.

Examples

1Estimate fixed costs

D2fx=INTERCEPT(B2:B6, A2:A6)
ABCD
1UnitsTotal cost
210026002005
32003150
43003800
54004300
65004950

Result: 2005

The best-fit line crosses the y-axis at 2005: about 2,005 of monthly cost is fixed. =SLOPE(B2:B6,A2:A6) returns 5.85, the extra cost per unit.

2Baseline sales with no advertising

D2fx=INTERCEPT(B2:B6, A2:A6)
ABCD
1Ad spend (k)Sales (k)
224130.23
3452
4558
5770
6979

Result: 30.23

30.226027 (shown to 2 decimals). The model suggests about 30k of sales would happen with zero advertising, but since no month had zero spend, treat this as a rough estimate.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 14 KB

Common errors and how to fix them

ErrorWhy it happensFix
#N/Aknown_y's and known_x's contain a different number of data points.Use ranges of equal size.
#DIV/0!All x-values are the same (or fewer than two points), so no line can be fitted.Add data with different x-values.

Tips

  • INTERCEPT, SLOPE and RSQ together describe a simple regression; LINEST returns all of them at once plus standard errors.
  • The argument order is y first, then x, the opposite of how many people say "x and y".

Google Sheets

INTERCEPT also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

INTERCEPT in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
DanishSKÆRING
DutchSNIJPUNT
FinnishLEIKKAUSPISTE
FrenchORDONNEE.ORIGINE
GermanACHSENABSCHNITT
HungarianMETSZ
ItalianINTERCETTA
Norwegian (Bokmål)SKJÆRINGSPUNKT
PolishODCIĘTA
Portuguese (Brazil)INTERCEPÇÃO
Portuguese (Portugal)INTERCETAR
RussianОТРЕЗОК
SpanishINTERSECCION.EJE
SwedishSKÄRNINGSPUNKT
TurkishKESMENOKTASI