Linear Equation Solver
Solve linear equations with one or two variables. Enter coefficients and get exact solutions with step-by-step working.
🔢 What is a Linear Equation?
A linear equation is an algebraic equation in which the variables appear only to the first power (no x², x³, or square roots of x). The word "linear" comes from "line" — when graphed, a linear equation with one variable is a point on the number line, and a linear equation with two variables is a straight line on the coordinate plane.
The one-variable form is ax + b = c. To solve, isolate x by performing the same operations on both sides: subtract b from both sides to get ax = c − b, then divide by a to get x = (c − b) / a. This is valid whenever a ≠ 0. If a = 0 and b ≠ c, there is no solution (0 = c − b is false). If a = 0 and b = c, there are infinitely many solutions (0 = 0, true for all x).
A two-variable system (2×2) consists of two equations, each with two unknowns x and y. Geometrically, each equation represents a straight line. The solution is the intersection point of the two lines. Three outcomes are possible: one solution (lines intersect at exactly one point), no solution (lines are parallel — they never meet), or infinite solutions (lines are identical — every point on the line satisfies both equations).
Linear equations are the foundation of algebra and appear everywhere in science, engineering, and daily life: calculating rates (if I drive at 60 km/h for x hours, I cover 60x km), mixing problems, budget planning (your savings after x months = initial + monthly × x), and physics (distance = speed × time). Mastering linear equations is the gateway to more advanced mathematics including matrices, calculus, and linear programming.