Achievable logoAchievable logo
GRE
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Resources
Exam catalog
Mountain with a flag at the peak
Textbook
Welcome
1. Vocabulary approach
2. Quantitative reasoning
2.1 Quant intro
2.2 Arithmetic & algebra
2.3 Statistics and data interpretation
2.4 Geometry
2.4.1 Angles
2.4.2 Triangle basics
2.4.3 Sum of interior angles
2.4.4 Pythagorean theorem
2.4.5 Right triangles (45-45-90)
2.4.6 Right triangles (30-60-90)
2.4.7 Triangle inequality theorem
2.4.8 Coordinate plane
2.4.9 Equation for a line
2.4.10 Graphing inequalities
2.4.11 Graphing parabolas
2.4.12 Graphing circles
2.4.13 Parallel and perpendicular lines
2.4.14 Quadrilaterals
2.4.15 Circles
2.4.16 3D shapes
2.4.17 Polygons
2.4.18 Regular polygons
2.4.19 Shaded region problems
2.5 Strategies
3. Verbal reasoning
4. Analytical writing
Wrapping up
Achievable logoAchievable logo
2.4.9 Equation for a line
Achievable GRE
2. Quantitative reasoning
2.4. Geometry

Equation for a line

4 min read
Font
Discuss
Share
Feedback

The standard equation for a straight line is:

y=mx+b

Let’s break it down:

  • The b variable represents the y-intercept, the value of y where the line crosses the y-axis.
  • The m variable represents the slope of the line. It tells you how steep the line is and whether it rises or falls as you move to the right.
  • The x and y variables represent coordinates (x,y) that the line passes through.

The equation for the line below is y=2x+1.

slope line equation graph of y=2x+1

Slope of a line

You can find the slope of a line by choosing any two points on the line and comparing how y changes relative to how x changes. Slope is often written as a fraction:

  • numerator: the change in y
  • denominator: the change in x

This is called rise over run (rise/run).

In the example above, the change in y between the two points is 2 units, and the change in x is 1 unit. So the slope is 2/1, which simplifies to 2. You can use any two points on the line to calculate the slope - you’ll always get the same value.

The slope component in the equation for this line is m=2:

yy​=mx+b=2x+1​

The y-intercept of a line

You can find the y-intercept by looking at where the line crosses the y-axis. This happens when x=0, so the y-intercept is the value of y when x=0.

In our example line above, the line passes through the point (0,1), so the y-intercept is 1.

The y-intercept component in the equation for this line is b=1:

yy​=mx+b=2x+1​

Sometimes the equation of a line is written so that y is not by itself. In that case, rearrange the equation so that y is alone on the left side. Then you can read the slope and y-intercept directly.

For example, what if you have the equation 4x=−2y+6?

Let’s simplify it:

4x2yy​=−2y+6=−4x+6=−2x+3​

The slope for this line is −2, and the y-intercept is 3.

Equation for a line example question

Let’s use this knowledge to solve an example question.

Which of the following pairs of lines intersect in Quadrant I?

A. y=3x+4 and y=3x−2
B. y=2x+1 and y=5x−5
C. y=−4x−3 and y=−3x−2
D. y=−2x+5 and y=−2x+3
E. y=3x+3 and y=2x+1

Think you know the answer?

(spoiler)

Answer: B. y=2x+1 and y=5x−5

Choices A and D must be incorrect because the lines in both pairs have the same slope. Lines with the same slope are parallel, so they never intersect. They’re essentially the same line, just shifted up or down.

Choices B, C, and E include pairs of lines that must eventually cross because they have different slopes. However, only the pair in choice B crosses in Quadrant I. The pairs in choices C and E move farther apart as you go to the right from the y-axis, so although they intersect somewhere, the intersection is not in Quadrant I.

Try it yourself first, then check this illustration of the correct pair.

You can verify your answer by solving for the intersection point. At the intersection, both lines have the same x value and the same y value, so you can set the two expressions for y equal to each other and solve for x.

2x+162​=5x−5=3x=x​

So, the x value at the intersection is 2. Now plug x=2 into either equation to find y.

yyy​=2x+1=2(2)+1=5​

The lines intersect at (2,5), which is in Quadrant I.

Sign up for free to take 13 quiz questions on this topic

All rights reserved ©2016 - 2026 Achievable, Inc.