Linear Equation Calculator
Use this tool to solve either a single linear equation or a system of two linear equations. Enter coefficients and constants, then click calculate.
1) Solve one equation: ax + b = c
2) Solve a system of two equations
Form: a₁x + b₁y = c₁ and a₂x + b₂y = c₂
How to use this calculator of linear equations
This page is designed to make linear equation solving fast and practical. If you have one equation with one unknown, use the first section. If you have two equations with two unknowns, use the second section. The calculator will return the final answer and explain whether the system has a unique solution, no solution, or infinitely many solutions.
- Enter coefficients carefully, including negative signs.
- Decimals are accepted (for example, 0.5 or -2.75).
- If a variable is missing, enter 0 for that coefficient.
What is a linear equation?
A linear equation is an equation where each variable has exponent 1 and appears only in first degree. Graphically, a linear equation represents a straight line.
Single-variable linear equation
The common form is ax + b = c. Here, a, b, and c are known numbers, and x is the unknown you solve for.
As long as a ≠ 0, there is exactly one value of x that satisfies the equation.
Two-variable linear system
A system of two equations such as:
- a₁x + b₁y = c₁
- a₂x + b₂y = c₂
can represent two lines on a coordinate plane. Their intersection point gives the solution pair (x, y).
How the calculator works behind the scenes
For one equation
It rearranges the equation algebraically:
ax + b = c → ax = c - b → x = (c - b) / a
Special cases are handled automatically:
- If a = 0 and b = c, every x works (infinitely many solutions).
- If a = 0 and b ≠ c, no solution exists.
For two equations (Cramer's Rule)
The solver computes determinants:
- D = a₁b₂ - a₂b₁
- Dx = c₁b₂ - c₂b₁
- Dy = a₁c₂ - a₂c₁
Then:
- If D ≠ 0, unique solution: x = Dx/D, y = Dy/D.
- If D = 0 and Dx = Dy = 0, infinitely many solutions.
- If D = 0 but one of Dx, Dy is nonzero, no solution.
Common mistakes to avoid
- Forgetting minus signs (especially with b or b₂).
- Mixing equation sides without moving terms correctly.
- Typing blank inputs instead of zero.
- Assuming every system has one solution—parallel lines do not intersect.
Practice examples
Example 1: Single equation
Solve 3x + 4 = 19. The answer is x = 5.
Example 2: Two-equation system
Solve:
- 2x + y = 7
- x - y = 2
The solution is x = 3, y = 1.
Why linear equations matter
Linear equations appear in budgeting, pricing, engineering, data fitting, and science. Building confidence with these basics strengthens your algebra foundation and helps with higher-level topics like matrices, optimization, and calculus modeling.