Skip to content

Line Equation from Two Points Calculator

Math
0.0(0)

Determines the equation of a line (in slope-intercept or standard form) given two points on the line.

How To Use

How to use this calculator

Start with your values, or try a preset.

Step 1

Enter x-coordinate of Point 1, y-coordinate of Point 1, x-coordinate of Point 2, and y-coordinate of Point 2 in the units shown.

Step 2

Read Standard Form: Ax + By = C (B), Slope (m), Standard Form: Ax + By = C (C), Standard Form: Ax + By = C (A), y-intercept (b), Standard Form: Ax + By = C, and Slope-Intercept Form: y = mx + b in the results panel. Results update as you change the inputs.

Step 3

Choose a preset to load an example, then adjust the values for your situation.

Worked Examples

Example calculations

See the inputs and their calculated results.

Example 1

x-coordinate of Point 1: 1; y-coordinate of Point 1: 2; x-coordinate of Point 2: 3; y-coordinate of Point 2: 4

Standard Form: Ax + By = C (B): 1; Slope (m): 1; Standard Form: Ax + By = C (C): 1; Standard Form: Ax + By = C (A): -1; y-intercept (b): 1; Standard Form: Ax + By = C: -1x + 1y = 1; Slope-Intercept Form: y = mx + b: y = 1x + 1

Example 2

x-coordinate of Point 1: 0; y-coordinate of Point 1: 0; x-coordinate of Point 2: 2; y-coordinate of Point 2: 4

Standard Form: Ax + By = C (B): 1; Slope (m): 2; Standard Form: Ax + By = C (C): 0; Standard Form: Ax + By = C (A): -2; y-intercept (b): 0; Standard Form: Ax + By = C: -2x + 1y = 0; Slope-Intercept Form: y = mx + b: y = 2x + 0

Horizontal Line

x-coordinate of Point 1: 1; y-coordinate of Point 1: 3; x-coordinate of Point 2: 4; y-coordinate of Point 2: 3

Standard Form: Ax + By = C (B): 1; Slope (m): 0; Standard Form: Ax + By = C (C): 3; Standard Form: Ax + By = C (A): -0; y-intercept (b): 3; Standard Form: Ax + By = C: 0x + 1y = 3; Slope-Intercept Form: y = mx + b: y = 3

Explore the topic

Explore More Math & Statistics Calculators

Use calculators for algebra, geometry, trigonometry, probability, statistics, averages, z-scores, tests, and graphing tasks.

Explore tools
People Also Calculate

Related Calculators

Continue with another tool on a related topic.