Skip to main content

Slope / Slope-Intercept Calculator

Find slope, slope-intercept form, point-slope form, standard form, intercepts, and a graph from two points, one point and a slope, a form of the equation, or an equation you type yourself. Every answer comes with a step-by-step solution that shows the algebra, plus visuals and a student-friendly interpretation.

Background

Slope tells you how steep a line is and whether it rises, falls, stays horizontal, or is vertical. Slope-intercept form, y = mx + b, shows the slope m and y-intercept b directly, which makes it one of the most useful forms for graphing and interpreting linear equations.

Choose what you know

Input mode

Two points

Type whole numbers, decimals like -1.5, or fractions like 2/3.

Point and slope

Type whole numbers, decimals, or fractions. A slope of 2/3 can be typed as 2/3.

Slope-intercept form

Type whole numbers, decimals, or fractions.

This represents y = mx + b.

Standard form

Type whole numbers, decimals, or fractions.

This represents Ax + By = C.

Type a linear equation

Use x and y, numbers, fractions, and brackets. Examples: y = 2x - 3, 2x - y = 5, x = 4, y = -1/2x + 6, y = (2/3)x + 1, y = x/2 + 3, or point-slope form y - 2 = 3(x - 1).

Options

Result

You changed an input. Click Calculate to update this result.

No result yet. Enter values, then click Calculate.

How to use this calculator

  • Choose whether you know two points, one point and a slope, slope-intercept form, standard form, or an equation you want to type.
  • Enter the values you know, then click Calculate. Numbers can be whole numbers, decimals like -1.5, or fractions like 2/3.
  • In "Type an equation," write it the way it appears in your homework: y = 2x - 3, 2x - y = 5, y = (2/3)x + 1, or point-slope form like y - 2 = 3(x - 1).
  • Read the slope, y-intercept, x-intercept, line direction, and equivalent equation forms, then follow the step-by-step solution to see how each one was found.
  • Use the graph to see the line, the intercepts, and the rise/run triangle. The graph is drawn to scale, so the steepness you see is the real slope.
  • Use quick picks to practice positive, negative, zero, undefined, and fractional slopes.

How this calculator works

  • For two points, it uses m = (y₂ − y₁)/(x₂ − x₁), then finds b from one of the points and checks it against the other.
  • For point + slope, it uses y − y₁ = m(x − x₁), distributes m, and adds y₁ to both sides to get y alone.
  • For slope-intercept form, it reads m and b directly.
  • For standard form, it solves Ax + By = C for y when possible.
  • For a typed equation, it simplifies both sides (brackets, division, like terms), collects the terms into Ax + By = C, and solves for y.
  • It then builds the other equation forms, a to-scale graph, a value table, and a step-by-step explanation.

Formula & Equations Used

Slope from two points: m = (y₂ − y₁)/(x₂ − x₁)

Slope-intercept form: y = mx + b

Point-slope form: y − y₁ = m(x − x₁)

Standard form: Ax + By = C

From standard form: m = −A/B and b = C/B

Y-intercept: b, the value of y when x = 0

X-intercept: the value of x when y = 0, which is −b/m

Example Problem & Step-by-Step Solution

Example 1 — Find slope from two points

  1. Suppose a line passes through (2, 3) and (6, 11).
  2. Use m = (y₂ − y₁)/(x₂ − x₁).
  3. Substitute: m = (11 − 3)/(6 − 2).
  4. Simplify: m = 8/4 = 2.
  5. The slope is 2, meaning the line rises 2 units for every 1 unit it moves right.

Example 2 — Convert to slope-intercept form

  1. Suppose the line has slope m = -3 and passes through (2, 5).
  2. Start with y = mx + b.
  3. Substitute the point and slope: 5 = -3(2) + b.
  4. Solve: 5 = -6 + b, so b = 11.
  5. The slope-intercept form is y = -3x + 11.

Example 3 — Identify a vertical line

  1. Suppose two points are (4, 2) and (4, 9).
  2. The x-values are the same, so x₂ − x₁ = 0.
  3. That makes the slope undefined because division by zero is not allowed.
  4. The equation is x = 4, which is a vertical line.
  5. A vertical line cannot be written in slope-intercept form because it is not a function of x.

Example 4 — Start from a typed equation

  1. Suppose the equation is y − 2 = 3(x − 1).
  2. Distribute the 3: y − 2 = 3x − 3.
  3. Add 2 to both sides to get y alone: y = 3x − 1.
  4. The slope is 3 and the y-intercept is −1.
  5. In standard form, subtract 3x from both sides and multiply by −1: 3x − y = 1.

Example 5 — Standard form to slope-intercept form

  1. Suppose the equation is 3x − 4y = 8.
  2. Subtract 3x from both sides: −4y = −3x + 8.
  3. Divide every term by −4: y = (3/4)x − 2.
  4. The slope is 3/4 and the y-intercept is −2.

Frequently Asked Questions

