Contact

FORECAST Function in Apple Numbers: Linear Regression Predictions

Statistical Intermediate Apple Numbers

Predict y from a given x with Apple Numbers FORECAST, a reproducible table, regression equation and checks.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: =FORECAST(9,A3:E3,A2:E2) returns 19 for Apple’s supplied data. FORECAST fits a straight-line regression to paired x/y observations and calculates the predicted y at the requested x. A forecast is a model-based estimate, not proof the future value will occur. [A1]

Availability and version history

  • Introduced: Documented in Apple’s Formulas and Functions Help 15.4; the original introduction release is not established.
  • Availability: Currently documented for Numbers in that help version; it is not a final supported-version endpoint.
  • Scope: Shared iWork function help. Availability in individual clients and older releases is not established by this check.
  • Checked: October 14, 2026, against the official FORECAST reference. Documentation check; not a new native test.

Exact official syntax and mandatory argument order

=FORECAST(x-value, y-values, x-values)
Position Argument Required? Apple’s documented type and role
1 x-value Yes One number, date/time or duration value at which the prediction is requested.
2 y-values Yes A collection of dependent observations. Numbers, dates/times or durations are documented, with one value type within this collection.
3 x-values Yes A collection of independent observations, also one documented value type within this collection. Must have the same size as y-values.

All three are required; Apple documents no optional switches/defaults for FORECAST. The order is requested x, known y, known x. Reversing the second and third arguments changes which quantity is being predicted. Apple explicitly points to SLOPE and INTERCEPT to reconstruct the fitted equation. [A1]

Platform, version, Numbers table references and regional syntax

This tutorial is based on Apple Formulas and Functions Help, documentation edition 15.4, with the function page accessed 2026-10-12. The edition label identifies the help material, not a proven minimum release of Numbers on every device. Apple provides separate release information for Mac; if you must support a particular historical app version, check that release’s availability before deploying this formula. [A1, R1]

All input examples use cells in one Numbers table, with ranges such as B2:B9. Numbers spreadsheets can contain multiple tables on a sheet; when sourcing another table, select its cells through the formula editor so Numbers constructs the table- or sheet-qualified reference. Do not paste Excel’s Sheet!A1 form and assume it means the same thing in Numbers. [R1, R2]

Locale: These formulas use English function names, . for decimal fractions and , between function arguments. If the system uses a comma decimal separator, Apple instructs using semicolons between arguments when formulas are typed manually. Colons identifying ranges, such as B2:B9, stay colons. Function-name capitalization is not significant. [R1]

Verification labels: Documentation-checked expected output means Apple published that exact example. Independently calculated expected output means the mathematical result was checked outside Numbers. Neither is an observation from running Apple Numbers; native Apple Numbers execution and screenshots were not available in this review.

Reproduce Apple’s five-point linear example

  1. Create a Numbers table named TrendData with at least 3 rows and 7 columns. The reference data must occupy A2:E3. You may put neutral labels in row 1, or turn off header display, but keep A2:E3 numeric.
  2. Type each known x value into row 2 and its corresponding y value directly below it in row 3. Pairs share a column. The example is a mathematically exact line.
  3. Put =FORECAST(9,A3:E3,A2:E2) into G2, outside the source arrays.
Row A B C D E
2 — x 1 2 3 4 5
3 — y 3 5 7 9 11
=FORECAST(9,A3:E3,A2:E2)

Apple’s documentation-checked expected result: 19. Each y value equals 2 × x + 1, so the slope is 2 and the intercept is 1; at x=9 the linear prediction is 2×9+1=19. This identity has also been independently calculated. No Apple Numbers run or screenshot was performed. [A1, C1]

Work through the same line at other requested values

Formula Independently calculated expected y Interpretation
=FORECAST(3,A3:E3,A2:E2) 7 A value inside the observed x range.
=FORECAST(0,A3:E3,A2:E2) 1 The fitted y-intercept, outside the measured x range.
=FORECAST(3.5,A3:E3,A2:E2) 8 Between measured x values.
=FORECAST(9,A3:E3,A2:E2) 19 Apple’s published example, extrapolating beyond measured x values.

To enter a locale variant of the last formula when the decimal separator is a comma, use =FORECAST(9;A3:E3;A2:E2). For x=3.5 use the numeric literal 3,5 and semicolons, e.g. =FORECAST(3,5;A3:E3;A2:E2) in that locale. The commas inside 3,5 and the semicolons separating arguments play different roles. [A1, R1, C1]

Advanced: validate the regression equation

With the same table, independently assess slope and intercept in two other cells:

=SLOPE(A3:E3,A2:E2)
=INTERCEPT(A3:E3,A2:E2)

The independently calculated expected results are 2 and 1, respectively. The fitted straight line can therefore be written predicted y = 2×x + 1. This is a useful audit technique: a forecast can be checked by multiplying the requested x by the slope and adding the intercept. The argument order for these two related functions is (y-values, x-values), while FORECAST adds its requested x-value at the front. [A1, C1]

For a business scenario, store each x/y pair in a stable table (for example x = days since launch, y = orders per day) and update both ranges together. A straight-line prediction is appropriate only when a linear approximation is defensible; seasonality, external drivers, sample size and changing conditions are not automatically modeled. In this toy example x=9 is beyond the observed interval [1,5], so treat that result as extrapolation with extra uncertainty, even though the arithmetic is exact.

A safety check with observed data

Before relying on a forecast, plot the points as a scatter chart and inspect for curvature or unusual outliers. Use CORREL to describe linear association and SLOPE/INTERCEPT to document the line; none automatically proves causality or forecast accuracy. If x values do not vary, a standard straight-line slope cannot be estimated from the data; Apple does not specify the exact resulting error label on the FORECAST reference page, so this guide makes no claim about a particular Numbers error token.

Errors, limits and troubleshooting

  1. Argument reversal: FORECAST requires x-value, y-values, x-values, in that order. Confusing x/y arrays predicts the wrong quantity. [A1]
  2. Unequal range sizes: Apple explicitly requires the known y and x collections to be the same size. If a dataset grows, extend both ranges together. [A1]
  3. Mismatched observations: even equal-length ranges can be misaligned if one is sorted and the other isn’t. Each x/y pair must describe the same record.
  4. Nonlinear process: FORECAST is linear regression; it cannot represent changing slopes or seasonality just by adding more x observations. [A1]
  5. No x variation: fitting a unique slope mathematically requires variation in x; do not invent a specific Numbers error code for a degenerate source range.
  6. Mixed types: Apple permits number, date/time or duration values within each relevant argument, with all entries of each x- or y-series having the same type. This example uses numeric values only. [A1]
  7. Numbers versus Excel: Microsoft describes FORECAST.LINEAR(x,known_y's,known_x's) and retains older FORECAST for compatibility. The three-argument order agrees for this numeric use, but Microsoft-specific error and coercion behavior is not proof of Numbers’ behavior. [X1]
  8. Incorrect cell format: date/time axes or rounded result formats can hide the numerical scale. Inspect actual values before treating an odd display as a calculation error.

Source access date: 2026-10-12. A1 is Apple’s documentation; C1 is independently calculated linear regression, R1/R2 Apple general documentation, X1 Excel documentation. All output claims are expected, not observed in Apple Numbers.

Migration and validation limits

The formulas were not executed in a native Numbers app on Mac, iPad, iPhone or iCloud.com. Recheck display formatting, locale entry, data typing, empty/error cells, table references and older release support in the target installation. Test representative examples in the target app before relying on the worksheet. Do not use this tutorial as a substitute for reviewing the data collection method or domain-specific analysis assumptions.