Home › Calculators › Slope Intercept Form Calculator

Slope Intercept Form Calculator

Write any line as y = mx + b. Start from two points, a point and a slope, or an equation in standard form, and get the slope and y-intercept as exact fractions, the x-intercept, every other form of the equation, the working and a mini graph.

Last updated:

What do you know?
Line details

A number or fraction like 3/4 or -2. Type "undefined" for a vertical line.

For 2x + 3y = 12 enter A = 2, B = 3, C = 12. For 2x − 3y = 12 use B = −3.

Enter your values to see the result.
Advertisement
Advertisement

How to use the Slope Intercept Form Calculator

  1. Choose what you know: two points, a point and the slope, or a standard-form equation.
  2. Enter the numbers. Fractions such as 3/4 and negatives such as -2 are fine.
  3. Press Calculate equation to get y = mx + b with exact fractions.
  4. Follow the steps to see how the slope and the intercept were found.
  5. Use the graph and the table of values to check your answer or plot the line on paper.

The three routes to y = mx + b

You knowFind mFind bExample
Two points (x₁, y₁), (x₂, y₂)m = (y₂ − y₁) ÷ (x₂ − x₁)b = y₁ − m·x₁(1, 2), (4, 7) → y = (5/3)x + 1/3
A point and the slopegivenb = y₁ − m·x₁(2, −1), m = 3/4 → y = (3/4)x − 5/2
Standard form Ax + By = Cm = −A ÷ Bb = C ÷ B2x + 3y = 12 → y = −(2/3)x + 4
Slope and y-interceptgivengivenm = −2, b = 5 → y = −2x + 5

Reading a line from its equation

Slope-intercept form is popular because you can graph it without any calculation:

  1. Plot the y-intercept (0, b) on the y-axis.
  2. From that point, move 1 unit right and m units up (or down if m is negative). For a fractional slope such as 2/3, move 3 right and 2 up.
  3. Draw the line through the two points.
  • m > 0: the line rises from left to right. m < 0: it falls. m = 0: horizontal line y = b.
  • The larger |m| is, the steeper the line. A slope of 1 makes a 45° angle with the x-axis.
  • Parallel lines have the same m and different b. Perpendicular lines have slopes that multiply to −1, such as 2 and −1/2.
  • The x-intercept is where y = 0: x = −b ÷ m.

Worked example: from a word problem

A phone plan charges a $15 monthly fee plus $0.10 per text. The cost y for x texts is y = 0.10x + 15: the slope 0.10 is the rate per text and the y-intercept 15 is the fixed cost when x = 0. If you only knew that 100 texts cost $25 and 300 texts cost $45, the two-point method gives m = (45 − 25) ÷ (300 − 100) = 0.10 and b = 25 − 0.10 × 100 = 15, the same equation.

Frequently asked questions

What is slope-intercept form?

It is the equation of a line written as y = mx + b, where m is the slope (rise over run) and b is the y-intercept, the y-value where the line crosses the y-axis at the point (0, b).

How do I find slope-intercept form from two points?

Find the slope m = (y₂ − y₁) ÷ (x₂ − x₁), then substitute one point into b = y − mx. For (1, 2) and (4, 7): m = 5/3 and b = 2 − 5/3 = 1/3, so y = (5/3)x + 1/3.

How do I convert standard form Ax + By = C to y = mx + b?

Subtract Ax from both sides and divide everything by B: y = (−A/B)x + C/B. For 2x + 3y = 12, y = −(2/3)x + 4, so the slope is −2/3 and the y-intercept is 4.

How do I go from point-slope form to slope-intercept form?

Start with y − y₁ = m(x − x₁), distribute m and add y₁ to both sides. With the point (2, −1) and slope 3/4: y + 1 = (3/4)(x − 2) gives y = (3/4)x − 5/2.

Can every line be written in slope-intercept form?

Every line except a vertical one. A vertical line such as x = 3 has an undefined slope and never crosses the y-axis at a single point, so it has no y = mx + b form. Horizontal lines work: y = 0x + 4 is simply y = 4.

Why does the calculator show fractions instead of decimals?

