Algebra

Linear Equations Solver

Isolate x in one-step and two-step linear equations ax + b = c with full algebraic balancing steps.

⚡ Interactive Linear Equations Solver

🔒 Calculation Privacy
Calculated Result
0
Step-by-Step Mathematical Proof:
🚀 Open Main Scientific Calculator

What is a Linear Equation? (Intuition & Algebraic Balance)

A linear equation is an algebraic equality where every variable is raised strictly to the first power (exponent of 1), containing no square roots, products of variables, or trigonometric terms. The standard single-variable linear equation takes the form ax + b = c (or ax + b = 0). Geometrically, when graphed on a coordinate plane, any linear relationship produces a continuous straight line—hence the term "linear".

Solving a linear equation is fundamentally an exercise in maintaining balance. Picture a two-pan mechanical balance scale: as long as whatever operation you perform on the left pan (adding, subtracting, multiplying, or dividing) is mirrored identically on the right pan, the balance remains true. The objective is to isolate the unknown variable x completely by undoing operations in reverse order.

CalcSolver's Linear Equations Calculator solves one-step, two-step, and multi-step equations involving parentheses, distribution, and variable terms on both sides, rendering step-by-step balanced transformations.

Governing Principles & Forms of Linear Equations

Linear equations adhere to the Addition, Subtraction, Multiplication, and Division Properties of Equality:

Standard Form: ax + b = c  (Solution: x = (c - b) / a, for a ≠ 0)
Variables on Both Sides: ax + b = cx + d ⇒ (a - c)x = d - b ⇒ x = (d - b) / (a - c)
Distributive Property: a(bx + c) = abx + ac
Identity (Infinite Solutions): 0x = 0 ⇒ True for all real numbers x
Contradiction (No Solution): 0x = k  (where k ≠ 0) ⇒ Inconsistent equation

How to Solve Linear Equations by Hand (Step-by-Step Guide)

  1. Clear Fractions or Decimals (Optional but Helpful): Multiply the entire equation by the least common denominator (LCD) to eliminate fractional coefficients.
  2. Eliminate Parentheses (Distribute): Apply the distributive property a(bx + c) = abx + ac across all groupings.
  3. Combine Like Terms on Each Side: Group constants with constants and variable terms with variable terms on the left and right sides independently.
  4. Collect Variable Terms on One Side: Add or subtract variable terms so that x appears on only one side of the equality.
  5. Collect Constants on the Opposite Side: Add or subtract numbers so all numerical constants sit on the opposite side.
  6. Isolate the Variable: Divide or multiply by the coefficient of x to find the final isolated solution.
  7. Check by Substitution: Substitute your answer back into the original equation to verify that Left Side = Right Side.

3 In-Depth Worked Examples with Complete Solutions

Example 1: Multi-Step Equation with Distributive Property

Problem: Solve 4(2x - 3) + 7 = 31.

Step-by-Step Solution:

  • Step 1 (Distribute 4): 4 · 2x - 4 · 3 + 7 = 31 ⇒ 8x - 12 + 7 = 31.
  • Step 2 (Combine like terms): -12 + 7 = -5, so 8x - 5 = 31.
  • Step 3 (Add 5 to both sides): 8x - 5 + 5 = 31 + 5 ⇒ 8x = 36.
  • Step 4 (Divide by 8): x = 36 / 8 = 9 / 2 = 4.5.
  • Verification: 4(2(4.5) - 3) + 7 = 4(9 - 3) + 7 = 4(6) + 7 = 24 + 7 = 31 (True).

Exact Solution: x = 9/2 (4.5)

Example 2: Variables on Both Sides with Fractions

Problem: Solve (3/4)x - 5 = (1/2)x + 2.

Step-by-Step Solution:

  • Step 1 (Clear denominators by multiplying all terms by LCD = 4):
  • 4 · (3/4)x - 4 · 5 = 4 · (1/2)x + 4 · 2 ⇒ 3x - 20 = 2x + 8.
  • Step 2 (Subtract 2x from both sides): 3x - 2x - 20 = 8 ⇒ x - 20 = 8.
  • Step 3 (Add 20 to both sides): x = 8 + 20 = 28.

Final Solution: x = 28

Example 3: Real-World Business (Subscription Break-Even)

Scenario: Gym Plan A charges a $50 sign-up fee plus $25 per month. Gym Plan B charges a $10 sign-up fee plus $35 per month. Write a linear equation to find the exact number of months (m) at which both gym plans cost identical amounts.

Step-by-Step Solution:

  • Set up linear equation: Cost A = Cost B ⇒ 25m + 50 = 35m + 10.
  • Subtract 25m from both sides: 50 = 10m + 10.
  • Subtract 10 from both sides: 40 = 10m.
  • Divide by 10: m = 40 / 10 = 4 months.

Break-Even Point: Both gyms cost exactly the same ($150) at 4 months.

Common Linear Equation Traps to Avoid

  • Sign Distribution Errors: In -(3x - 5), distributing the negative yields -3x + 5. Forgetting to flip the sign of the second term (-3x - 5) is the single most common student mistake.
  • Operating on One Side Only: Adding 5 to the left side without adding 5 to the right side instantly destroys the mathematical equality.
  • Dividing by Zero: If an equation simplifies to 0x = 7, dividing by zero is undefined. The correct answer is "No Real Solution" (contradiction).
  • Dropping the Negative on Negative Coefficients: When solving -4x = 20, divide by -4, yielding x = -5, NOT x = 5.

Real-World & Industry Applications

Linear equations are the foundation of daily commerce and STEM. Financial planners use linear amortization schedules to model auto loan payoffs. Pharmacists calculate IV drip rates using linear proportional dosage equations based on patient body weight. In industrial manufacturing, cost accountants use linear equations (Total Cost = Fixed Overhead + Variable Unit Cost × Quantity) to set wholesale pricing.

Frequently Asked Questions About Linear Equations & CalcSolver

What is the difference between an identity and a contradiction?
An identity is an equation that is true for every possible value of x (e.g., 2x + 4 = 2(x + 2) ⇒ 4 = 4), meaning infinite solutions. A contradiction is false for all values (e.g., x + 2 = x + 7 ⇒ 2 = 7), meaning no solution exists.
How does CalcSolver handle equations with multiple sets of parentheses?
CalcSolver applies standard PEMDAS / BODMAS hierarchy: expanding innermost parentheses first, distributing negative signs and fractional multipliers, then gathering like terms systematically.
Can linear equations have fractional or negative answers?
Yes. Real-world linear equations frequently produce fractional, decimal, or negative answers, all of which are valid solutions on the real number line.
Is CalcSolver's Linear Equation Solver free?
Yes, CalcSolver is completely free forever with no registration, no advertisements, and instant browser processing.
Scroll to Top