A quadratic forecast in Excel allows you to predict future values for data that does not follow a straight line, but instead curves—meaning the rate of change is increasing or decreasing over time. This is achieved by applying a second-order polynomial trendline to a scatter plot or by using the LINEST function to calculate a quadratic equation (y = ax² + bx + c). This method is essential for modeling phenomena like accelerating sales growth, projectile motion, or diminishing returns where a simple linear forecast would result in significant inaccuracies.
What You'll Need
- Microsoft Excel (any modern version including Office 365, 2021, or 2019).
- A dataset consisting of two columns: an independent variable (usually time, such as days, months, or years) and a dependent variable (the value you are forecasting, such as revenue or temperature).
- At least three to five data points (though more are required for a statistically reliable forecast).
Step-by-Step
There are two primary ways to perform a quadratic forecast: the visual method using charts and the mathematical method using formulas. The visual method is faster for presentation, while the formula method is better for precise calculations.
Method 1: The Visual Trendline Method
- Prepare Your Data: Enter your time periods in Column A (e.g., 1, 2, 3, 4, 5) and your corresponding values in Column B. Ensure there are no empty rows or non-numeric characters in these columns.
- Insert a Scatter Plot: Highlight your data range. Go to the Insert tab on the ribbon, click the Charts group, and select Insert Scatter (X, Y). Choose the first option, Scatter, which shows only the markers without lines. This is crucial because a line chart treats the X-axis as categories rather than numeric values, which will break the quadratic calculation.
- Add the Trendline: Right-click on any of the data points in the chart. Select Add Trendline... from the context menu. This will open the Format Trendline pane on the right side of the screen.
- Configure for Quadratic: In the Trendline Options, select the radio button for Polynomial. By default, the Order is set to 2. A second-order polynomial is a quadratic equation. If you change the order to 3 or higher, it becomes a cubic or quartic forecast, which may overfit the data.
- Display the Equation: Scroll down to the bottom of the Format Trendline pane and check the box for Display Equation on chart. Additionally, check Display R-squared value on chart. The R-squared value tells you how well the curve fits your data; a value closer to 1.0 indicates a very strong fit.
- Forecast Future Values: In the Format Trendline pane, look for the Forecast section. In the Forward box, enter the number of periods you want to predict into the future. For example, if you have 12 months of data and want to see the next 3 months, enter 3. Excel will extend the curved line forward based on the quadratic formula.
Method 2: The Formula Method (Using LINEST)
If you need the actual predicted numbers in cells rather than just a line on a graph, you must extract the coefficients (a, b, and c) from the quadratic equation y = ax² + bx + c.
- Set Up the X-Array: To use the LINEST function for a quadratic fit, Excel needs the X values (time) and the X values squared. If your time values are in A2:A10, create a helper column in B2:B10 using the formula
=A2^2and drag it down. - Apply the LINEST Function: Select a horizontal range of three empty cells (e.g., D2:F2). While the cells are selected, type the following formula:
=LINEST(C2:C10, A2:B10, TRUE, FALSE). In this example, C2:C10 are your Y values, and A2:B10 are your X and X² values. - Execute as an Array: Depending on your version of Excel, you cannot just press Enter. If you are not using Office 365 (which supports dynamic arrays), you must press Ctrl + Shift + Enter. This will populate the three cells with the coefficients.
- Identify the Coefficients: The results will appear in reverse order. The first cell is a (the coefficient for x²), the second is b (the coefficient for x), and the third is c (the constant/intercept).
- Calculate the Forecast: To predict a value for a future period (e.g., period 13), use the formula:
=(a * 13^2) + (b * 13) + c. Replace a, b, and c with the cell references where your LINEST results are located.
Common Mistakes
- Using a Line Chart instead of a Scatter Plot: This is the most frequent error. A Line Chart treats the X-axis as labels (1, 2, 3...), even if they are numbers. A Scatter Plot treats them as coordinates. If you use a Line Chart, the quadratic trendline will be calculated based on the index of the point (1st point, 2nd point) rather than the actual value of the X-axis, leading to incorrect forecasts if your time intervals are irregular.
- Overfitting the Data: Increasing the Polynomial Order to 4, 5, or 6 might make the line touch every single data point perfectly, but it often creates an erratic curve that swings wildly when forecasting forward. This is called overfitting and leads to highly inaccurate predictions. Stick to Order 2 for quadratic forecasts.
- Ignoring the R-Squared Value: Some users apply a quadratic trendline to data that is actually linear. If the R-squared value doesn't improve significantly over a linear trendline, the quadratic model is unnecessary and potentially misleading.
- Incorrect LINEST Range: When using the formula method, forgetting to include the squared X-values in the known_x range will result in a linear forecast instead of a quadratic one.
Tips
- Normalize Your X-Axis: If your X-axis consists of large numbers (like years 2021, 2022, 2023), the x² values become massive (e.g., 4,000,000+), which can lead to floating-point errors or difficult-to-read equations. Instead, use 1, 2, 3 to represent the years.
- Use Named Ranges: When using the LINEST formula, name your data ranges (e.g., "SalesData" and "TimePeriods") to make your formulas easier to read and audit.
- Compare Models: Always plot both a Linear and a Polynomial trendline on the same chart temporarily. If the linear line is almost identical to the curve, the simpler linear model is usually more reliable for long-term forecasting.
- Check for Outliers: Quadratic curves are extremely sensitive to outliers. One single data point that is far off the expected path can pull the entire curve upward or downward, ruining the forecast. Clean your data before applying the trendline.
Troubleshooting
If your forecast does not go to plan, try these steps in order:
- Check for Non-Numeric Data: If the trendline won't appear or LINEST returns a #VALUE! error, check for hidden spaces or text in your number columns. Use the
=ISNUMBER()function to verify. - Verify Chart Type: If the curve looks "wrong" or doesn't match the data points, ensure you are using a Scatter Plot and not a Line Chart. Change this via Chart Design > Change Chart Type.
- Adjust the Order: If the curve is too flat, double-check that the Polynomial Order is set to 2. If it is set to 1, it is just a linear line.
- Fix Array Formula Errors: If LINEST only fills one cell instead of three, you likely didn't press Ctrl + Shift + Enter (for older Excel versions) or you didn't select a 1x3 range of cells before entering the formula.
- Handle #NUM! Errors: This usually happens when the data is too sparse or the values are so large that Excel cannot calculate the square. Try the normalization tip mentioned above (changing years to 1, 2, 3).
Frequently Asked Questions
When should I use a quadratic forecast instead of a linear one?
Use a quadratic forecast when your data shows a consistent curve—either accelerating (curving upward) or decelerating (curving downward). If the growth rate is constant, stay with linear. If the growth rate itself is changing, quadratic is the correct choice.
Can I use the FORECAST.LINEAR function for quadratic data?
No. The FORECAST.LINEAR function only calculates a straight line. To forecast quadratic data using formulas, you must use the LINEST function to find the polynomial coefficients and then manually apply the y = ax² + bx + c equation.
What does the R-squared value actually mean in a quadratic forecast?
The R-squared value (Coefficient of Determination) measures how much of the variance in your Y-values is explained by the X-values. A value of 0.95 means 95% of the data fits the curve. The higher the number, the more confident you can be in the forecast.
Why does my quadratic trendline suddenly dive downward at the end?
This is a characteristic of parabolas. Every quadratic curve eventually reaches a peak (or valley) and reverses direction. If your data has started to level off, the quadratic model may assume it is about to drop. Be cautious when forecasting too far into the future with polynomial models.
Does Excel have a built-in "Quadratic Forecast" button?
Not as a single button. It is integrated into the Add Trendline feature of charts or calculated via the LINEST function. There is no single =FORECAST.QUADRATIC() formula in standard Excel.