Gradient and resistance - a warning Resistance equals slope only works for straight lines. If you plot voltage against current for a resistor then the gradient of the line is numerically equal to the resistance. But beware! This is only because the line is straight. Resistance is not about rates of change. For a bulb the line is curved.