Gradient and equation of a straight line
Math · Algebra I
Question 1 of 10
0On the line y = 6x − 6, what is y when x = −2?
Decimals (0.75 or 0,75), fractions (3/4) and mixed numbers (1 1/2) are accepted. Do not use thousands separators.
How to type your answer
- Fractions: 3/4. Mixed numbers: 1 1/2.
- Decimals with a point or a comma: 0.75 or 0,75.
- Negative numbers start with a minus: -3/4.
- Percentages need the % sign: 75%.
Stuck? Read the explanation
Unlocks at a streak of 5 correct answers in a row.
Embed this practice on your site or class page
Paste this HTML into your page. Students practise right there; it is free and needs no account.
Gradient and equation of a straight line explained
The gradient of a straight line measures how steeply it rises or falls. A line with a positive gradient rises from left to right, and a negative gradient falls. The equation describes every point on the line, where is the gradient and is the y-intercept, the value of where the line crosses the y-axis.
To find the gradient from two points and , divide the change in by the change in : . Subtract in the same order on the top and the bottom. Parallel lines have equal gradients. Perpendicular lines have gradients whose product is , so a gradient has a perpendicular gradient of .
To find the equation of a line when you know its gradient and one point, substitute the point into and solve for .
Worked example
A line passes through and . The gradient is .
Substitute into : , so . The line is .
A line perpendicular to it has gradient .
Key facts
- The practice questions use whole-number coordinates and, at harder levels, fractional gradients such as . You may be asked for a gradient, the value of , a -value at a given , or the intercept of a perpendicular line.
- The gradient between two points is . Subtract in the same order on top and bottom.
- To find , put the gradient and one point into .
- Perpendicular gradients multiply to . The perpendicular gradient is : flip the fraction and change the sign.
- A decimal answer is only needed at the end. Keep gradients as fractions in the working.
- Read a line in the form directly: the number in front of is the gradient, and the constant is where the line crosses the -axis.
- A positive gradient means the line rises from left to right. A negative gradient means it falls.
Worked example 2
A line passes through and . Find its equation, then find when .
- Gradient: .
- Substitute into : , so and .
- The line is .
- When : .
Check with the other point : . It lies on the line.
Worked example 3
Line has gradient . Line is perpendicular to and passes through . Find the -intercept of , to 2 decimal places.
- Gradient of : . As a decimal this is (to 2 d.p.).
- Substitute into : .
- , so .
- (to 2 d.p.).
Using the rounded gradient would give , which is wrong in the second decimal place. So use the fraction in the working and round only at the end. A check on the sign: the line goes down to the right, and at it is below the axis at , so it must have started higher up at . A positive fits.
Common mistakes
- Subtracting in a different order on top and bottom, which gives the wrong sign. Writing gives , but the correct gradient is when the order is the same on both: .
- Losing the double negative: , not 2.
- Taking the perpendicular gradient as just the reciprocal or just the negative. You need both.
- Reading as the gradient, or the other way round, from .
- Rounding the gradient to 2 decimal places before using it.
- Forgetting that a line written as has gradient , not .
Exam tips
- Write the gradient formula with the numbers in brackets, so negative coordinates are handled properly.
- Finish with a check: substitute your second point into the final equation.
- For perpendicular gradients, test that the product is . Here .
- Give the accuracy asked for ("2 decimal places") and keep unrounded values in your calculator.
- Sketch a quick picture. A line that rises must have a positive gradient, and a perpendicular line must fall.
- If you are given two points and asked for at a third , you do not have to find the full equation. Find the gradient, then move from one point along the line.
- Show every substitution, not just the result. A wrong final answer can still earn marks for a correct method.
What you will practise
New numbers every time you practise. Levels: Easy, Medium, Hard. Each answer is followed by a worked explanation.
Example questions
Easy
What is the gradient of the line y = −5x + 7?
Medium
A line with gradient 6 passes through (3, −1). Find the value of c in y = mx + c.
Hard
A straight line passes through (−6, 9) and (−10, 25). Find the value of y when x = −6.