An equation in two variables describes pairs of numbers that work together. Learn to read those pairs as points, convert among line forms, and use slope and intercepts to build the equation you need.
Section
Math
Domain
Algebra
Calculator
Available throughout Math
Difficulty
Foundational through advanced
One equation describes a set of ordered pairs
A linear equation in two variables usually has the form Ax+By=C, where A and B are not both zero. A solution is an ordered pair (x,y) that makes the equality true. Instead of identifying one isolated number, the equation usually describes infinitely many pairs that form a straight line.
For 2x+y=11, both (2,7) and (5,1) are solutions. Substitution verifies them: 2(2)+7=11 and 2(5)+1=11. The coordinates have different jobs. Reversing (2,7) to (7,2) produces 16, so the order matters even though the same two numbers appear.
Questions may ask which point lies on a line, which equation matches two points, where a line crosses an axis, or how to write a parallel or perpendicular line. A word problem might describe a fixed total made from two kinds of objects. Your task is to preserve both the geometric relationship and the meaning of each variable.
A single equation does not usually determine one unique pair. If a question gives only x+y=18, it does not establish individual values of x and y. Additional restrictions may narrow the possibilities, such as nonnegative integer counts, but those restrictions must come from the prompt.
The three forms you should move between
Form
Equation
What it reveals
Slope-intercept
y=mx+b
Slope m and vertical intercept (0,b).
Point-slope
y−y1=m(x−x1)
Slope m and a known point (x1,y1).
Standard
Ax+By=C
A total, convenient coefficients, or easy axis intercepts.
These are different ways to write the same line. For example, y−5=3(x−2) expands to y−5=3x−6, then y=3x−1. Moving terms gives 3x−y=1. Each equation has slope three and passes through (2,5). Choose the form that exposes the information you need instead of converting automatically.
From standard form with B=0, solve for y: y=−BAx+BC. Thus the slope is negative A/B, not A alone. To find the vertical intercept, set x=0; to find the horizontal intercept, set y=0. An axis intercept is a point with one coordinate zero.
To build a line through two points, find m=x2−x1y2−y1, then substitute either point into point-slope form. If the two x-coordinates are equal, this slope formula has a zero denominator: the line is vertical and should be written x=c, where c is that shared coordinate.
Slopes, intercepts, and contextual totals
A positive slope rises as you move right; a negative slope falls. A slope of zero gives a horizontal line y=c. A vertical line x=c has undefined slope, not zero slope. These two special cases matter in both line construction and parallel or perpendicular relationships.
Distinct nonvertical parallel lines have equal slopes and different vertical intercepts. Nonvertical perpendicular lines have slopes whose product is negative one, so a nonzero slope m becomes −1/m. For a slope of −5/2, the perpendicular slope is 2/5. You must both invert the fraction and reverse its sign.
The product rule does not apply directly to a vertical-horizontal pair because one slope is undefined. A vertical line is perpendicular to every horizontal line, and distinct vertical lines are parallel. Handle those cases geometrically instead of trying to force an undefined value into arithmetic.
In a contextual equation such as 4x+7y=84, the coefficients might be dollars per item and the variables might count two kinds of supplies. The intercepts (21,0) and (0,12) describe spending the whole budget on just one kind. The full mathematical line includes negative coordinates, but the practical model may only allow nonnegative integer pairs.
If you solve that equation for y, you obtain y=12−74x. The slope means each increase of one unit in x requires a decrease of four sevenths in y to preserve the total. If objects cannot be split, that rate still describes the line, but only certain points correspond to possible purchases.
Axis intercepts can also supply a direct equation. When nonzero intercepts are (a,0) and (0,b), the line can be written ax+by=1. Substituting each intercept verifies the form immediately. Multiply by a common denominator to return to standard form. This is a useful shortcut when a graph labels both crossings but no other points.
This intercept shortcut requires both displayed intercept values to be nonzero. A line through the origin should be built from its slope and a point instead of dividing by a zero intercept.
For example, intercepts negative six and positive four give x/(−6)+y/4=1. Multiplying by twelve yields −2x+3y=12, or y=32x+4. Notice that the slope is positive: the line rises from a negative horizontal intercept to a positive vertical intercept. Reading signs from the coordinates is more reliable than assuming every intercept-based line slopes downward.
Construct and verify an equation efficiently
Identify the information given: two points, a point and a slope, intercepts, a contextual total, or another line's relationship.
Determine slope if needed. For a parallel line, keep the slope; for a perpendicular line with nonzero finite slope, take the negative reciprocal.
Use point-slope form with a known point, or write standard form directly from a total and unit rates.
Convert only as far as the question requires. Clear constant denominators by multiplying every term by the same nonzero number.
Verify the known point and the required slope or total. A line can have the right direction and still be in the wrong location.
For intercepts (8,0) and (0,6), you can calculate slope −6/8=−3/4 and write y=−43x+6. Multiplying by four gives 3x+4y=24. Both intercepts satisfy the result. This check is often faster than rereading a full derivation.
Desmos can display standard form directly, so you need not isolate y merely to graph a line. Enter an equation and the supplied points to check whether they align. If you are comparing four proposed equations, eliminate obvious wrong slopes or failed points first; graphing all four can create visual clutter.
An equation multiplied by a nonzero constant has the same solutions. The lines 2x−3y=7 and −4x+6y=−14 coincide. When comparing choices, simplify ratios or divide common factors before deciding that different-looking equations represent different lines.
Three original worked examples
Worked example
Easy: read an axis intercept
The line 3x+2y=24 intersects the y-axis at (0,b). What is b?
A8
B−12
C12
D24
Show the solution
Every point on the y-axis has x=0. Substitute zero for x, giving 2y=24.
Divide by two to obtain y=12, so the intersection is (0,12) and b=12.
Choice C is correct. You can check the point directly: 3(0)+2(12)=24.
Choice A, eight, is the horizontal intercept's nonzero coordinate, found by setting y=0. It answers a different axis question.
Answer:C
Worked example
Medium: convert two intercepts into an equation
A line crosses the axes at (32,0) and (0,20). Which equation represents the line?
A8x+5y=160
B5x−8y=160
Cx+y=52
D5x+8y=160
Show the solution
The slope is 0−3220−0=−85. Since the vertical intercept is twenty, write y=−85x+20.
Multiply the entire equation by eight: 8y=−5x+160. Move the variable term to obtain 5x+8y=160.
Choice D is correct. Setting y=0 gives x=32, and setting x=0 gives y=20, so both supplied points check.
Choice A reverses the variable coefficients. It crosses the axes at (20,0) and (0,32), swapping the given intercepts.
The alternate intercept form x/32+y/20=1 gives the same result after multiplication by 160. Either approach is valid; choose the one you can verify most quickly.
Answer:D
Worked example
Medium: a parallel line through a point
Which equation represents the line through (−2,7) that is parallel to 6x−3y=9?
Ay=2x+11
By=−2x+3
Cy=2x+3
Dy=21x+8
Show the solution
Rewrite the given line: −3y=9−6x, so y=2x−3. Its slope is two.
A parallel line must also have slope two. Use the supplied point: 7=2(−2)+b, so b=11.
The required equation is y=2x+11, choice A. Substituting x=−2 produces seven.
Choice C has the correct slope but gives y=−1 at x=−2. Matching slope alone does not establish the right line.
Choice D passes through the point but has slope one half. A point check and a slope check are both necessary.
Answer:A
Worked example
Hard: perpendicular direction in standard form
A line passes through (6,−1) and is perpendicular to 4x+6y=19. Which equation represents that line?
A2x+3y=9
B3x−2y=20
C3x+2y=16
D2x−3y=15
Show the solution
Isolate y in the given equation: y=−32x+619. The given slope is negative two thirds.
The perpendicular slope is positive three halves because (−2/3)(3/2)=−1.
Use point-slope form: y+1=23(x−6). Multiply by two: 2y+2=3x−18.
Rearrange to standard form: 3x−2y=20. Choice B is correct, and 3(6)−2(−1)=20 verifies the point.
Choice D passes through the same point because 2(6)−3(−1)=15, but its slope is two thirds. It changes the sign without taking the reciprocal, so it is not perpendicular.
Answer:B
Common traps in line equations
When changing forms, move complete terms. From 2x−5y=15, subtracting 2x gives −5y=15−2x, and division by negative five gives y=52x−3. Dropping the negative on the constant creates a parallel line with the wrong intercept.
Do not assume both intercepts exist. A horizontal line above the origin has a vertical intercept but no horizontal intercept. A vertical line away from the origin has a horizontal intercept but no vertical intercept. The axes themselves contain infinitely many points on one axis, so describe their special behavior precisely.
For a contextual total, distinguish quantities from rates. If adult tickets cost 15 dollars and child tickets cost nine dollars, with counts a and c, revenue is 15a+9c. The count total is a+c. Combining prices into the count equation would mix units and model a different condition.
A diagram is supporting information, not a substitute for coordinates. If a line looks nearly horizontal, calculate its slope from labeled values. Unequal axis scales can make a slope of two appear shallow, and a screen window can distort your visual comparison.
Hard questions: parameters and structural checks
Parameters can hide the slope inside standard form. For kx+4y=12, the slope is −k/4. If this line is parallel to y=3x+8, then −k/4=3 and k=−12. The vertical intercept is three, which differs from eight, so these are distinct parallel lines rather than the same line.
For perpendicular relationships, isolate the coefficients you need instead of fully graphing. If ax+by=c and dx+ey=f have nonzero b and e, their slopes are −a/b and −d/e. Their product must equal negative one for perpendicular lines. Check separately if a zero coefficient creates a horizontal or vertical line.
A point can determine an unknown coefficient before any slope work. If (3,−2) lies on kx+5y=11, substitute to get 3k−10=11, so k=7. Then the slope is negative seven fifths. This two-stage approach is cleaner than treating every symbol as an unknown to solve simultaneously.
Word problems sometimes provide a trade-off instead of a rate explicitly. If replacing two large boxes with five small boxes preserves total weight, the weight of two large boxes equals the weight of five small ones. Translate that balance first, then use a total or a known point to locate the line.
Before choosing an equation, perform two quick tests: does it contain a required point, and does it have the required direction or coefficient relationship? These independent checks catch many choices designed to satisfy only half of the prompt.
Practice conversions without losing meaning
Use a 24-minute session divided into four parts. Spend six minutes converting several lines from point-slope to slope-intercept to standard form. After each conversion, check a point rather than merely comparing symbols. Include a negative coordinate and a fractional slope in at least one example.
Spend six minutes in Solar identifying intercepts, slopes, and valid ordered pairs. Spend another six minutes building lines from two points and from parallel or perpendicular conditions. For each constructed line, record both a point check and a slope check.
Use the final six minutes for contextual totals and corrections. Label the units on every term, and state whether the domain is all real pairs, a nonnegative segment, or nonnegative integer points. If a graph helped, explain what it showed that your algebra did not already reveal.
I can convert among all three line forms.
I can recognize vertical and horizontal special cases.
I can find both intercepts when they exist.
I can construct a parallel or perpendicular line through a point.
I can tell when different equations describe the same line.
Repeat the slowest question type the next day with new numbers. Aim to choose the useful form before writing calculations. Efficient line work begins with recognizing what the given information already reveals.
Keep reading — it’s free
Create a free Solar account to unlock the rest of this linear equations in two variables guide, plus adaptive practice on exactly this skill.
Slope-intercept form shows slope and the vertical intercept. Point-slope form uses a slope and known point. Standard form combines the two variable terms into a total.
How do I find slope from standard form?
Solve for y. When the y coefficient is nonzero, the slope is the negative of the x coefficient divided by the y coefficient.
How do I find a perpendicular slope?
For a finite nonzero slope, take its negative reciprocal. Horizontal and vertical lines form the special perpendicular pair.
Can I graph standard form in Desmos?
Yes. Enter the equation directly and inspect its graph. You do not need to rewrite it in slope-intercept form just to graph it.
Why does one equation have many solutions?
Each ordered pair on its line satisfies the equation. A second independent condition or contextual restriction is needed to narrow the possibilities.