Skip to content
LoveToCalc

Theorem — what does that mean?

Two-point form

Given two points, the line through them is fixed. The two-point form writes it in one step: the slope from the points, times how far x is from the first point.

In Swedish: Tvåpunktsformeln

Two-point form

The relation

y−y₁=y₂−y₁x₂−x₁(x−x₁)

The line through (x₁, y₁) and (x₂, y₂): y − y₁ = (y₂ − y₁)/(x₂ − x₁) · (x − x₁). The fraction is the slope.

Solved for y

y=y₁+y₂−y₁x₂−x₁(x−x₁)

Show how the formula is rearranged
  1. y−y₁=y₂−y₁x₂−x₁(x−x₁)
  2. Add y₁ to both sides.

    y₁+y₂−y₁x₂−x₁(x−x₁)=y

  3. Swap the sides, so that what you are solving for stands on the left.

    y=y₁+y₂−y₁x₂−x₁(x−x₁)

y=10

y equals 2 plus (((6 minus 2) divided by (3 minus 1)) times (5 minus 1)), equals 2 plus ((4 divided by 2) times 4), equals 2 plus (2 times 4), equals 2 plus 8, equals 10

Working5 steps

Practice questions

You are given

  • y₁=1
  • y₂=4
  • x₂=2
  • x₁=1
  • x=-2

The formula

Holds when x₂ ≠ x₁. The fraction is the slope from two points, and the rest is the point-slope form with the first point as the known one.

Example

The line through (1, 2) and (3, 6).

Check with the second point: 2 · 3 = 6. ✓ The result is the same if you start from (3, 6) instead: y − 6 = 2(x − 3) gives y = 2x.

At x = 5 the line has y = 2 + 2 · 4 = 10, which is also what the card gives.

When x₂ = x₁

The two points then lie directly above each other, on a vertical line. The slope would need a division by zero, and the form does not apply. The line is simply x = x₁, which the general form writes as x − x₁ = 0.

Common mistakes

Where next

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
yy₁+y₂−y₁x₂−x₁(x−x₁)2+6−23−1(5−1)10

Last reviewed October 13, 2026 ·How pages are reviewed

Straight linesAll formulas

Put this formula on your site

Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.