AI Tools Free

Linear Equation Solver

Enter Coefficient a, Constant b, and Right side c into this linear equation solver to solve any single-variable equation a × x + b = c over the real numbers (x = (c − b) / a) in one click. Handles unique real roots, No solution, and Infinitely many solutions locally in your browser.

Free to useNo sign-upRuns in your browser
Enter your details

Enter the inputs, then select Calculate result.

Your result
Enter your details

Result will appear here

How to solve linear equations with this linear equation solver

A solver for linear equations isolates the unknown variable x in the first-degree algebraic equation a × x + b = c, where a, b, and c are finite real numbers between -1,000,000,000 and 1,000,000,000. Enter your three values to see how to solve linear equations (2x + 3 = 11 returns x = 4) or classify degenerate a = 0 cases immediately in your browser.

If a ≠ 0, x = (c − b) / a; if a = 0 and b ≠ c, No solution; if a = 0 and b = c, Infinitely many solutions.

Isolates x in a × x + b = c by subtracting Constant b from Right side c and dividing by Coefficient a (up to 12 significant digits), or classifies a = 0 into No solution vs. Infinitely many solutions (for 2×2 linear systems, see our System of Equations Solver).

Diagram showing 2 × x + 3 = 11 simplified by subtracting 3 (2x = 8) and dividing by 2 to yield x = 4
With Coefficient a = 2, Constant b = 3, and Right side c = 11, x = (11 − 3) / 2 = 4.

Solver for Linear Equations Reference Table (10 Algebraic Cases)

Compare 10 standard algebra problems showing how textbook equations map to Coefficient a, Constant b, Right side c, the algebraic isolation step, and the exact calculator output.

Equation FormCoefficient aConstant bRight side cIsolation Step ((c − b) / a)Exact Calculator OutputSolution Regime
2x + 3 = 11 (Default)2311(11 − 3) / 2 = 8 / 2x = 4Unique integer root
5x − 15 = 0 (x-intercept form)5-150(0 − (-15)) / 5 = 15 / 5x = 3Unique positive root
-4x + 9 = 25 (Negative slope)-4925(25 − 9) / -4 = 16 / -4x = -4Unique negative root
4x + 7 = 9 (Terminating fraction)479(9 − 7) / 4 = 2 / 4x = 0.5Exact decimal root
-3x + 7 = 2 (Repeating fraction)-372(2 − 7) / -3 = -5 / -3x = 1.6666666666712-sig-fig rational root
0.25x + 1.5 = 6.25 (Decimals)0.251.56.25(6.25 − 1.5) / 0.25x = 19Decimal coefficient run
5x − 4 = 2x + 11 (a = 5 − 2)3-411(11 − (-4)) / 3 = 15 / 3x = 5Variables on both sides
-8x + 6 = 6 (Zero numerator)-866(6 − 6) / -8 = 0 / -8x = 0Normalized -0 to 0
0x + 3 = 11 (Contradiction)03110x = 8 (b !== c)No solutionInconsistent (∅)
0x + 5 = 5 (Algebraic identity)0550x = 0 (b === c)Infinitely many solutionsIdentity (all real x)

How to solve a linear equation in 3 steps

Follow these three steps to run this solving linear equations calculator in your browser.

