By Mark Stansberry
Updated Aug 30, 2022
Determining an unknown point on a line is a foundational skill in many fields—whether you’re programming a video game, studying for an algebra exam, or drafting architectural plans. When you know the slope, one complete coordinate pair, and a second pair with only one coordinate, you can systematically solve for the missing value.
The slope of a line is defined as:
M = (y2 – y1)/(x2 – x1)
Here, M is the slope, (x2, y2) is a known point A, and (x1, y1) is another known point B. The unknown coordinate will appear in either the x or y position.
Insert the given slope and the known coordinates into the formula. For example, if the slope is 1 and point A is (0, 0), while point B is (1, y1) with the y‑value missing, the equation becomes:
1 = (0 – y1)/(0 – 1)
Rearrange the equation so that the unknown variable stands alone on one side. You can refer to the Basic Rules of Algebra for step‑by‑step guidance on manipulating algebraic expressions.
In the example above, the equation simplifies to 1 = –y1 / –1, which further reduces to 1 = y1/1. Therefore, y1 = 1.
One of the most frequent errors occurs when the x and y values are mistakenly swapped during substitution. Mixing up the order of x1 with x2 or y1 with y2 can flip the sign of the slope, leading to incorrect results. Always double‑check that each coordinate pair is entered in the correct sequence before solving.