Slope Calculator

Analyze a straight line from two points, one point and a slope, slope-intercept form, or standard form. Keep fractions exact while finding equivalent equations, intercepts, direction, angle, percent grade, parallel and perpendicular slopes, sample points, and two-point geometry with visible verification checks.

Calculation and content reviewed by EZ Calculators Editorial Team on .

Enter values

Choose the line information you already have. Exact fractions stay exact while the result converts the same line into useful equation forms, intercepts, angle, grade, and geometric checks.

Choose the information given
Starting form(x1, y1) and (x2, y2)

Point 1

Enter an integer, terminating decimal, fraction, or bounded scientific notation.
Keep the coordinate paired with the x-value beside it.

Point 2

A matching x-value produces a vertical line unless both points are identical.
Subtract coordinates in the same point order.
Controls rounded decimal displays; exact fractions and equation checks remain unchanged.
Exact line first, rounded geometry secondFractions remain exact through every equation conversion and coordinate check.
Use signed integers, terminating decimals, fractions such as -3/4, or scientific notation such as 1.2e3. Angle, distance, and percent grade are rounded displays. Grade is meaningful only when horizontal and vertical measurements use comparable units.

What Is a Slope Calculator and What Can It Tell You

Slope measures a straight line's vertical change for each unit of horizontal change. A positive slope rises from left to right, a negative slope falls, zero slope is horizontal, and an undefined slope is vertical. The number is useful, but it is only one description of the line.

This calculator builds a complete line record from the information already available. It preserves exact rational values, converts among common equation forms, locates intercepts, classifies direction, and reports related geometry. Two-point mode also separates properties of the line from properties of the entered segment, such as midpoint and distance.

How to Use the Slope Calculator From the Given Form

Choose Two points when two coordinate pairs are known. Choose Point + slope when a line must pass through a given point with a stated slope. Select y = mx + b when slope and y-intercept are already visible, or Ax + By = C when the equation is in standard form.

The mode changes which values are required; it does not change the underlying line. Exact integers, terminating decimals, fractions such as -3/4, and bounded scientific notation are accepted. Decimal precision controls rounded displays only, so changing it does not alter an exact fraction or normalized equation.

  1. Match the input mode to the information provided.
  2. Enter signs, coordinate pairings, and coefficients exactly as written.
  3. Select Analyze line and read the exact slope or vertical-line result first.
  4. Compare equivalent equations and intercepts before using rounded secondary measures.
  5. Use the substitution checks to confirm the entered points satisfy the normalized line.

From Two Points to Rise, Run, and Exact Slope

For points (x1,y1) and (x2,y2), subtract coordinates in the same order. Rise is y2-y1 and run is x2-x1. Reversing both subtraction orders changes both signs and leaves their quotient unchanged; reversing only one order creates the wrong sign.

When run is nonzero, slope is rise divided by run and the fraction is reduced exactly. When run is zero and the points differ, division by zero is undefined and the line is vertical. If both points are identical, infinitely many lines pass through that one location, so the calculator rejects the pair rather than inventing a slope.

Formula guide
  • Slope from two points: m = (y2 - y1) / (x2 - x1)
How coordinate changes classify a two-point line
RiseRunSlope statusLine direction
PositivePositivePositiveIncreasing
NegativePositiveNegativeDecreasing
0Nonzero0Horizontal
Nonzero0UndefinedVertical

Build the Equation From One Point and a Slope

Point-slope form keeps a known point visible: y-y1=m(x-x1). It is usually the cleanest starting form when a problem gives one coordinate pair and slope. Expanding the right side and isolating y produces slope-intercept form, while moving terms and clearing denominators produces standard form.

The calculator substitutes the known point to find b=y1-mx1. It then checks that point against the normalized standard equation. This verification catches sign errors that can remain hidden when an equation merely looks familiar.

Formula guide
  • Point-slope form: y - y1 = m(x - x1)
  • Slope-intercept form: y = mx + b
  • Standard form: Ax + By = C

Convert Slope-Intercept and Standard Forms Without Guessing

In y=mx+b, m is the slope and (0,b) is the y-intercept. Standard form Ax+By=C is converted by solving for y when B is nonzero: y=(-A/B)x+C/B. Therefore m=-A/B and b=C/B.

If B equals zero and A does not, Ax=C becomes x=C/A, a vertical line. If A and B are both zero, the equation cannot define a line and is rejected. Rational coefficients are cleared and the resulting integer coefficients are divided by their common factor, making equivalent standard equations easy to compare.

