How do I find out the equation of a line?

First of all, we must remember the formula for the equation of a line.

This is y=mx+c.

It is important to understand what each part of the equation means:

-y is the y-coordinate of any point on the line
-x is the x coordinate of the point on the line
-'m' stands for the gradient of the line
-'c' indicates the y-intercept (the point at which the line crosses the y axis)

1. Pick a point on the line to get your x and y co-ordinates. We want to try and use whole numbers where possible to make our sums easier.

2. Next, we can find the gradient of the line by finding the change in x/change in y (or some may know this as step/rise).
To do this, we need to find another point on the line, therefore to find the change we will do x1-x2/y1-y2.

Be careful here to note whether the line is a positive or negative gradient, as it is easy to get confused. If your answer is outside the ranges of -1 to 1, something in your math is wrong.

3. Once you have found your gradient the only other unknown is c. Substitute your value of m and the coordinates of any point on the line into your equation and rearrange to find the value of c.

The easiest way to do this is usually to subtract mx from both sides leaving us with y-mx=c.

4. To finish, write your equation of the line with your values of m and c, but do not put values into x and y are these are not constant values.

JB
Answered by Jessica B. Maths tutor

2813 Views

See similar Maths GCSE tutors

Related Maths GCSE answers

All answers ▸

When should I use the quadratic formula?


A shape consists of a quarter circle (radius r = 4cm) attached to a triangle (side length = 4cm and hypotenuse = 5cm). This shape is surrounded by a square (side length 8cm). If the shape is coloured in, what is the area in the square that is uncoloured?


Johnny take 4 hours 50 minutes to drive 213 miles to Manchester. He then takes the train to Liverpool. Liverpool is 37 miles from Manchester and the train travels at 90mph. Calculate Johnny's average speed for his total journey in mph.


Find the volume of a cone with radius 13cm and with a perpendicular height of 9cm.


We're here to help

contact us iconContact ustelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

MyTutor is part of the IXL family of brands:

© 2025 by IXL Learning