How to Find Slope of Trendline in Excel

Cody Schneider8 min read

You've plotted your data in an Excel chart, added a trendline, and now you're staring at a line that tells a story. But what exactly is that story? To understand the trend, you need its slope - the specific number that quantifies the rate of change. This article will show you three distinct ways to find the slope of your trendline in Excel, from a quick visual method to powerful formulas for deeper analysis.

So, What Does the Slope of a Trendline Actually Mean?

Before jumping into the "how," let's quickly cover the "what." The slope represents the "rise over run" for your data set. In simple terms, it tells you how much the vertical value (the Y-axis) is expected to change for every one-unit increase in the horizontal value (the X-axis). It’s the core of your trend’s narrative.

Think about it in a business context:

  • Sales over Time: A slope of 500 might mean you are, on average, gaining $500 in sales each day.
  • Ad Spend vs. Conversions: A slope of 0.25 could mean you get one conversion for every $4 you spend on ads (or 0.25 conversions per dollar).
  • Website Traffic: A slope of -20 when analyzing bounce rate against page load time could show that for every additional second of load time, you lose about 20 users.

A positive slope means the trend is going up. A negative slope means it's going down. A slope near zero means there's no significant trend. Finding this number is the first step toward turning raw data into a measurable insight.

Method 1: Display the Equation Directly on Your Chart

This is the fastest and most visual way to find the slope. It works perfectly when you need a quick answer for a presentation or you just want to see the relationship without needing the number for further calculations.

Who This Is For

This method is ideal for marketers, managers, or anyone needing a quick visual confirmation of a trend. If you're building a report in PowerPoint or sharing a screenshot, this is your go-to.

Step-by-Step Instructions

  1. Create Your Scatter Chart: First, you need a chart. Select your two columns of data (your X and Y values). For example, Clicks (X-axis) and Conversions (Y-axis). Go to the Insert tab, click the Scatter (X, Y) or Bubble Chart icon, and select the first Scatter option.
  2. Add a Trendline: Right-click on any of the data points in your newly created chart. In the context menu that appears, select Add Trendline.
  3. Display the Equation: Excel will automatically add the trendline and open the Format Trendline pane on the right side of your screen. Scroll down inside this pane and check the box labeled "Display Equation on chart."

Interpreting the Result

You’ll now see an equation on your chart, typically in the format y = mx + b.

In this equation:

  • m is the slope of the line.
  • x represents your horizontal axis values.
  • b is the y-intercept (the value of y when x is 0).

For example, if your equation is y = 4.152x + 10.8, your slope is 4.152. This means that for every one-unit increase in your X-axis data, your Y-axis data tends to increase by 4.152.

Pros: Extremely easy and fast. Great for visualization and presentations. Cons: The equation on the chart is just a text box, you can't reference that slope value in other cells or formulas.

Method 2: Use the SLOPE Function for Precise Calculations

If you need the slope value in a cell to use in other formulas - for forecasting, modeling, or creating dynamic reports - the visual method won't cut it. This is where Excel's built-in SLOPE function comes in handy.

Who This Is For

Data analysts, finance teams, and anyone performing "what-if" analysis or building a financial model will find this method indispensable. It gives you a "live" number you can work with.

Step-by-Step Instructions

The SLOPE function uses a very straightforward syntax:

=SLOPE(known_y's, known_x's)

  • known_y's: This is the range of your dependent data (the vertical axis). Think of this as the result or outcome you're measuring. Example: Sales, Conversions.
  • known_x's: This is the range of your independent data (the horizontal axis). This is the factor you believe is influencing the outcome. Example: Ad Spend, Website Sessions.

Let's use an example. Imagine your 'Ad Spend' values are in cells A2:A12 and your corresponding 'Sales' are in cells B2:B12:

  1. Click on any empty cell where you want your slope to appear.
  2. Type the following formula: =SLOPE(B2:B12, A2:A12)
  3. Press Enter.

The cell will now display the exact slope value for your data series. This will be the same number you saw in the chart equation, but now it's a dynamic value you can link to other calculations.

Pro Tip: A common mistake is reversing the X and Y ranges in the formula. Remember, the Y-values (the result) always come first in the SLOPE function.

Pros: Returns a precise, usable number. The result is dynamic, updating automatically if your source data changes. Cons: Less visual. You don't see the trendline itself unless you also create the chart.

