3D Slope Calculator
Enter two points and get the slope, the angle, the percent grade and the equation of the line, with the line drawn in 3D.
How it works
Slope is how steep a line is: how far it goes up for each step across. Take the difference of the two y values (the rise) and divide it by the difference of the two x values (the run). A positive slope climbs, a negative slope falls, zero is flat, and a vertical line has no slope. To find the length of the segment on its own, use the 3D Distance Between Two Points Calculator by VisionVix.
Frequently asked questions
What is the slope formula?
m = (y₂ − y₁) ÷ (x₂ − x₁). It is the rise divided by the run between two points on the line.
How do I turn a slope into an angle?
Take the inverse tangent of the slope. A slope of 1 is 45°, a slope of 2 is about 63.43°, and a slope of 0.5 is about 26.57°.
What is percent grade?
Percent grade is the slope multiplied by 100. A road that rises 8 metres over 100 metres has a slope of 0.08 and a grade of 8%.
Why is the slope of a vertical line undefined?
Both points have the same x value, so the run is zero. Dividing by zero has no answer, so the slope is undefined.
Built by Julian Neagu for VisionVix Apps. Last reviewed 20 November 2026.