Slope Calculator
Calculate the slope, y-intercept, and equation of the line through two points.
About this calculator
The Slope Calculator on NumberCals is a free, mobile-friendly tool for anyone needing to calculate the slope, y-intercept, and equation of the line through two points. Enter your values in the form below and the result is computed instantly — no sign-up, no installation, no waiting.
Formula used
m = (y₂ − y₁) / (x₂ − x₁); y = mx + b
What you'll need
- x₁ (e.g. 1)
- y₁ (e.g. 2)
- x₂ (e.g. 4)
- y₂ (e.g. 11)
What you'll get
- Slope (m)
- y-intercept (b)
- Angle with x-axis (°)
- Line Equation
Formula
m = (y₂ − y₁) / (x₂ − x₁); y = mx + b
Result
Frequently Asked Questions
What's a vertical line? +
If x₁ = x₂, slope is undefined (the line is vertical). The calculator returns an error in that case.
What's the angle? +
The angle the line makes with the positive x-axis, measured counter-clockwise. A slope of 1 = 45°.
Related Calculators
Percentage Calculator
Solve the three core percentage problems: what is X% of Y, X is what % of Y, and percentage increase/decrease.
Fraction Calculator
Add, subtract, multiply, or divide two fractions and get a simplified result.
Ratio Calculator
Simplify a ratio and solve missing terms in proportional ratios.
Average Calculator
Compute the arithmetic mean of a list of numbers.
Median Calculator
Find the middle value of a list of numbers.