---
slug: linear-equation-calculator
title: "Linear Equation Calculator"
category: math
updated: 2026-11-19
canonical: https://calcseed.com/c/math/linear-equation-calculator/
html: /c/math/linear-equation-calculator/
---

# Linear Equation Calculator

Solve a one-step linear equation of the form ax + b = c. Free and instant.

## Quick answer

**Quick answer:** with the default inputs (2, 3, 11), the x is **4**. Change any input to update the result.

## Default calculation

Values computed by this calculator at exactly the default inputs listed below.

### Inputs (defaults)

| Input | Value | Unit |
| --- | --- | --- |
| a (coefficient) | 2 |  |
| b (constant) | 3 |  |
| c (right side) | 11 |  |

### Outputs at these defaults

| Output | Value | Unit |
| --- | --- | --- |
| x | 4 |  |

## Formula

```text
x = (c − b) ÷ a
```

## Inputs

| Variable | Type | Unit | Default |
| --- | --- | --- | --- |
| a (coefficient) | number |  | 2 |
| b (constant) | number |  | 3 |
| c (right side) | number |  | 11 |
| x | number |  | 4 |

## Outputs

| Result | Format |
| --- | --- |
| x | primary |

## How it works

### What this calculator does

This calculator solves equations of the form ax + b = c for whichever value is missing. Enter a, b and c and it returns x; hide any one of the other three and it solves for that instead. At the defaults, the equation 2x + 3 = 11 gives x = 4, and the same machinery reports that a = 2 when you feed it x = 4, b = 3 and c = 11. One equation, four possible unknowns, one balancing rule.

### The solution formula

The formula is just the two undoing steps compressed into one line. Subtracting b strips the constant off the left side, leaving ax alone, and dividing by a uncoats the multiplication. The order matters: the subtraction must come first, because dividing by a before clearing b — say computing 11 ÷ 2 = 5.5 and then subtracting 3 — gives 2.5 instead of the correct 4 and fails the check 2 × 2.5 + 3 = 8.

#### The balancing principle

An equation is a balance scale, and every legal move happens to both sides at once. Starting from 2x + 3 = 11, subtract 3 from both sides to get 2x = 8, then divide both sides by 2 to get x = 4. Nothing else is allowed: adding to one side only, or multiplying one side and not the other, tips the scale and breaks the equality. This single principle extends unchanged to equations with variables on both sides, fractions and parentheses — they all reduce to moves like these.

### Worked example at the defaults

#### Two moves and a check

- Equation: 2x + 3 = 11.
- Subtract the constant: 2x = 11 − 3 = 8.
- Divide by the coefficient: x = 8 ÷ 2 = 4.
- Check by substitution: 2 × 4 + 3 = 8 + 3 = 11, which matches the right side.

The check step is worth doing every time, because it costs seconds and catches sign slips immediately. Solving for a different unknown uses the same rearrangement: if you know x = 4, b = 3 and c = 11 but not a, then a = (c − b) ÷ x = 8 ÷ 4 = 2. If you know x, a and c but not b, then b = c − ax = 11 − 8 = 3.

### The other three rearrangements

| Unknown | Formula | At the defaults |
| --- | --- | --- |
| x | (c − b) ÷ a | (11 − 3) ÷ 2 = 4 |
| a | (c − b) ÷ x | (11 − 3) ÷ 4 = 2 |
| b | c − a × x | 11 − 2 × 4 = 3 |
| c | a × x + b | 2 × 4 + 3 = 11 |

Every row is the same equation wearing a different mask, and each one appears constantly in applied work. The c row is the pattern behind pricing formulas — total cost = rate × quantity + fixed fee — while the a row is how you back out a rate from a known bill: a $50 utility bill with a $12 fixed charge and 38 units used implies a rate of (50 − 12) ÷ 38 = $1.00 per unit.

### Special cases and edge values

