The gradient of a straight line is the number before the x if it is in the form y=mx+c. So for y=6x+2 the gradient is 6. If the y has a factor, like 2y=6x+2, then you have to divide everything by the factor to get just y=, so the equation would be y=3x+1 and so the gradient would be 3. If you have been given a diagram instead of the equation, you'll need to work out the change in y-coordinate divided by the change in x-coordinate. So to do this, you pick any two points on the graph and work out the difference between the two y-coordinates and the difference between the two x-coordinates and then divide your answer for y-coordinates by your answer for x-coordinates. Example: points on line (3,2) and (6,10). Change in y is 10-2=8, change in x is 6-3=3. Gradient is 8/3.