Calculator
What the Equation Solver does
Equation Solver: calculates Solution / Root 1, Root 2 (quadratic only) and Discriminant b²−4ac (quadratic only) from Equation Type, a (in ax + b = c) and b. Example: equation type Linear (ax + b = c), a (in ax + b = c) 2 and b 3 gives solution / root 1 4.
Supply Equation Type, a (in ax + b = c), b and c and you get Solution / Root 1, Root 2 (quadratic only) and Discriminant b²−4ac (quadratic only) back. Results refresh instantly, so trying variations costs nothing but a moment.
A second opinion on a calculation takes seconds and prevents errors compounding. That is usually what brings students checking homework here.
This runs client-side, which means we never receive what you enter and could not retrieve it if asked.
The rest of this page documents each field, the method, and a worked example built from the values the equation solver loads by default.
What do the Equation Solver fields mean?
The Equation Solver uses 7 inputs. A complete set of starting values is loaded for you, so nothing is required before the first result appears.
| Field | What to enter | Default |
|---|---|---|
| Equation Type | choose from Linear (ax + b = c) or Quadratic (ax² + bx + c = 0) | Linear (ax + b = c) |
| a (in ax + b = c) | required | 2 |
| b | required | 3 |
| c | required | 11 |
| a (x² coeff) | required | 1 |
| b (x coeff) | required | -5 |
| c (constant) | required | 6 |
How does the Equation Solver work?
Each output is derived from the inputs above in a single pass; there is no hidden state carried between runs, so the same inputs always give the same calculation.
Range checks come first, so the formula only ever sees values it can handle.
Worked example
These are the values the Equation Solver loads by default, and the result it produces from them. This walkthrough uses the starting values, which means you can follow along without typing anything.
| Equation Type | Linear (ax + b = c) |
|---|---|
| a (in ax + b = c) | 2 |
| b | 3 |
| c | 11 |
| a (x² coeff) | 1 |
| b (x coeff) | -5 |
| c (constant) | 6 |
| Solution / Root 1 | 4 |
|---|---|
| What this means | x = (c − b) / a = 4 |
Beyond the formula: solving a linear equation for x
Solving ax+b=c for x has exactly one solution whenever a is nonzero. A linear equation with no solution, or infinitely many, only arises when a itself is zero, which this calculator correctly refuses to divide by rather than guessing.
Common mistakes and sanity checks
- If a = 0, the equation collapses to "b = c", which is either always true (infinitely many solutions, when b already equals c) or always false (no solution), neither case is a value of x, which is why division by zero is barred here rather than silently producing an answer.
- A quick way to check any linear solution by hand: substitute x back into the original ax+b and confirm it equals c. That catches sign errors, the most common mistake when rearranging equations manually.
- Real-world "solve for x" problems (unit conversions, break-even points, mixture problems) almost always reduce to exactly this form once simplified, even when they don’t look linear at first glance.
How to use it
- Pick a value for Equation Type: the options are Linear (ax + b = c) or Quadratic (ax² + bx + c = 0).
- Key in a (in ax + b = c).
- Fill in b.
- Type c.
- Enter a (x² coeff).
- Set b (x coeff).
- Put c (constant).
- You will see the result move while you are still editing: that is expected.
- The results panel then shows Solution / Root 1, Root 2 (quadratic only), Discriminant b²−4ac (quadratic only) and What this means.
- Share the link rather than a screenshot. It carries the values with it.
What this tool does not do
- Displayed values are rounded; the underlying calculation keeps full precision.
- Very large or very small values reach the limits of floating-point precision, about 15 significant digits.
- It assumes the values you give are already consistent with each other.
Frequently asked questions
The form asks for Equation Type, a (in ax + b = c), b, c, a (x² coeff), b (x coeff) and c (constant). Each field is pre-filled with a sensible default, meaning you can explore the calculation before committing to real figures.
With the values loaded when the page opens, solution / root 1 comes out as 4. Change a value and the number is recomputed on the spot.
No. The work runs in JavaScript inside this page, so your values never leave your device. You can confirm it in your browser network tab.
It is free to use, with no premium tier holding back the useful parts.
Full double precision is used throughout; only the displayed figure is shortened.