FormulaCamp
Completed
← Google Sheets functions
Google Sheets function

SLOPE in Google Sheets

SLOPE with worked examples you can test in the live grid. The argument details are in the Excel guide.

In Google Sheets

The arguments and common errors are covered in the SLOPE Excel guide; check the function help in Google Sheets for its own argument list.

Worked examples in Google Sheets

Rising line

AB
1xy
213
325
437
549

Formula: D2: =SLOPE(B2:B5,A2:A5)

Result: 2

y rises by two whenever x rises by one.

Falling line

AB
1xy
218
326
434

Formula: D2: =SLOPE(B2:B4,A2:A4)

Result: -2

The fitted line falls two units per x unit.

Flat line

AB
1xy
215
325
435

Formula: D2: =SLOPE(B2:B4,A2:A4)

Result: 0

Constant y values produce a zero slope.

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in D2: =SLOPE(B2:B7,A2:A7)

Example spreadsheet for SLOPE
ABCD
1MonthRevenueResult
2112012.2285714286
32135
43150
54148
65170
76185
Result in D2: 12.2285714286

Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.