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)| Argument | What it means | |
|---|---|---|
known_y's | Required | The dependent values (the thing you want to explain, e.g. total cost). |
known_x's | Required | The 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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Units | Total cost | ||
| 2 | 100 | 2600 | 2005 | |
| 3 | 200 | 3150 | ||
| 4 | 300 | 3800 | ||
| 5 | 400 | 4300 | ||
| 6 | 500 | 4950 |
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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Ad spend (k) | Sales (k) | ||
| 2 | 2 | 41 | 30.23 | |
| 3 | 4 | 52 | ||
| 4 | 5 | 58 | ||
| 5 | 7 | 70 | ||
| 6 | 9 | 79 |
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.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#N/A | known_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.
| Language | Function name |
|---|---|
| Danish | SKÆRING |
| Dutch | SNIJPUNT |
| Finnish | LEIKKAUSPISTE |
| French | ORDONNEE.ORIGINE |
| German | ACHSENABSCHNITT |
| Hungarian | METSZ |
| Italian | INTERCETTA |
| Norwegian (Bokmål) | SKJÆRINGSPUNKT |
| Polish | ODCIĘTA |
| Portuguese (Brazil) | INTERCEPÇÃO |
| Portuguese (Portugal) | INTERCETAR |
| Russian | ОТРЕЗОК |
| Spanish | INTERSECCION.EJE |
| Swedish | SKÄRNINGSPUNKT |
| Turkish | KESMENOKTASI |