
Web Scripts & Software
DEV3 Slope Calculator & Line Equation (Two Points) — Source Code (React + Tailwind)
from $20$29
Loading…
Everyday tool
Free, no sign-up. Runs in your browser; nothing is uploaded. Buy the source code: $29 Regular / $69 Extended
Rise over run as a roof pitch: 36/12.
Need Slope Calculator & Line Equation (Two Points) as a full mobile or web app? We build it in about a week. Built in about a week, from $99. Send your requirements or SOW; you get a fixed quote and a delivery date.
The slope calculator & line equation (two points) stays free to use online. If you want the code to run, edit and ship in your own project, get the full source from the DEV3 Marketplace. Instant download, 6 months of support.
Get the full app behind this tool. Buy once, own the source, and try each one live first.

Web Scripts & Software
from $20$29

Web Scripts & Software Mobile app
from $69$99

Enterprise SaaS Starters
from $69$99

Enterprise SaaS Starters
from $69$99

Web Scripts & Software
from $69$99

Web Scripts & Software Mobile app
from $69$99

Web Scripts & Software Mobile app
from $69$99

Web Scripts & Software Mobile app
from $69$99
The slope of a line measures how steeply it rises. This calculator takes two points, a point and a slope, or the equation y = mx + b, and returns everything you need for coursework, a roof plan or a ramp: slope, angle, intercepts, all equation forms, distance, midpoint and a graph.
For the points (1, 2) and (3, 8): rise = 6, run = 2, so m = 3. Then b = 2 − 3·1 = −1, so y = 3x − 1. In standard form this is 3x − y = 1. The distance is √40 = 2√10 ≈ 6.32 and the midpoint is (2, 5).
A vertical line has an undefined slope and the equation x = c. A horizontal line has slope 0 and the equation y = c. If both points are identical, no single line exists and the tool tells you so.
Use the rise and run mode to convert a slope into degrees, percent grade and roof pitch per 12 units. A 1:12 ramp has an 8.33% grade, about 4.76°.
Everything is calculated exactly with fractions, in your browser.
Divide the change in y by the change in x: m = (y₂ − y₁) / (x₂ − x₁). For (1, 2) and (3, 8) the slope is (8 − 2) / (3 − 1) = 3.
Find the slope m, then the y-intercept b = y₁ − m·x₁, and write y = mx + b. The calculator also gives point-slope and standard form.
When both points have the same x value the run is zero, so the line is vertical, written x = c. It has no y-intercept form and its slope is undefined.
The angle is arctan(m). A slope of 1 is 45°, and a 3/4 slope is about 36.87°. The grade in percent is the slope times 100.
It is the negative reciprocal, −1/m. A line with slope 3 is perpendicular to one with slope −1/3. Parallel lines share the same slope.
Yes. Enter values like 2/3, -1.5 or 2 1/2. The arithmetic is exact, so the slope and intercepts appear as reduced fractions instead of rounded decimals.