Skip to main content
True Calculator

Slope Calculator

Find the slope, angle, intercept and distance between two points on a graph. Get the line equation instantly.

Slope m

1.33

Angle of incline

53.13°

Line equation

y = 1.33x + 0.67

Distance between points

5

dx = 3, dy = 4

Slope = (y\u2082 \u2212 y\u2081) / (x\u2082 \u2212 x\u2081). A vertical line has an undefined slope.

Slope Calculator on True Calculator gives you an instant, accurate answer with no sign-up and no app install. Find the slope, angle, intercept and distance between two points on a graph. Get the line equation instantly. Every result shows the formula and a worked example so you can verify the calculation yourself, and all values are computed in your own browser — your numbers never leave your device.

Popular uses: slope calculator · slope between two points · slope formula calculator

How We Calculate

This calculator uses standard mathematical formulas — the same ones taught in school and used in exams — verified by our team. All calculations are performed instantly in your browser using JavaScript, so no data is sent to any server.

The formulas follow standard mathematical definitions and conventions used in textbooks and by educational boards. Results are rounded transparently and shown with the exact formula on this page.

When to Use This Calculator

A slope calculator serves anyone who measures steepness or builds with gradients. Civil engineers and surveyors use it for road gradients, drainage slopes and embankment design, where a wrong slope can cause waterlogging or erosion. Architects and builders check roof pitches and floor drainage falls with it. Students studying coordinate geometry rely on it to verify slope, line equations and distances between points. Gardeners and landscapers plan the fall of lawns and pathways so rainwater drains away from buildings, and interior designers use it when installing accessibility ramps. Even data analysts use slope informally to describe the trend of a line on a chart. The tool returns the slope, angle in degrees, intercept and distance in one go, replacing tedious manual formula work with instant results.

How to Use This Calculator

  1. Step 1: Enter the x and y coordinates of the first point, such as (1, 2).
  2. Step 2: Enter the x and y coordinates of the second point, such as (4, 6).
  3. Step 3: Read the slope m, the angle of incline, the distance between the points and the line equation.
  4. Step 4: Use the equation in y = mx + b form to draw the line or predict more points on it.

Worked Example

An engineering student in Chennai is analysing a road gradient between two survey points. Point one is at (1, 2) metres and point two is at (4, 6) metres. The calculator reports a slope of 1.33, meaning the road rises 1.33 metres for every metre of horizontal run. The angle of incline is 53.13°, and the distance between the points is exactly 5 m. The line equation comes out as y = 1.33x + 0.67, so the student can estimate the height at any horizontal distance. For a flatter section between (2, 3) and (5, 3), the slope is 0, confirming level ground with no rise at all.

Tips and Common Mistakes

  • Tip 1: A positive slope means the line rises from left to right; a negative slope means it falls.
  • Tip 2: For ramp designs in India, keep the slope gentle: a 6% ramp rises 6 units over 100 units of run.
  • Tip 3: Use the distance result to double-check slope calculations, since slope equals rise divided by run.
  • Mistake 1: Swapping the points, which keeps the slope value the same but flips the sign of the intercept in the equation.
  • Mistake 2: Entering identical x-coordinates and expecting a number, since a vertical line has an undefined slope by definition.

Frequently Asked Questions

How is the slope calculated?

Slope m equals (y₂ − y₁) divided by (x₂ − x₁). It measures how steeply the line rises or falls for each unit it moves to the right.

What does a slope of zero mean?

A slope of zero means the line is perfectly horizontal, like flat ground. The y-value stays the same no matter how far you move along the x-axis.

Why is a vertical line's slope undefined?

A vertical line has the same x-coordinate everywhere, so the horizontal change is zero. Dividing by zero is undefined, and the calculator shows the line as vertical instead.

What is the angle of incline?

It is the angle the line makes with the horizontal x-axis, measured in degrees. A 45-degree line has a slope of 1, since the rise equals the run.

Can I use the slope calculator for real-world gradients?

Yes. It works for road and ramp gradients, staircase slopes, drainage pitches and mountain trail steepness. The same slope formula applies everywhere.

You might also need

Related calculators from other categories