Fractions are exact. A slope of 5/3 is 1.6666…, and rounding it to 1.67 makes the line pass slightly off your points. The decimal form is shown underneath for convenience.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Slope CalculatorSlope, angle, line equation y = mx + b and distance from two points, with a graph.System of Equations SolverSolve 2×2, 3×3 and 4×4 linear systems with exact fractions and step-by-step working.Graphing CalculatorPlot multiple functions with zoom, pan, intersections and a value table.Roofing Calculator (Roof Squares)Estimate roof area, squares, shingle bundles and cost from pitch.Square Root CalculatorFind square, cube and nth roots with simplified radical form and steps.Body Surface Area CalculatorCalculate body surface area in m² with the Du Bois, Mosteller, Haycock and other formulas.Pythagorean Theorem CalculatorSolve for the hypotenuse or a missing leg of a right triangle, with a diagram and steps.Area CalculatorFind the area of squares, rectangles, triangles, circles, trapezoids, ellipses and sectors.Volume CalculatorVolume of a cube, box, cylinder, sphere, cone, pyramid or capsule, in liters and gallons too.Surface Area CalculatorSurface area of a cube, box, cylinder, sphere, cone or pyramid, with lateral and base areas.Circle CalculatorEnter a circle's radius, diameter, circumference or area and get all the others.Triangle CalculatorSolve any triangle from SSS, SAS, ASA, AAS or right-triangle values: sides, angles, area, type.Midpoint CalculatorFind the midpoint of two points in 2D or 3D, or the missing endpoint from a midpoint.Distance Formula CalculatorDistance between two points in 2D or 3D with step-by-step work and an exact radical answer.Vector Calculator2D and 3D vectors: add, subtract, dot and cross product, magnitude, angle, unit vector, projection.Pascal's Triangle GeneratorGenerate Pascal's triangle up to row 30, highlight a row and expand (ax + by)ⁿ.Trigonometry CalculatorSin, cos, tan, csc, sec, cot and inverses in degrees or radians, with exact values.Arc Length CalculatorArc length, sector area and chord from radius and angle, or solve for the radius or angle.Cylinder Volume CalculatorCylinder volume in liters, gallons and cubic units from radius or diameter, plus surface area.Regular Polygon CalculatorArea, perimeter, apothem, radius and angles of a regular polygon from any one measurement.Aquarium Volume CalculatorFish tank gallons, liters and water weight: rectangle, cylinder, bow-front and hexagon tanks.Tank Volume CalculatorTotal and filled volume of cylinder, rectangular and capsule tanks in gallons and liters.Circle Skirt CalculatorWaist radius, fabric yardage and cutting layout for full, half or quarter circle skirts.Ellipse CalculatorArea, perimeter (Ramanujan), eccentricity, foci and equation of an ellipse from its axes.Camera Field of View CalculatorAngle of view and frame size from focal length, sensor size and subject distance.Law of Sines and Cosines CalculatorSolve SSS, SAS, ASA, AAS and SSA triangles with the laws of sines and cosines, steps shown.Miter Angle CalculatorMiter saw angle for any polygon or corner, plus crown molding miter and bevel settings.Simplify Square Root CalculatorSimplify square, cube and nth roots to simplest radical form a√b, with steps.Interactive Unit CircleDrag an angle on the unit circle to see degrees, radians and exact sin, cos and tan. Printable chart.Cone Volume CalculatorVolume, slant height and surface area of a right cone from its radius and height.Perimeter CalculatorPerimeter of a square, rectangle, triangle, circle, trapezoid, polygon or sector, with a diagram.Point Slope Form CalculatorLine equation in point-slope form from a point and slope or two points, plus y = mx + b.Polar to Cartesian ConverterConvert polar coordinates (r, θ) to rectangular (x, y) with steps, a plot and bulk lists.Right Triangle CalculatorSolve a right triangle from any two values: sides, angles, area, perimeter and altitude.Sphere Volume CalculatorVolume and surface area of a sphere from radius, diameter or circumference, or the reverse.Trapezoid Area CalculatorArea, perimeter, median and missing base or height of a trapezoid, with a diagram.30-60-90 Triangle CalculatorEnter one side of a 30-60-90 triangle to get the other sides, area and perimeter in exact radical form.45-45-90 Triangle CalculatorSolve an isosceles right triangle from a leg or hypotenuse, with sides in exact √2 form.Coordinate Plane PlotterPlot points, segments and polygons on an interactive coordinate grid, or print blank planes.Coterminal Angle CalculatorList positive and negative coterminal angles and the principal angle, in degrees and radians.Heron's Formula CalculatorFind a triangle's area from its three sides with Heron's formula, semi-perimeter and steps.Implicit Differentiation CalculatorFind dy/dx for any equation in x and y with steps, plus the slope and tangent at a point.Inverse Trig Calculatorarcsin, arccos, arctan, arcsec, arccsc and arccot in degrees and radians, with exact values.Polygon Area from CoordinatesArea, perimeter and centroid of any polygon from its vertex coordinates (shoelace formula).Reference Angle CalculatorFind the reference angle and quadrant of any angle in degrees or radians, with a unit circle sketch.Tangent Line CalculatorFind the tangent and normal line to f(x) at a point, with the derivative, slope and a graph.Complementary and Supplementary Angle CalculatorComplement, supplement and explement of any angle in degrees or radians, with diagrams.
See all 46 Geometry & Trigonometry Calculators →