- If a is zero and b equals c, the equation reads b = c and every value of x satisfies it — infinitely many solutions.
- If a is zero and b differs from c, the equation is false for every x, so no solution exists.
- Negative coefficients work normally: 2x − 3 = 11 is 2x = 14, giving x = 7, because the −3 is just a b of −3.
- Fractional answers are valid solutions: 2x + 3 = 10 gives x = 3.5, and the check 2 × 3.5 + 3 = 10 confirms it.

The zero-coefficient cases explain why word problems sometimes have no answer or every answer: if the quantity you thought was scaling x never actually touches x, the equation stops constraining it. The calculator flags these through the arithmetic itself — a division by zero is the tell.

### Common mistakes

- Dividing before subtracting: 11 ÷ 2 − 3 = 2.5, not 4. Clear the constant first, every time.
- Dropping a negative sign when moving terms: from 2x − 3 = 11, the correct move is 2x = 14, but writing 2x = 8 produces x = 4 and fails the check.
- Applying an operation to one side only: 2x + 3 = 11 does not become 2x = 8 on the left while the 3 stays in place on the right.
- Multiplying the constant instead of the whole side during the check: 2 × 4 + 3 is 11, not 2 × 7 = 14.

The substitution check catches all four of these mechanically: put your answer back into the original equation exactly as written. If the two sides disagree, the mistake is somewhere between the first line and the last, and redoing the two moves from scratch is faster than hunting for it.

### Where ax + b = c appears in real work

Flat-rate plus per-unit pricing is everywhere once you look: a taxi charging $3.50 to start plus $2.25 per mile runs 8 miles for 2.25 × 8 + 3.50 = $21.50, and solving for x tells you how far $19.75 gets you — (19.75 − 3.50) ÷ 2.25 = 7.22 miles. Phone plans, gym memberships, contractor call-out fees and utility bills all follow the same shape. When two such equations must hold at once, the problem moves into the system of equations calculator; when the unknown is squared instead of scaled, it belongs to the quadratic equation calculator; and when you need the tilt of the line itself, the slope calculator computes it from two points.

## FAQ

### How do I solve 2x + 3 = 11?

Subtract 3 from both sides to get 2x = 8, then divide by 2 to get x = 4. The check 2 × 4 + 3 = 11 confirms it.

### Can the calculator solve for a, b or c instead of x?

Yes. Leave the unknown field blank and the calculator rearranges the same equation: a = (c − b) ÷ x, b = c − ax, or c = ax + b.

### What if a is zero?

The equation stops depending on x. If b equals c, every x is a solution; if b differs from c, no x works. Either way there is no single linear answer.

### Can the solution be a fraction or decimal?

Yes. 2x + 3 = 10 gives x = 3.5, and 3x + 2 = 10 gives x = 8/3 ≈ 2.667. The substitution check works identically for non-whole solutions.

### How do I handle subtraction in the equation, like 2x − 3 = 11?

Treat −3 as a constant of −3: 2x = 11 + 3 = 14, so x = 7. The formula x = (c − b) ÷ a works unchanged with b = −3.

### Why does dividing before subtracting give the wrong answer?

Order of undoing matters. For 2x + 3 = 11, dividing first gives 5.5 − 3 = 2.5, which fails the check 2 × 2.5 + 3 = 8. Clear the constant first, then divide.

### How do I check my answer?

Substitute it back into the original equation. For x = 4 in 2x + 3 = 11: 2 × 4 + 3 = 11, so both sides match and the solution is verified.

### Is every linear equation guaranteed to have a solution?

Only when the coefficient of x is nonzero. With a &ne; 0 there is exactly one solution; with a = 0 there are either infinitely many (b = c) or none (b &ne; c).

## Method and sources

Methodology: Results follow exact mathematical definitions; the arithmetic is deterministic and can be verified by hand from the steps shown.

Last updated: 2026-11-19.
- Solution of ax + b = c is x = (c - b) / a.