Formula guide
  • Slope-intercept form: y = mx + b
  • Standard form: Ax + By = C
  • From standard form when B is nonzero: m = -A/B and b = C/B
  • Vertical line when x2 = x1: x = x1 and slope is undefined

Read Intercepts and Equivalent Equation Forms

The y-intercept is found by setting x=0. For a nonvertical line y=mx+b, it is (0,b). The x-intercept is found by setting y=0; when m is nonzero, x=-b/m. A horizontal line above or below the x-axis has no x-intercept.

Boundary lines need precise language. The line y=0 is the entire x-axis, so it has infinitely many x-axis points rather than one unique x-intercept. The line x=0 is the entire y-axis. The results describe those cases explicitly instead of displaying a misleading single coordinate.

Angle of Inclination and Percent Grade Are Different Measures

The angle of inclination is measured counterclockwise from the positive x-axis and normalized to the interval from 0 through 180 degrees. A negative slope therefore has an obtuse inclination rather than a negative angle. Vertical lines have a 90-degree inclination.

Percent grade multiplies slope by 100. A slope of 0.08 is an 8% grade, while its angle is about 4.57 degrees. Grade is meaningful only when horizontal and vertical changes use the same or comparable units. If one axis is time and the other is money, the slope is a rate but calling it a physical grade would be inappropriate.

Formula guide
  • Angle of inclination theta = arctan(m), normalized to 0 through 180 degrees
  • Percent grade = 100 x slope when horizontal and vertical units are comparable
Slope, angle, and grade examples
SlopeDirectionInclinationPercent grade
0Horizontal0 degrees0%
1/2Increasing26.565 degrees50%
1Increasing45 degrees100%
-1Decreasing135 degrees-100%
UndefinedVertical90 degreesUndefined

Parallel, Perpendicular, and Bisecting Lines

Distinct nonvertical parallel lines have equal slopes. For two nonvertical perpendicular lines, the slope product is -1, so the perpendicular slope is the negative reciprocal -1/m. The boundary pairing is just as important: horizontal and vertical lines are perpendicular.

Two-point mode uses the midpoint as a reference and reports the perpendicular bisector, the line that crosses the segment at its midpoint and at a right angle. Other modes report a perpendicular line through the available reference point. A slope alone identifies direction, not the position of a unique parallel or perpendicular line.

Formula guide
  • Parallel nonvertical lines have equal slopes
  • Perpendicular nonvertical slopes satisfy m1 x m2 = -1; horizontal and vertical lines are perpendicular

Separate Line Properties From Segment Geometry

Slope, direction, intercepts, and equation forms belong to the infinite line. Distance and midpoint belong to the finite segment connecting the two entered points. Moving to a different pair on the same line preserves slope but generally changes the segment length and midpoint.

The displacement vector <run,rise> records the signed movement from Point 1 to Point 2. Distance uses the Pythagorean theorem and is shown as a rounded decimal; midpoint coordinates remain exact fractions when necessary.

Formula guide
  • Distance between two points = sqrt((x2 - x1)^2 + (y2 - y1)^2)
  • Midpoint = ((x1 + x2)/2, (y1 + y2)/2)

Worked Line Analysis Examples

These examples show why input form and boundary handling matter. Equivalent equations may look different while representing exactly the same set of points.

Worked slope and line-equation cases
Starting informationSlopeEquivalent equationImportant check
(1,2) and (5,10)2y = 2xBoth points satisfy 2x-y=0
Point (3,-1), m=2/32/3y = (2/3)x - 3Substitution gives -1=-1
2x+3y=12-2/3y = (-2/3)x + 4Intercepts are (6,0) and (0,4)
(-4,2) and (-4,9)Undefinedx = -4Run is exactly zero
y = -505y = -25No x-intercept

Use the Result Table as an Equation Check

For a nonvertical line, the table selects five exact x-values around the reference point and calculates the matching y-values. Substituting any row into the reported equation should reproduce equality. For a vertical line, every row keeps x fixed while y changes.

The table is not a graph and does not imply a practical domain. A real model may apply only within a limited interval even though its algebraic line continues indefinitely.

Where Straight-Line Slope Is Useful

Slope is useful whenever a constant rate of change is a reasonable description. The units of slope are y-units per x-unit, so interpretation depends on the axes rather than on the number alone.

  • Check coordinate-geometry and algebra homework.
  • Convert equations among point-slope, slope-intercept, and standard forms.
  • Describe a constant speed, cost rate, temperature trend, or production rate.
  • Compare the directions of parallel and perpendicular lines.
  • Calculate a physical grade after matching measurement units.
  • Find a segment midpoint, distance, displacement, or perpendicular bisector.
  • Generate exact points for plotting a straight line.

