1. Home
  2. Functions
  3. Statistical
  4. SLOPE

SLOPE function

Returns the slope of the straight line that best fits the data.

Syntax

=SLOPE(known_ys, known_xs)

Arguments

ArgumentRequiredDescription
known_ysRequiredThe dependent values
known_xsRequiredThe independent values

How to use SLOPE

SLOPE takes 2 required arguments. Type =SLOPE( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=SLOPE({2,3,9,1,8,7,5}, {6,5,11,7,5,4,4})Result 0.305555556

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.