Q: What does slope mean?

Slope measures how much a line rises or falls for each 1-unit move to the right. It is often described as rise over run.

Q: What is slope-intercept form?

Slope-intercept form is y = mx + b. The number m is the slope, and b is the y-intercept.

Q: What does a positive slope mean?

A positive slope means the line rises from left to right. As x increases, y also increases.

Q: What does a negative slope mean?

A negative slope means the line falls from left to right. As x increases, y decreases.

Q: What is an undefined slope?

An undefined slope happens when the line is vertical. The run is 0, so the slope formula would require division by zero.

Q: What is a zero slope?

A zero slope happens when the line is horizontal. The y-values stay the same, so the line has no rise.

Q: Can I type a fraction like 2/3 as the slope?

Yes. Every number box accepts whole numbers, decimals such as -1.5, and fractions such as 2/3. Typing 2/3 keeps the answer exact, so you get (2/3)x rather than a rounded decimal.

Q: What can I type in the equation box?

Any straight-line equation in x and y: y = 2x - 3, 2x - y = 5, y = (2/3)x + 1, y = x/2 + 3, x = 4, or point-slope form such as y - 2 = 3(x - 1). Brackets, fractions, and * or × for multiplication all work. Exponents and products like xy are not straight lines, so they are not accepted.

Q: How do I graph a linear inequality in two variables, like y > 2x + 1?

Start with the boundary line: change the inequality sign to = (here, y = 2x + 1) and use this calculator to find its slope, intercepts, and graph. Then draw the line dashed for > or <, or solid for ≥ or ≤, test a point such as (0, 0) in the original inequality, and shade the side that makes it true. This calculator does not draw the shading itself.

Function Analyzer Calculator
Analyze functions with graphs, derivatives, extrema, limits, asymptotes, and step-by-step explanations
Ratio Calculator
Simplify ratios, solve proportions, scale ratios, split totals, compare and convert ratios
Domain and Range Calculator
Find domain and range of common functions with clear steps + number-line visual
Quadratic Equation Calculator
Solve quadratic equations with exact roots, steps, and graph
Matrix Calculator
Perform matrix operations with steps, exact fractions, and visuals
Fraction Calculator
Calculate fractions step by step with mixed numbers, decimals, LCD/LCM, comparisons, and conversions
Inequality Solver
Solve linear, compound (AND/OR), quadratic, absolute value, and rational inequalities with steps
Equation Solver
Solve algebra equations step by step with checks, visuals, and multiple equation types
Rational Equation Solver
Solve rational equations with domain restrictions, LCD clearing, extraneous checks
Friction Calculator
Calculate friction forces, incline motion, acceleration, and coefficients with diagrams and step-by-step solutions
Dot Product Calculator
Calculate dot product, angle, orthogonality, and vector projections
Relative Velocity Calculator
Calculate relative velocity in 1D and 2D motion with riverboat, airplane wind, and moving observer problems
Conic Sections Calculator
Identify and convert circle, parabola, ellipse, and hyperbola equations with steps
Simplify Expression Calculator
Simplify, expand, factor, and reduce algebraic expressions step by step
Direct Variation Calculator
Find the constant of variation and missing values for basic, power, joint, and data-table direct variation problems
Factoring Calculator
Factor any polynomial - GCF, quadratics, and cubics - and see the roots
Electric Field Calculator
Calculate electric fields from point charges with vectors, force mode, visuals, and step-by-step solutions
Pythagorean Theorem Calculator
Find hypotenuse, solve missing leg, or check if sides make right triangle
Graphing Calculator
Graph functions, compare equations, trace coordinates, and explore graph features step by step
System of Linear Equations Calculator
Solve 2×2 systems by elimination or substitution, or 3×3 systems by Gaussian elimination
Slope Percentage Calculator
Instantly convert slope %, angle (°), and ratio (1 in N)
Point-Slope Form Calculator
Build line equations from a point and slope with steps and graph
SAT / ACT Score Calculator & Predictor
Calculate SAT and ACT scores, compare test equivalents, predict improvements, and plan score goals
Linear Regression Calculator
Calculate best-fit line, correlation r, and R² from your data
Distance Calculator
Calculate distance in 2D, 3D, point-to-line, speed/time, lat-long, or scaled grid modes
Vector Projection Calculator
Calculate scalar projection, vector projection, angle, and orthogonality of vectors
Triangle Calculator
Solve right and any triangle (SSS, SAS, ASA, SSA). Find sides, angles, area, perimeter
Right Triangle Calculator
Solve right triangles: sides, angles, area, perimeter, steps, visual
Vector Calculator
Calculate vector operations with steps and visual diagrams
High-Low Method Calculator
Split mixed costs into fixed and variable components, predict costs from a budget, and test the method against real data
Correlation Coefficient Calculator
Calculate Pearson’s r, Spearman’s rank correlation, r², regression line, significance, and relationship strength
Back to all calculatorsAll calculators