Linear Equation Calculator (Solve for x)

Updated 5 Dec 2026 · By , HisaabHub · How we check

Quick answer: for ax + b = c, subtract b from both sides then divide by a: x = (c − b) ÷ a. Example: 2x + 3 = 11 gives x = 4. Two equations with two unknowns can be solved by substitution or elimination.

Advertisement

How to calculate linear equations

  1. Move the constant: subtract b from both sides.
  2. Divide both sides by the number in front of x.
  3. Check by putting x back into the equation.
  4. For two unknowns: make the x numbers equal, subtract the equations, solve y, then x.

Roman Urdu: Pehle constant ko dosri taraf bhej dein, phir x ke aage wale number se taqseem karein.

Linear Equation Calculator table

Quick reference values you can check your own numbers against.

Linear Equation Calculator table
EquationStepx
2x + 3 = 11x = (11 - 3) / 24
5x - 10 = 20x = (20 - -10) / 56
3x + 7 = 1x = (1 - 7) / 3-2
4x + 0 = 28x = (28 - 0) / 47
-2x + 6 = 0x = (0 - 6) / -23
10x + 5 = 105x = (105 - 5) / 1010

If a = 0 there is no unique solution.

Advertisement

Linear foot and other formulas

A linear foot is just one foot of length, so the price of 40 linear feet of fencing at Rs 900 a foot is Rs 36,000. Harder equations such as quadratics or differential equations need their own tools; try the quadratic equation calculator, the slope calculator for y = mx + c and the scientific calculator. Body-formula calculators (Mifflin-St Jeor, Cockcroft-Gault) have their own dedicated tools.

Official sources

Questions people ask

How do I solve a linear equation?
Isolate x: x = (c - b) / a for ax + b = c.
How do I calculate a linear foot?
A linear foot is a length of 1 foot, total linear feet = total length in feet.
What is the slope intercept form?
y = mx + c, where m is the slope and c the y-intercept.
How do I solve two equations?
Use substitution or elimination to remove one variable.
Can a linear equation have no solution?
Yes, if the x terms cancel and the constants differ, e.g. x + 1 = x + 2.
Advertisement