Equation of a Straight Line - Math is Fun Equation of a Straight Line. The equation of a straight line is usually written this way: y = mx + b. (or "y = mx + c" in the UK see below) ...