Accuracy, Scope, and Model Limits

Supported integers, terminating decimals, fractions, and scientific notation are parsed as rational values. Slope, intercepts, equation forms, midpoint, and substitution checks therefore remain exact. Angle and distance involve trigonometric or square-root calculations and are rounded at the selected display precision.

This page analyzes one straight Cartesian line. It does not calculate a tangent slope on a curve, fit a regression line to a data set, infer axis units, determine measurement uncertainty, or decide whether a linear model is appropriate. A perfectly calculated slope can still be a poor model outside the observed range.

  • Keep coordinate pairs and subtraction order consistent.
  • Do not treat an identical point pair as two observations.
  • Convert physical measurements to comparable units before using grade.
  • Preserve source precision instead of adding unsupported decimal places.
  • Inspect residuals or a scatterplot before assuming real data are linear.

Open References for Slope and Line Equations

Slope Calculator Features

On Slope Calculator, users can enter a scenario, inspect its supporting values, review the method, and continue to related guidance without leaving the page. Each Slope Calculator option has a defined role in the calculation or presentation of the result.

  • Clearly labeled controls for Starting information, First x-coordinate, First y-coordinate, Second x-coordinate, Second y-coordinate, Slope (m), and Y-intercept (b) and 4 additional inputs.
  • Analyze a straight line from two points, a point and slope, slope-intercept form, or standard form with exact equations, intercepts, angle, and geometry.
  • A visible formula guide with the equations or calculation rules used for the result.
  • Supporting result details for the answer, supporting method, simplified value, and formula checks.
  • Fast scenario comparison without creating an account or submitting an application.

Benefits of Using a Slope Calculator

Slope Calculator provides an answer and a visible method, so it can be used to check arithmetic as well as understand the setup. With Slope Calculator, signs, operation order, simplification, factors, or units remain visible when they can change the result.

Use Slope Calculator to derive one line from two exact coordinate points, convert among point-slope, slope-intercept, and standard forms, and audit intercepts, parallel or perpendicular direction, and two-point geometry. Holding the other slope assumptions steady helps isolate the effect of the one Slope Calculator value being tested.

Common Slope Calculator Use Cases

Use Slope Calculator for the scenario that best matches the question being answered. Keeping each Slope Calculator case separate prevents inputs from one person, period, measurement, account, or plan from being mixed with another.

  • Derive one line from two exact coordinate points.
  • Convert among point-slope, slope-intercept, and standard forms.
  • Audit intercepts, parallel or perpendicular direction, and two-point geometry.

FAQ

How do I find slope from two points?

Subtract the y-coordinates and x-coordinates in the same order, then divide: m=(y2-y1)/(x2-x1). Reduce the fraction and verify both points in the resulting equation.

Why is a vertical line's slope undefined?

Its horizontal change is zero. The slope quotient would divide a nonzero rise by zero, which is undefined. The line is written x=constant instead.

What happens if I enter the same point twice?

One point does not determine a unique line because infinitely many lines pass through it. The calculator asks for two different points rather than reporting 0/0 as a slope.

How do I convert standard form to slope-intercept form?

For Ax+By=C with B nonzero, isolate y: y=(-A/B)x+C/B. Thus slope is -A/B and the y-intercept is C/B. When B=0, the line is vertical.

What is point-slope form used for?

Use y-y1=m(x-x1) when one point and the slope are known. It keeps the known point visible and can be expanded into slope-intercept or standard form.

How do I find the x-intercept and y-intercept?

Set y=0 to solve for the x-intercept and set x=0 to find the y-intercept. Horizontal and vertical axis lines need special handling because an entire axis can coincide with the line.

Is a 100% grade the same as a 90-degree angle?

No. A 100% grade has slope 1 and angle 45 degrees. A 90-degree line is vertical, with undefined slope and undefined percent grade.

How do I find the slope of a parallel line?

A nonvertical parallel line has the same slope. A line parallel to a vertical line is also vertical and therefore has undefined slope.

How do I find the slope of a perpendicular line?

For nonzero finite slope m, use -1/m. A horizontal line is perpendicular to a vertical line, so their slopes are 0 and undefined rather than a finite negative-reciprocal pair.

Can the slope calculator use fractions and decimals?

Yes. Signed integers, terminating decimals, fractions, and bounded scientific notation are parsed exactly. Rounded decimals are displayed only for secondary interpretation.