How to Make a Curve Graph in Excel: Step-by-Step Guide
In this article
To make a curve graph in Excel, first organize your data in two adjacent columns (x and y values), select the data, then insert a Scatter or Line chart and add a trendline to visualize the curve. This reveals nonlinear relationships between variables, such as exponential growth or quadratic patterns, using Excel’s built-in charting and trendline features—no add-ins required.
What You'll Need
- Microsoft Excel (any modern version: Excel 2016, 2019, 2021, Microsoft 365, or Excel for the web)
- A dataset with at least two columns: one for the independent variable (e.g., time, temperature) and one for the dependent variable (e.g., sales, concentration)
- Basic familiarity with Excel (entering data, selecting cells)
Step-by-Step
- Open Excel and create a new blank workbook.
- In column A (starting at cell A1), enter your x-values (e.g., 1, 2, 3, 4, 5…). These represent the horizontal axis values.
- In column B (starting at cell B1), enter the corresponding y-values (e.g., 2.1, 4.3, 8.7, 16.5, 31.2…). Ensure each y-value corresponds to the x-value on the same row.
- Highlight the data range: click and drag from A1 to the last cell containing y-data (e.g., B10 if you have 10 rows of data). Confirm only the two columns are selected—no headers unless you want them.
- Go to the Insert tab on the ribbon.
- In the Charts group, click Scatter (not Line). Choose Scatter with Straight Lines and Markers if you want visible data points, or Scatter with Smooth Lines and Markers for a curved line that passes through points (ideal for visualizing trends). *Note: For true mathematical curves, Scatter is preferred over Line charts because it treats the x-axis as numeric, not categorical.*
- Once the chart appears, click anywhere on it to activate the Chart Tools tabs.
- Click the Chart Elements button (a small plus sign beside the chart), then check the box for Trendline. This adds a default linear trendline.
- Click the arrow next to Trendline and select More Options to open the Format Trendline pane.
- In the pane, under Trendline Options, choose the curve type that matches your data: Polynomial (for peaks/valleys), Exponential (for rapid growth/decline), Logarithmic (for rapid initial change that slows), or Power (for relationships like y = ax^b). For most nonlinear curves, start with Polynomial (set Order to 2 for a parabola) or Exponential.
- Check Display Equation on chart and Display R-squared value on chart if you want to see the curve’s formula and goodness-of-fit (R² closer to 1 means better fit).
- Click outside the pane to apply. Your chart now displays the curve (trendline) over the original data points.
Common Mistakes
- Using a Line chart instead of Scatter: Line charts treat x-values as text labels (e.g., "Jan", "Feb"), so uneven spacing (like 1, 2, 10) gets plotted as equal intervals, distorting the curve. Always use Scatter for numeric x-axes.
- Skipping the trendline step: A Scatter chart with straight lines only connects points linearly between them—it doesn’t show an underlying curve unless the data itself is linear.
- Choosing the wrong trendline type: Forcing a linear trendline on curved data (e.g., exponential growth) creates a poor fit. Match the trendline to your data’s behavior.
- Overfitting with high-order polynomials: Setting Polynomial Order to 3 or higher may curve unnaturally between points, especially with sparse data. Start with Order 2.
- Forgetting to verify the R² value: An R² of 0.3 means the curve explains only 30% of the variation—use it to confirm the curve is meaningful, not just decorative.
Tips
- Smooth lines ≠ curve fit: The "Scatter with Smooth Lines" option creates a visual curve using splines but does *not* calculate a statistical trendline. Use it only for aesthetic emphasis, not analysis.
- Adjust axis scales for clarity: Right-click an axis > Format Axis > set Minimum/Maximum to zoom in on the curve’s shape.
- Use named ranges for dynamic charts: Convert your data range to an Excel Table (Ctrl+T), then charts auto-update when you add new rows.
- Copy trendline settings: Right-click a trendline > Format Trendline > Save as Template to reuse settings across multiple charts.
- Check for outliers: A single extreme point can warp the curve. Review your raw data before fitting.
- For Excel for the web: Trendline options are limited—use desktop Excel for polynomial or custom fits, or rely on Scatter with Smooth Lines for a quick visual.
Troubleshooting
- No trendline appears after clicking "Trendline": Ensure you clicked the chart (not the data) and selected "More Options." In web versions, trendlines may be unavailable—switch to desktop Excel.
- The curve looks jagged or incorrect: Verify your x-values are numeric (not text). Select column A > Home tab > Number group > change format to Number or General.
- Polynomial trendline is missing or grayed out: You need at least three data points with varying x-values. Also, Order > 6 is unsupported—stick to Order ≤ 2 unless you have >20 points.
- Equation or R² doesn’t display: In the Format Trendline pane, re-check "Display Equation on chart" and "Display R-squared value on chart." If the box is unchecked automatically, try re-adding the trendline.
- Chart shows a straight line despite curved data: You likely chose a linear trendline. Go back to Step 10 and select Exponential or Polynomial.
- Excel crashes or freezes when inserting chart: Reduce data size (e.g., sample 100 points from 10,000), or paste data as values (Ctrl+Shift+V) to remove formulas that slow rendering.