How do I find the equation of a straight line from a graph?

Let's use a general equation for straight lines, y= mx +c. Here, the m and c represent numbers (or constants), which will differ for each specific line. The number in the place of the m is the gradient of the line, or the slope. This is calculated by dividing the change in height along the y axis by the change in width along the x axis (sometimes called rise over run). The number in the place of the c is where the straight line crosses the y axis. If I draw an example, such as this graph, we can see that for each x coordinate that increases we go up 2 y coordinates, so our slope is 2/1=2 which we substitute for our letter m. We can also see that the line crosses the y axis at the number 1, so that is what we plug into our letter c, giving us the equation. y=2x+1

KM
Answered by Katherine M. Maths tutor

3564 Views

See similar Maths GCSE tutors

Related Maths GCSE answers

All answers ▸

Here is a right-angled triangle (base = 8cm and height = 9cm) and a rectangle (length = 16cm). The area of the rectangle is 6 times the area of the triangle. Work out the width of the rectangle.


By factorising, solve the quadratic equation x^2-8x+15=0


The circle c has equation x^2 + y^2 = 1. The line l has gradient 3 and intercepts the y axis at the point (0, 1). c and l intersect at two points. Find the co-ordinates of these points.


How do you check if a graph ever touches the x-axis?


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:

© 2026 by IXL Learning