Mathematics
Line slope
Line slope: calculate from your inputs and inspect the formula. No account required. Processing stays in your browser.
m = (y₂−y₁)/(x₂−x₁); b = y₁−mx₁
Check units and the formula domain. Numerical results are rounded.
How to use this calculator
- Identify the quantities and convert them to the units shown.
- Apply the formula first, then compare with the substitution and result.
- Check the assumptions and whether the order of magnitude makes sense.
Levels are approximate topic groupings, not a complete curriculum for every country. Numerical results are rounded and may lose precision for extreme or nearly singular inputs.
A practical example
Use these sample inputs to check the calculation before entering your own values.
- x₁
- 1
- y₁
- 2
- x₂
- 3
- y₂
- 6
Result for this example
- Slope
- 2
- Y intercept
- 0