SupaCalc
📈

Slope Calculator

Two Points

Enter the coordinates of two points on the line

x-coordinate of Point 1

y-coordinate of Point 1

x-coordinate of Point 2

y-coordinate of Point 2

Understanding Slope: How Steep Is That Line?

Every time you walk up a ramp, ride a bike up a hill, or see a road sign warning of a steep grade, you are experiencing slope. Slope is a single number that describes exactly how steep a line is. A positive slope goes uphill, a negative slope goes downhill, and a zero slope is perfectly flat. The bigger the number, the steeper the line, whether it goes up or down.

Our calculator finds the slope of a line from any two points, converts between slope and angle, and shows you the equation of the line. Just plug in two x-y coordinates and get everything you need for your math homework or real-world measurement.

The formula: Slope = (y2 minus y1) / (x2 minus x1). For the points (1, 2) and (4, 8): slope = (8 minus 2) / (4 minus 1) = 6 / 3 = 2. This means the line goes up 2 units for every 1 unit it moves to the right. A slope of 2 means the line rises twice as fast as it runs.

What Different Slopes Mean

Positive slope: The line goes up from left to right, like climbing a hill. If you imagine walking along the x-axis from left to right, you would be walking uphill. A slope of 1 means the line rises at a 45-degree angle. A slope of 3 means it rises steeply, going up 3 units for every 1 unit across. Positive slopes represent growth and increase, like a plant getting taller over time or a savings account growing with deposits.

Negative slope: The line goes down from left to right, like sliding down a slide. A slope of -1 falls at 45 degrees. A slope of -0.5 falls gently, going down half a unit for every 1 unit across. Negative slopes represent decrease, like a car losing value over time or a candle burning down. The bigger the negative number, the steeper the downhill.

Zero slope: The line is perfectly horizontal, like the surface of still water or a flat table. The y-value never changes, so the rise is zero, and zero divided by anything is zero. The equation of a zero-slope line is y = a constant, like y = 5. Temperature remaining steady all day would graph as a line with zero slope.

Undefined slope: A perfectly vertical line has undefined slope because the run (horizontal distance) is zero, and you cannot divide by zero. The equation is x = a constant, like x = 3. A wall standing straight up has an undefined slope. Vertical lines appear in math problems involving boundaries and limits.

Slope and Angle: Two Ways to Measure Steepness

Converting slope to angle: The angle of a line is measured from the horizontal. A slope of 1 equals a 45-degree angle. A slope of 0.577 equals about 30 degrees. A slope of 1.732 equals about 60 degrees. The conversion formula is angle = arctan(slope). Our calculator does this conversion automatically, showing both the slope value and the angle in degrees.

Why angles matter: Road grades are often expressed as percentages (slope times 100). A 6% road grade means the road rises 6 feet for every 100 feet of horizontal distance, which is a slope of 0.06 or about a 3.4-degree angle. Wheelchair ramps in the United States must have a slope no steeper than 1:12 (one foot of rise for every 12 feet of run), which is about 4.8 degrees. Building codes specify slopes in these terms to ensure safety.

Ski slopes: Green (beginner) slopes are typically 6 to 25 degrees. Blue (intermediate) slopes range from 25 to 40 degrees. Black diamond (expert) slopes exceed 40 degrees. A 45-degree slope (slope = 1) is extremely steep and requires advanced skills. The steepest ski runs in the world approach 55 degrees.

Slope in the Real World

Construction and landscaping: Builders check the slope of the ground before pouring concrete to ensure water drains correctly. A flat driveway will puddle, but a slope of about 1/4 inch per foot (about 1.2 degrees) keeps water flowing away from buildings. Plumbers use slope to size drain pipes, and roofers calculate slope to determine how much water a roof can shed during heavy rain.

Finance and investing: The slope of a stock price graph tells you how fast the price is changing. A steep positive slope means rapid growth. A gentle slope means slow, steady gains. A negative slope means losses. Financial analysts use slope to compare the performance of different investments over time and to spot trends that might not be obvious from the raw numbers.

Science experiments: The slope of a distance-time graph gives you speed. The slope of a speed-time graph gives you acceleration. The slope of a temperature-time graph tells you how fast something is heating up or cooling down. Scientists rely on slopes to understand rates of change in virtually every experiment they conduct.

Parallel and Perpendicular Lines

Parallel lines have the same slope. If two lines both have a slope of 2, they are parallel and will never meet, no matter how far you extend them. Train tracks, highway lanes, and ruled notebook paper are all examples of parallel lines. Parallel lines are essential in geometry proofs and engineering designs.

Perpendicular lines have slopes that are negative reciprocals of each other. If one line has a slope of 2, a perpendicular line has a slope of -1/2. If one line has a slope of -3, a perpendicular line has a slope of 1/3. The product of their slopes is always -1. The x-axis and y-axis are perpendicular (slope 0 and undefined), and the corner of a room is formed by two perpendicular walls.

Frequently Asked Questions

Slope is a number that describes how steep a line is. Think of it as the tilt of a hill or a ramp. A positive slope goes uphill from left to right, a negative slope goes downhill, a slope of zero is perfectly flat, and an undefined slope is a perfectly vertical line. The bigger the number, the steeper the line.

The slope formula is rise over run. Pick any two points on the line. Find how much the line goes up (rise) and how much it goes across (run). Divide rise by run. So if a line goes up 3 units for every 2 units it moves right, the slope is 3/2 = 1.5. Our calculator finds the slope from any two points you enter.

A slope of 2 means the line goes up 2 units for every 1 unit it moves to the right. It rises twice as fast as it runs. A slope of 0.5 means it goes up only half a unit for every 1 unit to the right, so it is a gentler slope. A slope of -2 means the line falls 2 units for every 1 unit to the right.

A positive slope means the line goes up from left to right, like climbing a hill. A negative slope means the line goes down from left to right, like sliding down a slide. If you imagine walking along the line from left to right, a positive slope means you are going uphill and a negative slope means you are going downhill.

Slope is everywhere. Road signs showing a 6% grade are telling you the slope of the road. Architects use slope to design wheelchair ramps (which must have a gentle slope by law). Plumbers calculate slope for pipes so water flows correctly. Investors look at the slope of a graph to see if their money is growing (positive slope) or losing value (negative slope).

A slope of zero means the line is perfectly horizontal and flat, like the surface of still water. It does not go up or down at all. The rise is zero, so zero divided by any run equals zero. This is the equation y = a constant, where the line stays at the same height across the entire graph.

An undefined slope happens with a perfectly vertical line. Since the run (horizontal distance) is zero, you end up dividing by zero, which is impossible in math. Vertical lines have equations like x = 3, where every point on the line has the same x-coordinate but different y-coordinates.

Try More SupaCalc Tools

Free calculators for finance, health, AI costs, and more.

Browse All Calculators

Related Calculators