How to find the equation of a line with one point calculator

The general formula for slope-intercept form is , where represents the slope of the line, and represents the -value of the line’s -intercept.

The slope-intercept form of a linear equation makes it easier for us to identify how steep a line is and where it crosses the -axis.

✨ Drag the points on the graph to see how they affect the equation of the line! ✨

When we're given , we first need to find the slope. Then, we can use the slope and one of the given points to solve for the -value of the -intercept and write the equation in slope-intercept form.

What is Standard Form?

The general formula for the standard form of a linear equation is , where , , and are all integers.

We can go from standard form to slope-intercept form by isolating and simplifying:

What is Point-Slope Form?

The general formula for the point-slope form of a linear equation is , where represents the slope of a line that contains the point (, ).

We can go from point-slope form to slope-intercept form by isolating and simplifying:

Check out our

or explore our

and

sections to learn more about slope-intercept form and test your understanding.

You can also use the Quick Links menu on the left to jump to a section of your choice.

You can also use the Quick Links dropdown above to jump to a section of your choice.

You can find an equation of a straight line given two points laying on that line. However, there exist different forms for a line equation. Here you can find two calculators for an equation of a line:

  • first calculator finds the line equation in slope-intercept form, that is,

    It also outputs slope and intercept parameters and displays the line on a graph.

  • second calculator finds the line equation in parametric form, that is,
    How to find the equation of a line with one point calculator

    It also outputs a direction vector and displays line and direction vector on a graph.

Also, the text and formulas below the calculators describe how to find the equation of a line from two points manually.

How to find the equation of a line with one point calculator

Slope-intercept line equation from two points

First Point

Second point

Calculation precision

Digits after the decimal point: 2

How to find the equation of a line with one point calculator

Parametric line equation from two points

First Point

Second point

Calculation precision

Digits after the decimal point: 2

How to find the equation of a line in slope-intercept form

Let's find slope-intercept form of a line equation from the two known points and .
We need to find slope a and intercept b.
For two known points we have two equations in respect to a and b

Let's subtract the first from the second

And from there

Note that b can be expressed like this

So, once we have a, it is easy to calculate b simply by plugging or to the expression above.

Finally, we use the calculated a and b to write the result as

Equation of a vertical line

Note that in the case of a vertical line, the slope and the intercept are undefined because the line runs parallel to the y-axis. The line equation, in this case, becomes

Equation of a horizontal line

Note that in the case of a horizontal line, the slope is zero and the intercept is equal to the y-coordinate of points because the line runs parallel to the x-axis. The line equation, in this case, becomes

How to find the slope-intercept equation of a line example

Problem: Find the equation of a line in the slope-intercept form given points (-1, 1) and (2, 4)
Solution:

  1. Calculate the slope a:
  2. Calculate the intercept b using coordinates of either point. Here we use the coordinates (-1, 1):
  3. Write the final line equation (we omit the slope, because it equals one):

And here is how you should enter this problem into the calculator above: slope-intercept line equation example

Parametric line equations

Let's find out parametric form of a line equation from the two known points and .
We need to find components of the direction vector also known as displacement vector.

This vector quantifies the distance and direction of an imaginary motion along a straight line from the first point to the second point.

Once we have direction vector from to , our parametric equations will be

Note that if , then and if , then

Equation of a vertical line

Note that in the case of a vertical line, the horizontal displacement is zero because the line runs parallel to the y-axis. The line equations, in this case, become

Equation of a horizontal line

Note that in the case of a horizontal line, the vertical displacement is zero because the line runs parallel to the x-axis. The line equations, in this case, become

How to find the parametric equation of a line example

Problem: Find the equation of a line in the parametric form given points (-1, 1) and (2, 4)
Solution:

  1. Calculate the displacement vector:
  2. Write the final line equations:

How do you find the equation of a line with one point?

These are the two methods to finding the equation of a line when given a point and the slope:.
Substitution method = plug in the slope and the (x, y) point values into y = mx + b, then solve for b. ... .
Point-slope form = y − y 1 = m ( x − x 1 ) , where ( x 1 , y 1 ) is the point given and m is the slope given..

How do you find the equation of a point given a point?

To find points on the line y = mx + b, choose x and solve the equation for y, or. choose y and solve for x.

How do you find the slope of a line with one point?

A straight line intercepts the y-axis in a point (0, b). If you choose this point - (0, b), as a point that you want to use in the point-slope form of the equation, you will get: y - b = m * (x - 0) , which is the same as y = m * x + b .

What is the equation of a line calculator?

The equation of a line is typically written as y=mx+b where m is the slope and b is the y-intercept.