A polynomial forecast in Excel fits a curved trend line to your historical data and uses it to project future values. You do this by adding a polynomial trendline of order 2 (quadratic) or order 3 (cubic) to an XY scatter chart, displaying its equation and R-squared value on the chart, then feeding future x values into that equation with a formula. It is the right tool when your data curves - accelerating growth, saturation, seasonally-shaped demand - and a straight line would clearly miss the pattern.

Be clear about the limits before you start: a polynomial will happily bend to fit almost anything, including random noise, so it is best used on short, clean series and treated as an extrapolation aid rather than a prediction. Beyond the edge of your data the curve can turn sharply, and Excel has no idea whether that is physically plausible.

What You'll Need

  • Excel for Windows, Excel for Mac, or Excel on the web (chart trendlines with displayed equations work in all three; exact dialog wording can differ slightly by version, platform and region).
  • At least six to eight pairs of numeric data: an x column (time period, month number, input quantity) and a y column (the value you want to forecast). More points than terms is essential.
  • Your x values as plain numbers. Excel's trendline maths needs numeric x, so convert dates to sequential period numbers (1, 2, 3...) or a decimal year.
  • Data sorted ascending by x, with no blank rows inside the range, and no text such as "n/a" left in the y column.

Step-by-Step

  1. Lay out the data cleanly. Put x in one column and y in the next, headers in row 1, values below with no gaps. If your x column is dates, add a helper column of period numbers (1, 2, 3 and so on). This avoids plotting problems and makes forecasting formulas easy to write.
  2. Insert an XY scatter chart. Select both columns including headers, then go to Insert and choose the scatter chart with markers only (not a line chart - a line chart treats x as evenly spaced categories and will distort the fit). Confirm the chart shows your points in the expected order.
  3. Add the trendline. Right-click a data point and choose Add Trendline. In the Format Trendline pane, select Polynomial and set the Order to 2 to start. Order 2 fits one bend, order 3 fits two bends, and so on.
  4. Display the equation and R-squared. Tick "Display Equation on chart" and "Display R-squared value on chart". The equation appears in the form y = ax2 + bx + c (order 2) or y = ax3 + bx2 + cx + d (order 3).
  5. Read the R-squared. This runs from 0 to 1 and tells you what share of the variation in y is explained by the curve. A value close to 1 on a short series is normal and can be misleading; compare it against the linear fit before deciding the curve is real.
  6. Test the next order up. Set Order to 3 and note the new R-squared. If the gain is small, stay with the simpler order. Every extra order adds a term that can swing wildly outside your data range, so use the lowest order that captures the shape.
  7. Copy the coefficients into cells. Type the a, b, c (and d) values from the chart label into separate cells, preserving signs. Beware: Excel sometimes shows very few decimal places on the chart label. Right-click the label, choose Format Data Labels, and set Number to Scientific or to a high number of decimal places so you capture the real coefficients.
  8. Build the forecast formula. In a new cell, write the equation referencing the coefficient cells and a future x cell, for example =$B$2*A10^2+$B$3*A10+$B$4 for a quadratic, where A10 holds the future period. Lock the coefficient cells with dollar signs and fill down for each future period.
  9. Plot the forecast. Add the future periods to your x column and the forecasted values to the y column so the chart extends, or add a second series of forecast points. Keep historical and forecast series visually distinct so readers can see where the data stops and the projection begins.
  10. Sanity-check the output. Look at the last few fitted values against the actual values, and at the shape beyond the data. If the projection reverses direction sharply or goes negative where negative is impossible (units sold, subscribers), the order is too high or the data too short.

Common Mistakes

Using a line chart instead of a scatter chart. Line charts space x values evenly as categories, so the fit no longer matches your actual numbers. Always use XY scatter for polynomial work.

Retyping coefficients from a truncated label. When Excel shows, say, y = 0.02x2 + 1.3x + 4, the true coefficients may have many more digits. With large x values, rounding small coefficients causes large forecast errors. Always switch the data label to scientific notation or many decimals before copying.

Chasing R-squared with a high order. An order-5 or order-6 fit on ten points will look perfect and forecast nonsense. A high R-squared on a short series is a warning sign, not proof.

Forecasting far outside the data range. Polynomial curves diverge quickly. Extrapolating a few periods forward is reasonable; projecting years ahead from a short series is not.

Leaving blanks or text in the range. A blank y value silently drops the point from the fit. Clean the data first.

Tips

Run the linear trendline alongside the polynomial and compare R-squared values and residual patterns. If the linear fit is close, prefer it - it is far safer to extrapolate.

For a more rigorous fit, use LINEST with an array of x powers (for example =LINEST(y_range, x_range^{1,2})) to return all coefficients at full precision in one step, avoiding copy errors from the chart label entirely. Enter it as a dynamic array in modern Excel, or confirm it with Ctrl+Shift+Enter in older versions, and read the coefficients in reverse order.

Keep a visible note of the order used and the R-squared on the sheet or chart. Anyone reviewing the forecast needs to know how much curve was imposed on the data.

Troubleshooting

The trendline option is greyed out. Your chart is probably not a scatter or line chart, or the selected series lacks numeric y values. Rebuild it as an XY scatter with numeric data.

The equation label is missing or cut off. The label may be positioned outside the plot area. Drag it inward, or widen the chart. Then set the number format to scientific notation.

Forecast values look wildly different from the chart. Almost always a coefficient rounding or sign error. Recheck each cell against the full-precision equation, and verify your formula uses x2 and x3 correctly rather than multiplying by the wrong power.

The curve misses an obvious pattern. The series may have seasonality or a step change a single polynomial cannot model. Consider splitting the data at the change, or fitting separate curves.

If that did not work, rebuild the chart from a clean, contiguous range on a fresh sheet, and confirm there are no hidden rows or filtered-out points skewing the fit.

Frequently Asked Questions

Which polynomial order should I use?

Use order 2 for a single bend and order 3 for two bends. Choose the lowest order that visibly captures the shape, and only go higher if the R-squared improvement is meaningful and the forecast remains plausible.

Can I forecast in Excel without a chart?

Yes. Use LINEST or the TREND function with an array of x powers. The chart method is quicker to set up; the formula method gives full-precision coefficients.

Is a higher R-squared always better?

No. On short series, high-order polynomials produce high R-squared values while forecasting poorly. Judge a fit by whether it predicts held-back points and stays sensible outside the data range.

Why did Excel show only two decimals in the equation?

That is just the label's number format. Change it via Format Data Labels to scientific notation or more decimals; the underlying coefficients are unchanged.

Can I forecast negative values if my data can never be negative?

Possible with a polynomial, yes. If the downward arm of the curve crosses zero, cap the forecast at zero or lower the order rather than presenting an impossible figure.

Does this work on Excel for Mac and Excel on the web?

Chart trendlines with equations and R-squared are available in both. Menu wording differs slightly, and Excel on the web has fewer chart formatting options, so you may need the desktop app for detailed label formatting.