Linear Expression Calculator
Type any linear expression, like 3x + 5 – 2x + 7, and get the simplified form with each step shown. Switch tabs to evaluate y = ax + b at a value of x, or to solve a linear equation like 2x + 3 = 11.
Supports +, -, *, /, parentheses, and implicit multiplication like 2x or 3(x+1). One variable only; x*x is not linear.
Quick Answer
The calculator above is pre-filled with one worked example per tab. Simplify: 3(x + 2) – 2x + 5 simplifies to x + 11. Evaluate: y = 3x – 2 at x = 4 gives y = 10, with slope 3, y-intercept -2 and x-intercept 0.6666666667. Solve: 2x + 3 = x + 11 gives x = 8. Click Calculate on any tab to reproduce its numbers exactly.
Key takeaways
- Every linear expression reduces to one x term plus one constant, written ax + b. Simplifying is just collecting the two piles: the x terms and the constants.
- You can type the expression the way it is written, including 2x, 3(x + 1) and x/2. No special syntax and no explicit multiplication signs are needed.
- The tool refuses non-linear input instead of guessing: x*x and division by an expression containing x get a specific explanation, not a wrong answer.
- Equations with no solution and equations where every x works are named as such, with the reduced statement (0 = 4, or 0 = 0) shown in the result.
- Quick Answer
- How to use the linear expression calculator
- How simplifying works: everything becomes ax + b
- How solving works: shrink both sides, then move the terms
- Worked examples, verified against the tool
- What this calculator will not do
- What competing calculators miss
- Frequently asked questions
- Add This Calculator to Your Website
- References
How to use the linear expression calculator
Pick the tab that matches your problem: Simplify for an expression with no equals sign, Evaluate for a value of y = ax + b at a given x, and Solve for a full equation. Results stay hidden until you click Calculate, and switching tabs hides the previous result.
- Simplify: type the expression using x as the variable. The pre-filled 3(x + 2) – 2x + 5 returns x + 11, with the term split and both combining steps shown above the result.
- Evaluate: enter a, b and the x value. With a = 3, b = -2 and x = 4, the tool substitutes to get y = 3 × 4 – 2 = 10 and also reports the slope, the y-intercept and the x-intercept. If your class writes the same job in function notation, the evaluate linear functions calculator does the substitution as f(x) instead.
- Solve: type the whole equation with one = sign. The pre-filled 2x + 3 = x + 11 returns x = 8, and the steps show both sides simplified before the terms are moved.
- Copy or share: after a run, Copy my results and Share results sit under the output and carry the full step text, not just the final answer.
Slope and intercept are worth reading even when you only needed the y value: they describe the whole line, not one point on it. When the line itself has to be fitted to a set of measured data points rather than given to you, that is a different job, handled by the linear regression calculator.
How simplifying works: everything becomes ax + b
Simplifying a linear expression means rewriting it as a single x term plus a single constant, ax + b. The tool tracks every input in exactly that two-part form, a coefficient c for x and a constant k, from the first character to the last.
Parentheses: 3(x + 2) is expanded first, to 3x + 6
Implicit multiplication: 2x means 2 × x, and 3(x + 1) means 3 × (x + 1)
Division: only by a plain nonzero number, so x/2 becomes 0.5x
The parser reads the expression the way algebra is written, which grammars of the subject describe as the language of algebra in OpenStax Elementary Algebra: terms, coefficients and like terms. It splits the input into top-level terms at the + and – signs, reduces each term to its c and k, then adds the pieces. That is why the displayed steps read the way a teacher marks them: split into terms, combine the x terms, combine the constants. Two limits follow directly from the ax + b bookkeeping and are enforced, not hidden. Multiplying two pieces that both contain x would create an x² term, so the tool stops with “That is not linear (x times x).” Dividing by anything containing x, or by zero, stops with “Division must be by a nonzero number.” Capital X is accepted as the same variable as lowercase x, and decimals work throughout, so 2.5x + 1.5 is a valid input.
How solving works: shrink both sides, then move the terms
Solving reduces each side of the equation to ax + b form first, then combines them into a single statement (a – c)x = (d – b), where the left side of the equation was ax + b and the right side was cx + d. One division finishes the job.
This is the balance method taught from the addition and subtraction properties of equality onward, and OpenStax College Algebra treats the same one-variable case in its section on linear equations in one variable. The tool shows the method in three steps: both sides simplified, the move-terms line such as 2x = 8, then the division line such as x = 8 ÷ 2. Two honest edge cases are built in. If the x terms cancel completely and the constants disagree, as in x + 1 = x + 5 reducing to 0 = 4, the answer is “No solution”: the two sides are parallel lines that never meet. If both sides were the same expression in disguise, the equation reduces to 0 = 0 and the answer is “Every x works.” One display quirk to know: the division step is shown even when the coefficient is 1, so the pre-filled example ends with “x = 8 ÷ 1” before reporting x = 8.
Worked examples, verified against the tool
Every row in this table was run through the calculator code above and copied from its output, including the long decimal in the Evaluate row. Enter any row yourself to reproduce it.
| Mode | Input | Tool result |
|---|---|---|
| Simplify | 3(x + 2) – 2x + 5 | x + 11 (x terms: 3x – 2x = x; constants: 6 + 5 = 11) |
| Simplify | 3x + 5 – 2x + 7 | x + 12 |
| Simplify | 2(x + 3) + x/2 | 2.5x + 6 |
| Evaluate | a = 3, b = -2, x = 4 | y = 10; slope 3; y-intercept -2; x-intercept 0.6666666667 |
| Solve | 2x + 3 = x + 11 | x = 8 (check: 2(8) + 3 = 19 = 8 + 11) |
| Solve | x/2 + 1 = 4 | x = 6 |
| Solve | x + 1 = x + 5 | No solution (0 = 4) |
The Evaluate row deserves one comment: the tool prints the x-intercept to ten decimal places, 0.6666666667, because it rounds every number to ten places rather than to a classroom-friendly four. Your teacher probably wants 0.6667 or the fraction 2/3; the digits the tool prints are the same value carried further.
What this calculator will not do
It handles one variable, x, in expressions that stay linear, and nothing else. Those limits are deliberate: a tool that silently accepts x² terms and returns a linear-looking answer would be teaching wrong algebra.
- Two or more variables: a letter other than x or X is rejected with the message naming the character. Substituting values into a general multi-variable expression is covered by the evaluating expressions calculator.
- Two unknowns: one equation in x and y cannot be solved here. A pair of equations in two unknowns is the job of the linear systems calculator, which works through all six coefficients.
- Powers and roots: x*x, (x + 1)(x + 2) and anything else that produces x² is refused with the not-linear message. There is no exponent operator in the parser at all.
- Division by an expression: 6/(x + 1) is refused, because the result is a rational expression, not a linear one. Division by a plain number, as in x/2, is fine.
- An equals sign in the Simplify tab: simplify expects an expression, not an equation. Move equations to the Solve tab, which requires exactly one = sign.
What competing calculators miss
The big algebra solvers are built for every topic at once, and a plain linear problem pays for that breadth:
- Symbolab: a full computer algebra system with step-by-step working, but the interface is a dense symbol pad, saving and verifying answers push toward an account, and a one-line linear simplification gets the same heavy machinery as a calculus problem. This page’s steps are the two combining moves a teacher actually marks.
- Pearson’s Simplify Expression Calculator: solid Simplify, Expand, Factor and Reduce modes with restriction notes, but it is aimed at polynomial factoring with exponents. It has no Evaluate mode that reports slope and both intercepts, and no equation solving on the same page.
- Solvely and the AI solvers: photo input and an AI tutor are genuinely handy, but the steps are generated per query and can vary between runs, and the free tool is a funnel into an app. The parser here is deterministic: the same input gives the same steps every time.
- MathCracker’s Linear Equation Calculator: careful slope-intercept work with fractions and a graph, but scoped to rewriting one equation into y = mx + b form. It does not simplify free-form expressions or evaluate at a point.
- Single-purpose equation solvers (SageCalculator, size.ly, HackMath): each covers part of the loop, solving or order of operations or systems, and HackMath’s system solver is powerful but dense. None puts free-form simplifying, evaluation with intercepts, and solving with named no-solution cases on one page.
- The gap this page fills: the full first-algebra loop in one tool, typed exactly as written, with an honest linearity check that refuses x² instead of mislabelling it.
Frequently asked questions
Combine the x terms first: 3x – 2x = x. Then combine the constants: 5 + 7 = 12. The simplified expression is x + 12, and the tool shows those same two combining steps when you run it.
An expression like 2x + 3 has no equals sign, so it can only be simplified or evaluated at a value of x. An equation like 2x + 3 = 11 has an equals sign and makes a claim that two expressions are equal, so it can be solved for the x that makes the claim true.
Subtract 3 from both sides to get 2x = 8, then divide both sides by 2 to get x = 4. In the Solve tab the tool shows this as a move-terms step, 2x = 8, followed by the division step, x = 8 ÷ 2.
Yes. The tool distributes the multiplier first, so 2(x + 3) becomes 2x + 6, and then combines the result with the other terms. Multiplied and nested parentheses work the same way as long as the result stays linear.
That message appears when the input would create an x-squared term, such as x*x or (x + 1)(x + 2), or when it cannot be reduced to the form ax + b. This page only handles one-variable linear expressions, so it refuses instead of returning a wrong simplification.
Yes. Division by a plain number is supported in every mode, so x/2 + 1 = 4 solves to x = 6, and decimal coefficients such as 2.5x work as well. Division by anything containing x is not allowed, because the result would not be linear.
It means the equation reduces to a false statement such as 0 = 5, so no value of x can make it true. Graphically the two sides are parallel lines with the same slope and different intercepts, so they never meet. The opposite case, where every x works, happens when both sides simplify to the same expression and the equation reduces to 0 = 0.
For y = ax + b, a is the slope, the rise over run of the line, and b is the y-intercept, where the line crosses the y-axis. The x-intercept is -b/a, where the line crosses the x-axis, and the tool lists all three under the evaluated y value. When a = 0 the line is horizontal, so there is no x-intercept row.
Add This Calculator to Your Website
Embed this calculator on your own site with the code below. Pick a size to preview it live, then copy the code.
Powered by Calculator Zilo
References
- OpenStax, Rice University. Elementary Algebra 2e, Section 1.2: Use the Language of Algebra. Accessed October 22, 2026.
- OpenStax, Rice University. Elementary Algebra 2e, Section 2.1: Solve Equations Using the Subtraction and Addition Properties of Equality. Accessed October 22, 2026.
- OpenStax, Rice University. College Algebra 2e, Section 2.2: Linear Equations in One Variable. Accessed October 22, 2026.
- OpenStax, Rice University. College Algebra 2e, Section 4.1: Linear Functions. Accessed October 22, 2026.
- Wolfram MathWorld. Linear Equation. Accessed October 22, 2026.
