Slope Calculator
Calculated using standard mathematical and industry formulas.
Free online Slope Calculator calculator for academic, engineering, and statistical math.
How to use this calculator?
- Enter coordinates for point 1 (x₁, y₁) and point 2 (x₂, y₂).
- Read slope m, y-intercept b, and the full line equation y = mx + b.
- The angle of inclination and perpendicular slope are also shown.
Formula & calculation method
Slope & line equation formulas
m = (y₂ − y₁) / (x₂ − x₁) · b = y₁ − m × x₁ · Equation: y = mx + b · θ = arctan(m)
m = slope, b = y-intercept, θ = angle of inclination. Perpendicular slope m⊥ = −1/m.
Step-by-step calculation example
Points (1, 2) and (4, 8): Δy = 6, Δx = 3, m = 2. b = 2 − 2×1 = 0. Equation: y = 2x.
Key insights to remember
- Slope m = 0 means a horizontal line; undefined slope (Δx = 0) means a vertical line.
- Perpendicular lines have slopes that are negative reciprocals: m₁ × m₂ = -1.
- The slope of a line is constant — the ratio Δy / Δx is the same between any two points on it.
- In real life, slope appears in gradients of roads (%), ramps, and roofs.
How to interpret your results?
Slope m
Positive m: line rises left to right. Negative m: line falls. m = 0: flat line. Undefined: vertical line.
Y-intercept b
The y-value where the line crosses the y-axis (x = 0). From slope-intercept form: b = y₁ − m × x₁.
Angle of inclination
The angle θ between the line and the positive x-axis: θ = arctan(m). Ranges from 0° (horizontal) to 90° (vertical).
Frequently asked questions
- How does the Slope Calculator calculator work?
- It uses standard algebraic, geometric, or statistical theorems to return exact values.
- How accurate are the results?
- All calculations use double-precision floating-point arithmetic for exact accuracy.
- Can I copy the step-by-step work?
- Yes, step-by-step solutions are formatted clearly for homework or documentation.
- How are undefined operations handled?
- The calculator flags mathematical errors such as division by zero or negative square roots.
- Is this tool suitable for students and engineers?
- Yes, it is designed for students, teachers, engineers, and scientists.
- Does it support negative numbers and decimals?
- Yes, all real numbers (positive, negative, fractions, and decimals) are supported.
Related calculators
- Distance Calculator — Calculate distance between two 2D or 3D coordinate points, find the midpoint and slope, or solve speed-distance-time problems.
- Quadratic Formula Calculator — Solve quadratic equations ax² + bx + c = 0 to find real or complex roots, discriminant, and parabola vertex.
- Percentage Calculator: 3-Way Percent Change — Free online percentage calculator: calculate percentage of a number, percentage increase or decrease, discount prices, and relative change between values.
See all math calculators · Explore all online calculators