
Rex says
The fast lane for the math you almost remember from school. Type the numbers, get the answer, move on with your day.
Try a scenario
Click to load — tweak from there.Inputs
Result
Slope (m)
2.6667
Y-intercept (b)
-0.6667
Distance
8.5440

Psst — share this and help Rex grow
One click, a permanent link with your numbers baked in.
How to use this
- 1Enter x₁.
- 2Enter y₁.
- 3Enter x₂.
- 4Enter y₂.
- 5Read your slope (m) on the right — it updates as you type.
- 6Hit Share to keep the scenario or send it to someone.
About this calculator
Compute slope, y-intercept, and distance for two points (x₁,y₁) and (x₂,y₂).
Worked example
Using the values the calculator loads with:
Inputs
- x₁: 1
- y₁: 2
- x₂: 4
- y₂: 10
Results
- Slope (m): 2.6667
- Y-intercept (b): -0.6667
- Distance: 8.544
What each field means
Inputs
- x₁
- The x₁ used in the calculation. Starts at 1 so you have a working example on load.
- y₁
- The y₁ used in the calculation. Starts at 2 so you have a working example on load.
- x₂
- The x₂ used in the calculation. Starts at 4 so you have a working example on load.
- y₂
- The y₂ used in the calculation. Starts at 10 so you have a working example on load.
Results
- Slope (m)
- Returned as a decimal number and shown as the headline result. It recalculates instantly whenever you change an input, so you can compare scenarios without reloading.
- Y-intercept (b)
- Returned as a decimal number. It recalculates instantly whenever you change an input, so you can compare scenarios without reloading.
- Distance
- Returned as a decimal number. It recalculates instantly whenever you change an input, so you can compare scenarios without reloading.
FAQ
How does the slope calculator work?
Compute slope, y-intercept, and distance for two points (x₁,y₁) and (x₂,y₂). The underlying maths is: m = (y₂ − y₁) / (x₂ − x₁)
What do I need to enter?
4 values: x₁, y₁, x₂, and y₂. Each field starts with a sensible default, so you can change one number at a time and watch the result move.
What does the slope (m) result mean?
It is returned as a decimal number and updates live as you edit the inputs, so you can compare two or three versions of a scenario in a few seconds.
Is this calculator free, and do I need an account?
Yes, it's free, and no account is required. Nothing you type is stored on our servers — the maths runs entirely in your browser.
How accurate is the result?
It applies the standard formula exactly, so the arithmetic is precise. Results are rounded for display; the underlying calculation keeps full precision.
Who is this tool for?
It's built for students, developers, and anyone who needs the answer right now without setting up a spreadsheet.
Accuracy and limitations
- Results are rounded for display; the underlying calculation keeps full precision.
- Very large or very small inputs may hit floating-point limits in the browser.
- Inputs outside the accepted range are clamped rather than rejected.
Related tools
Cite this calculator
Writing about this topic? Grab a citation — every link helps keep these tools free.
RevenueLab. (2026). Slope Calculator. Retrieved from https://www.revenuelab.fyi/toolbox/slope
<p>Source: <a href="https://www.revenuelab.fyi/toolbox/slope" target="_blank" rel="noopener">Slope Calculator — RevenueLab</a> (2026).</p>
Source: [Slope Calculator — RevenueLab](https://www.revenuelab.fyi/toolbox/slope) (2026).