Enter coefficient a (#a)

Type the multiplier of x (2 preloaded, allowed range -1,000,000,000 to 1,000,000,000) into the Coefficient a field.

Input and settings
Linear Equation Solver input panel showing Coefficient a = 2, Constant b = 3, and Right side c = 11
Step 1: Enter Coefficient a, Constant b, and Right side c (-1,000,000,000 to 1,000,000,000).

Enter constant b and right side c

Type the left-hand constant b (3 preloaded) and right-hand total c (11 preloaded), using negative signs for subtracted terms.

Tool result
Linear Equation Solver result panel displaying x = 4 after clicking Calculate result
Step 2: Select Calculate result to solve a × x + b = c for x.

Click Calculate result and export

Press Calculate result to solve for x immediately, then click Copy or Download (result.txt) to save the answer.

Review the details
Linear Equation Solver output block with Copy and Download result.txt actions
Step 3: Copy the solution string or download result.txt.

Worked solving linear equations calculator examples

Review three algebra scenarios covering standard two-step equations, negative coefficients with repeating fractions, and zero-coefficient boundary checks.

Preloaded two-step equation (2x + 3 = 11 gives x = 4)

Running the preloaded baseline (a = 2, b = 3, c = 11) outputs x = 4. Subtracting 3 from 11 leaves 2x = 8, and dividing by 2 gives x = 4 (verified by substituting 2(4) + 3 = 11). If your equation includes an x² term, switch to our Quadratic Equation Solver.

Worked example showing 2x + 3 = 11 solved to x = 4
2x + 3 = 11 isolates 2x = 8 and outputs x = 4.

Negative coefficient and repeating fraction (-3x + 7 = 2)

For the equation -3x + 7 = 2, set a to -3, b to 7, and c to 2. The solver computes (2 − 7) / -3 = -5 / -3 and displays x = 1.66666666667 rounded to 12 significant digits. If you also want the exact reduced fraction 5/3, paste the decimal or numerator/denominator into our Decimal to Fraction Converter or Fraction Simplifier.

Worked example showing -3x + 7 = 2 evaluated to x = 1.66666666667 (5/3)
-3x + 7 = 2 evaluates (-5) / (-3) and formats to x = 1.66666666667.

Degenerate zero-coefficient checks (0x + 3 = 11 vs 0x + 5 = 5)

When simplifying an equation cancels the variable term on both sides (for example, 4x + 3 = 4x + 11 => 0x + 3 = 11), entering 0, 3, and 11 leaves 3 !== 11 and outputs No solution. Conversely, an identity like 2(x + 2.5) = 2x + 5 simplifies to 0x + 5 = 5 and returns Infinitely many solutions.

Comparison of 0x + 3 = 11 (No solution) and 0x + 5 = 5 (Infinitely many solutions)
When Coefficient a = 0, unequal constants return No solution and equal constants return Infinitely many solutions.

Rewriting equations into ax + b = c and reading the solution

Use these three algebraic rules to convert textbook problems into the a, b, and c fields before solving:

First, for equations with x on both sides (px + q = rx + s), subtract rx from both sides so all variable terms sit on the left: (p − r)x + q = s. Enter Coefficient a = p − r, Constant b = q, and Right side c = s. For fractional coefficients like x/4 − 1/2 = 3, either enter decimals (a = 0.25, b = -0.5, c = 3) or multiply every term by the least common multiple from our LCM Calculator (4) to enter integers (a = 1, b = -2, c = 12 => x = 14).

Second, geometrically, solving ax + b = c finds the x-coordinate where the line y = ax + b intersects the horizontal line y = c (see our Line Equation Calculator and Line Intersection Calculator). If you need to solve two equations in x and y, open our System of Equations Solver, or use our Diophantine Equation Solver for integer solutions to ax + by = c.

Geometric interpretation showing 2x + 3 = 11 as the intersection of y = 2x + 3 and y = 11 at x = 4
Solving ax + b = c finds the exact x-coordinate where y = ax + b crosses y = c.

Linear equation solver input bounds (±1 billion) and precision rules

Check these three technical constraints before exporting results:

First, each field (#a, #b, #c) accepts finite real numbers between -1,000,000,000 and 1,000,000,000. Leaving a field blank or exceeding ±1,000,000,000 triggers "Enter a valid Coefficient a.", "Enter a valid Constant b.", or "Enter a valid Right side c."

Second, solutions are computed in IEEE 754 double-precision arithmetic and formatted to at most 12 significant digits via toPrecision(12), with negative zero (-0) normalized to x = 0. To evaluate higher-degree polynomials up to 100 coefficients at a given x, use our Polynomial Calculator.

Summary of the ±1 billion coefficient range, -0 normalization, and 12-significant-digit formatting
Accepts finite real coefficients from -1,000,000,000 to 1,000,000,000 with 12-significant-digit precision.

Frequently asked questions about the linear equation solver

Answers about using Linear Equation Solver and understanding its results.

How do you solve a linear equation of the form ax + b = c?

Isolate the variable term ax by subtracting b from both sides of the equation (ax = c - b), then divide both sides by the nonzero coefficient a: x = (c - b) / a. For 2x + 3 = 11, subtracting 3 gives 2x = 8, and dividing by 2 gives x = 4.

How do you solve linear equations with fractions or decimals?

You can either enter fractional coefficients directly as decimals (for example, enter 0.25 for 1/4 or 0.125 for 1/8) or multiply every term on both sides of the equation by the least common denominator (LCD) to convert all fractions into whole numbers before entering a, b, and c.

How do I rewrite an equation with x on both sides (px + q = rx + s) for this solver?

Combine the two x terms on the left by subtracting rx from both sides to form (p - r)x + q = s. Put the net multiplier p - r into #a, the left-hand constant q into #b, and the right-hand number s into #c. For instance, 8x + 2 = 3x + 17 simplifies to 5x + 2 = 17, which solves to x = 3.

When does a linear equation return "No solution" or "Infinitely many solutions"?

Both outcomes happen when the variable multiplier a equals zero. An equation where the two constant sides disagree (b ≠ c, such as 0x - 4 = 9) is a contradiction with No solution, whereas an equation where both constants are identical (b = c, such as 0x + 12 = 12) is true for every real x and reports Infinitely many solutions.

How do I solve a linear equation in two variables or a 2×2 system of equations?

A single equation with two variables (ax + by = c) defines an infinite line of real points (x, y); to find integer-only solutions, use our Diophantine Equation Solver. To find the unique (x, y) intersection of two linear equations (a1x + b1y = c1 and a2x + b2y = c2), use our System of Equations Solver.

Solve your linear equation now

Choose another tool for your next calculation, conversion, or text task.

Calculate result