Slope Calculator

Slope Calculator lets you slope equals change in y divided by change in x. Enter your own values or load the worked example.

Method and calculation

Slope equals change in y divided by change in x.

Inputs and settings

Slope Calculator accepts First x (signed value); First y (signed value); Second x (signed value); Second y (signed value).

Worked example

Slope Calculator example — First x: 1; First y: 2; Second x: 5; Second y: 10. Computed output: { "slope": 2, "intercept": 0 }

Output and limitations

Slope Calculator: Use finite inputs. Results use double-precision arithmetic.

Technical references: JavaScript numerical operations

Slope Calculator FAQs

Slope Calculator applies the following rule to your input: Slope equals change in y divided by change in x. The worked example on this page uses the same processor as the result button.
Slope Calculator has these boundaries: Use finite inputs. Results use double-precision arithmetic. Start by checking the first x field against the units or format shown.
Slope Calculator provides this sample: { "slope": 2, "intercept": 0 }. Use the sample button to reproduce it, then replace the inputs with your own values.