Everyday Tools

Equation of a Line Calculator

Find the equation of a line from two points, with slope, slope-intercept form, and point-slope form.

  • Updated April 17, 2026
  • Free online tool
  • Planning and research use

Coordinate-geometry work gets easier when two points are translated directly into a line equation instead of being rewritten by hand through several algebra steps. This calculator helps users find the equation of a line from two points and clearly shows the slope, slope-intercept form when possible, point-slope form, and the original points used.

Run the estimate

Enter your numbers and read the result first, then use the sections below to understand what affects the outcome.

Equation of a line calculator

Find the equation of a line from two points, with slope, slope-intercept form, and point-slope form when available.

y = 2x + 1

Estimated line equation from the two points entered, with slope, slope-intercept form, and point-slope form shown when applicable.

Slope2.0000
Slope-intercept formy = 2x + 1
Point-slope formy - 3 = 2(x - 1)
Original points used(1, 3) and (5, 11)
  • Rise 8 over run 4 gives a slope of about 2.0000 for the line through the two points entered.
  • The same two-point relationship can be written as y - 3 = 2(x - 1) in point-slope form and y = 2x + 1 in slope-intercept form.
  • Use the result as a quick algebra and graphing check when you want the line relationship without rewriting the two-point math by hand.

This is standard two-point line math. Vertical lines are handled separately because their slope is undefined and they do not have a slope-intercept form.

Last updated April 17, 2026. Use this tool to compare scenarios and plan ahead, then confirm important details with the lender, employer, insurer, contractor, or other qualified provider involved in the final decision.

What the calculator is doing

Enter the two points that define the line.

The calculator uses rise over run to estimate the slope and then rewrites the same line in standard line-equation forms.

It handles vertical lines clearly and shows the original points so the result is easy to verify.

This is standard two-point line math. When the two points share the same x-value, the line is vertical, the slope is undefined, and slope-intercept form does not apply.

Browse more everyday tools

Ways people use this tool

Example scenarios help turn a quick estimate into a more useful comparison or planning step.

Check an algebra line-equation problem

A direct result can help confirm the slope and equation forms without rebuilding the two-point method by hand.

Compare line forms from the same points

Seeing both slope-intercept and point-slope form makes the same line easier to reuse in graphing or classroom work.

Use it with other coordinate tools

Line equations often make more sense when reviewed beside slope, midpoint, and distance calculations on the same points.

Good times to run this calculator

Use this when you want a quick line equation from two points without rebuilding each algebra step by hand.

It is especially useful for graphing, algebra checks, and coordinate-geometry problems that need more than the slope alone.

The estimate assumes the two points entered are distinct and define one unique line.

It does not do symbolic algebra or convert the result into every possible line-equation form beyond the forms shown on the page.

Avoid the usual input mistakes

Mixing up the order of subtraction in rise and run can flip the slope sign even when the final equation still looks plausible.

Forgetting that a vertical line has undefined slope can lead to forcing the result into slope-intercept form when that form does not exist.

Check the original points shown in the result so you know the slope and line forms were built from the coordinates you intended.

If the line looks vertical or nearly vertical, pay close attention to the run because a zero run changes the kind of equation you can write.

Walk through a realistic scenario

A worked example shows how the estimate behaves when the inputs resemble a real planning decision.

Find the line equation from two points

A student wants the line through (1, 3) and (5, 11) and needs both the slope and the equation forms for graphing practice.

1. Enter the two coordinate points.

2. Estimate slope from rise over run.

3. Rewrite the line in point-slope and slope-intercept form when possible.

Takeaway: The result gives a faster line-equation check than doing each algebra step manually every time.

Common questions

How is the equation of the line found here?

The calculator uses the two points to estimate slope from rise over run and then rewrites the relationship in point-slope form and slope-intercept form when that form is available.

What happens if the line is vertical?

A vertical line has an undefined slope and no slope-intercept form, so the calculator shows the equation in the form x = constant instead.

Why show both slope-intercept and point-slope form?

Because different algebra and graphing problems use different line forms, and seeing both makes the same line easier to reuse.

Keep comparing

Slope, point-slope, slope-intercept, and distance tools help place the line-equation result inside a broader coordinate-geometry workflow.

Midpoint and fraction tools add context when the same pair of points also needs segment or rational-number work.

Everyday ToolsUpdated April 12, 2026

Slope Calculator

Calculate slope, rise, and run between two coordinate points.

Everyday ToolsUpdated April 16, 2026

Point-Slope Form Calculator

Write the equation of a line in point-slope form from a point and a slope, with a slope-intercept view for comparison.

Everyday ToolsUpdated April 13, 2026

Slope-Intercept Calculator

Write a line in slope-intercept form and estimate y from a chosen x-value.

Everyday ToolsUpdated April 12, 2026

Midpoint Calculator

Calculate the midpoint between two coordinate points.