When to use this calculator
Find the slope of a line between two points. A vertical line has an undefined slope and will not return a finite result.
Explore the algebra & number calculators for other questions in this topic. For a related calculation, use the Square Root Calculator: Find the non-negative square root of a number.
PUTTING IT INTO PRACTICE
Slope: a worked example
The values below are an illustrative example, not a recommendation. Replace them with measurements or assumptions that match your question.
| Input | Example value |
|---|---|
| First x coordinate | 1 |
| First y coordinate | 2 |
| Second x coordinate | 4 |
| Second y coordinate | 8 |
| Result | 2 |
- Check the input labels and enter the example values above.
- Apply the relationship: Slope = (y₂ − y₁) ÷ (x₂ − x₁).
- The result is 2 , rounded for display.
How to interpret your result
A vertical line has an undefined slope and will not return a finite result.
Identify whether the question asks for one term, a total or a count of possible selections. Sequences use a fixed difference or ratio. In counting problems, order and replacement determine the correct model.
Frequently asked questions
Do combinations and permutations count the same thing?
No. Combinations ignore the order of selection; permutations count different orders separately.
How do I use the slope calculator?
Enter first x coordinate, first y coordinate, second x coordinate, second y coordinate. The result updates automatically. Use the units shown beside each input; the example values illustrate the method.
Which formula does this calculator use?
Slope = (y₂ − y₁) ÷ (x₂ − x₁).
What should I check before using the result?
A vertical line has an undefined slope and will not return a finite result.
How are results rounded?
Scalar numbers display up to six decimal places, with scientific notation for very large or small values. Text, fraction, date and schedule outputs use the format described on the tool. Intermediate calculations use JavaScript floating-point arithmetic. Keep sensible precision for your measurements.
Calculators Map editorial process · Updated · Methods and limitations