Method 3: Go Deeper with the LINEST Function

For users who need more statistical detail than just the slope, Excel's LINEST function is a true powerhouse. Not only does it calculate the slope and y-intercept, but it can also provide other key statistical measures like the R-squared value, standard error, and more.

Who This Is For

This is for the power users: data scientists, researchers, and anyone who needs to validate the statistical significance of their trendline. If questions like "how reliable is this trend?" come up, LINEST gives you the answers.

Step-by-Step Instructions

LINEST is an array function, which means it can return multiple values at once. Its syntax is:

=LINEST(known_y's, [known_x's], [const], [stats])

For finding the slope, we primarily care about the first two arguments, same as the SLOPE function.

Here’s how to use it:

  1. Select a 2-cell wide by 1-cell high range (e.g., D2:E2). LINEST needs space to return both the slope and the y-intercept.
  2. In the formula bar, type the formula with the same data ranges as before: =LINEST(B2:B12, A2:A12)
  3. Now for the important part for older Excel versions: press CTRL + SHIFT + ENTER instead of just Enter. This tells Excel you're entering an array formula. In modern Excel (Microsoft 365), you can often just press Enter and the formula will "spill" into the adjacent cell automatically.

Interpreting the Result

Excel will populate the two cells you selected:

  • The first cell (D2) will contain the slope - the exact same value from the other methods.
  • The second cell (E2) will contain the y-intercept.

If you want to go further and get more stats, you could select a larger area (e.g., a 2x5 grid) and set the [stats] argument to TRUE: =LINEST(B2:B12, A2:A12, TRUE, TRUE). This populates the grid with much more statistical information, which is tremendously useful but beyond the scope of simply finding the slope.

Pros: Incredibly powerful, providing a range of statistics in one command for validation. Cons: More complex to use, especially for beginners. It's often overkill if all you need is the slope.

Putting It All Together: What Your Slope Value Means in Practice

Finding the number is only half the battle. Interpreting it correctly is what drives decisions.

  • If your slope is positive (e.g., 150): This confirms a positive relationship. Each step forward on the X-axis correlates with a 150-unit step up on the Y-axis. Actionable Insight: "The strategy we implemented in June is working, sales per day have been trending up since then."
  • If your slope is negative (e.g., -0.5): This confirms an inverse relationship. Each step forward on the X-axis correlates with a half-unit step down on the Y-axis. Actionable Insight: "Every dollar we increase our product price, we lose half a customer, on average."
  • If your slope is near zero (e.g., 0.01): This indicates a very weak relationship between your variables. Actionable Insight: "Changing the color of our signup button from blue to green had no statistically significant impact on conversion rates."

The slope gives your data direction and magnitude, turning a simple chart into a foundation you can build strategic decisions on.

Final Thoughts

You now have three solid methods for finding the slope of a trendline in Excel. You can grab it visually from a chart for presentations, use the =SLOPE() function for direct calculations, or turn to =LINEST() for a complete statistical breakdown. Understanding these options allows you to turn a simple line on a graph into a concrete, actionable piece of business intelligence.

Manually wrangling data in spreadsheets is a classic first step, but it often leads to hours spent downloading CSVs and building the same charts week after week. At Graphed, we built our platform to automate this entire process. Instead of creating trendlines manually, you can connect your data sources (like Google Analytics, Shopify, or Salesforce) and simply ask in plain English, "show me the relationship between ad spend and sales this quarter." We create an interactive, real-time dashboard for you instantly, freeing you up to make decisions instead of wrestling with formulas.

Related Articles

How to Connect Facebook to Google Data Studio: The Complete Guide for 2026

Connecting Facebook Ads to Google Data Studio (now called Looker Studio) has become essential for digital marketers who want to create comprehensive, visually appealing reports that go beyond the basic analytics provided by Facebook's native Ads Manager. If you're struggling with fragmented reporting across multiple platforms or spending too much time manually exporting data, this guide will show you exactly how to streamline your Facebook advertising analytics.

Appsflyer vs Mixpanel​: Complete 2026 Comparison Guide

The difference between AppsFlyer and Mixpanel isn't just about features—it's about understanding two fundamentally different approaches to data that can make or break your growth strategy. One tracks how users find you, the other reveals what they do once they arrive. Most companies need insights from both worlds, but knowing where to start can save you months of implementation headaches and thousands in wasted budget.