Allday Education

How Many Solutions Does a System Have?

A system of two linear equations can end three ways: exactly one solution, no solution, or infinitely many solutions. There is no fourth option — two straight lines can't cross exactly twice, or exactly five times.

The best part is that you can tell which case you have without solving anything. The number of solutions is just the number of points where the two lines meet, and slopes and yy-intercepts tell you that instantly.

The three cases

Different slopes: the lines are tilted differently, so they must cross exactly once. The system has exactly one solution.

Same slope, different yy-intercepts: the lines are parallel — same tilt, different starting heights — so they never meet. The system has no solution. The graph below shows this case: y=2x+3y = 2x + 3 and y=2x2y = 2x - 2 run side by side forever.

Same slope and same yy-intercept: the two equations draw the exact same line. Every point on that line works in both equations, so the system has infinitely many solutions.

-3-2-1123-3-2-1123xy

Compare slopes first, then intercepts

Put both equations in slope-intercept form y=mx+by = mx + b and compare the mm values. If the slopes are different, stop — the answer is exactly one solution, and the intercepts don't matter.

If the slopes match, compare the bb values. Different yy-intercepts mean parallel lines and no solution. Matching yy-intercepts mean it's the same line and infinitely many solutions.

Watch for the same line in disguise

An equation like 2y=6x42y = 6x - 4 hides its slope. Divide both sides by 22 and it becomes y=3x2y = 3x - 2 — the same line as y=3x2y = 3x - 2, even though the two equations looked different at first glance.

So before you compare anything, rewrite each equation so yy is alone on the left. One quick division or subtraction is all it usually takes, and it keeps you from calling two copies of the same line "parallel."

Worked examples

Example 1: different slopes

How many solutions does the system y=5x+2y = 5x + 2 and y=3x+2y = -3x + 2 have?

Compare the slopes535 \neq -3
Different slopes mean the lines cross exactly once
They happen to share a yy-intercept, so they cross there(0,2)(0, 2)

Answer: Exactly one solution.

Example 2: same slope, different intercepts

How many solutions does the system y=3x+4y = 3x + 4 and y=3x1y = 3x - 1 have?

Compare the slopes3=33 = 3
Compare the yy-intercepts414 \neq -1
Same slope with different yy-intercepts means parallel lines — they never cross

Answer: No solution.

Example 3: the same line in disguise

How many solutions does the system y=3x2y = 3x - 2 and 2y=6x42y = 6x - 4 have?

Divide both sides of the second equation by 22y=3x2y = 3x - 2
Compare the equations — they are identical
Every point on the line satisfies both equations

Answer: Infinitely many solutions.

Try one yourself

-4-3-2-112345-4-224xy

Common questions

Can a system of two lines have exactly two solutions?

No. Two distinct straight lines can cross at most once. If you ever find two different points that work in both equations, the "two" lines are actually the same line — and then every point on it works, giving infinitely many solutions.

Does infinitely many solutions mean any pair of numbers works?

No. Only the points on the shared line work. y=3x2y = 3x - 2 and 2y=6x42y = 6x - 4 have infinitely many solutions, but (0,5)(0, 5) still fails both — it isn't on the line. Infinitely many candidates, not all candidates.

What if the equations aren't in y=mx+by = mx + b form?

Rewrite them first. Comparing slopes only works once each equation is solved for yy. Move the xx-term across, divide by the coefficient of yy, and then compare mm and bb.

What does no solution look like when you solve algebraically?

The variables cancel and you're left with a false statement like 4=14 = -1. That contradiction is the algebra's way of saying the lines are parallel — no pair (x,y)(x, y) can make both equations true.

Want the video version?

Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.

Try it for $1