The Equation Solver Calculator solves equations for the unknown. Enter an equation and get the value of x.

Equation Solver Calculator

Solve a·x² + b·x + c = 0 — or set a = 0 for a linear equation — and get the roots, discriminant, vertex, plus f(x), f′(x) and the integral from 0 to x at any point you pick.

Free to use Quadratic & linear Integral included Derivative included

Enter your values

Fill in the fields below — the result appears with every step shown.

Shown on the printed, PDF and PNG copies of your result. Leave blank to stay anonymous.

Enter a valid value for coefficient a (x² term).

Set a = 0 to solve the linear equation b·x + c = 0 instead.

Enter a valid value for coefficient b (x term).

Enter a valid value for constant c.

Enter a valid value for also evaluate at x =.

f(x), the derivative f′(x) and the definite integral from 0 to x are reported at this point.

Local browser calculation

Review your inputs and the tool’s supported scope before using the result.

Calculator loading… If this message stays, this view is not running the calculator's script — open this file in a full browser tab, then press Calculate.

Your result will appear here

Enter your values above, then press Calculate — or press Enter in any field.
TinyExe Equation Solver Calculator tinyexe.comFree online calculators

TinyExe · Equation Solver Result

Calculated locally in your browser

Calculated on
—

–
—

Name

—

Coefficient a (x² term)

—

Coefficient b (x term)

—

Constant c

—

How this was calculated

    What to do next

      TinyExe · tinyexe.com — Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.

      Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      Embed this tool

      Add this Equation Solver Calculator to your own page — copy the code below and paste it where you want the tool to appear.

      The embed loads the live calculator in a frame, so it stays up to date automatically. Choose a width, check the code, then copy it. When you publish on WordPress, keep the src pointing at your live tool URL.

      Works in WordPress (Custom HTML block), HTML pages, and most site builders.

      The short answer

      To solve an equation in coefficient form, apply the quadratic formula x equals minus b, plus or minus the square root of b squared minus 4ac, all over 2a; if a is 0 the equation is linear and x equals minus c over b, so 2x minus 4 equals 0 gives x equals 2. For x squared minus 5x plus 6 the roots are 3 and 2, and its integral from 0 to 2 is 4.6667.

      • Quadratic formula: x = (−b ± √(b²−4ac)) / 2a
      • Linear case a = 0: x = −c/b, for example 2x − 4 = 0 gives x = 2
      • The discriminant b²−4ac decides: two roots, one repeated root, or none (real)
      • Definite integral from 0 to x: a·x³/3 + b·x²/2 + c·x — for t² − 5t + 6 to x = 2 it is 4.6667
      • Vertex sits at x = −b/2a, midway between the roots

      Discriminant tells the story

      Reference values for this calculator.

      DiscriminantRootsGraph
      D > 0Two distinct real rootsCrosses x-axis twice
      D = 0One repeated rootTouches x-axis at vertex
      D < 0No real roots (complex pair)Never touches x-axis

      The formula

      The exact formula this calculator uses — every variable in it is explained in the card below.

      The formula

      Quadratic formula: x = (−b ± √(b² − 4ac)) / 2a for a·x² + b·x + c = 0 when a ≠ 0; linear case a = 0: x = −c/b; derivative f′(x) = 2a·x + b; definite integral ∫₀ˣ f(t)dt = a·x³/3 + b·x²/2 + c·x

      Ideas enhancement: solving is only half the job — the tool also returns the discriminant, the vertex, and f(x) with f′(x) and the definite integral from 0 to x at a point you choose, so the same run supports root-finding, graphing prep and calculus homework checks. Setting a = 0 switches it to the linear solver (b·x + c = 0), exactly as the live tool does.

      Worked examples

      Worked examples with the full working shown — try them in the calculator to check.

      Example 1

      Classic factorable quadratic

      x² − 5x + 6 = 0, evaluate at 0

      CalculationSteps
      Discriminant D = b² − 4ac = -5² − 4×1×6 = 1 √D = 1 x = (−b ± √D) / 2a → x₁ = 3, x₂ = 2 f(0) = 6; f′(0) = -5 ∫₀^0 f(t)dt = a·x³/3 + b·x²/2 + c·x = 1×0³/3 + (-5)×0²/2 + (6)×0 = 0 Check f(x₁) = 1×3² + -5×3 + 6 ≈ 0Roots 3 and 2 — Two distinct real roots; the parabola crosses the x-axis at both.

      Result

      Example 2

      Repeated root

      x² − 4x + 4 = 0, evaluate at 2

      CalculationSteps
      Discriminant D = b² − 4ac = -4² − 4×1×4 = 0 √D = 0 x = (−b ± √D) / 2a → x₁ = 2, x₂ = 2 f(2) = 0; f′(2) = 0 ∫₀^2 f(t)dt = a·x³/3 + b·x²/2 + c·x = 1×2³/3 + (-4)×2²/2 + (4)×2 = 2.6667 Check f(x₁) = 1×2² + -4×2 + 4 ≈ 0Roots 2 and 2 — A repeated root: the parabola touches the x-axis at its vertex.

      Result

      Example 3

      Decimal coefficients

      2x² + 3x − 2 = 0, evaluate at 1

      CalculationSteps
      Discriminant D = b² − 4ac = 3² − 4×2×-2 = 25 √D = 5 x = (−b ± √D) / 2a → x₁ = 0.5, x₂ = -2 f(1) = 3; f′(1) = 7 ∫₀^1 f(t)dt = a·x³/3 + b·x²/2 + c·x = 2×1³/3 + (3)×1²/2 + (-2)×1 = 0.1667 Check f(x₁) = 2×0.5² + 3×0.5 + -2 ≈ 0Roots 0.5 and -2 — Two distinct real roots; the parabola crosses the x-axis at both.

      Result

      Example 4

      Linear equation (live example)

      2x − 4 = 0, so a = 0, b = 2, c = −4, evaluate at 2

      CalculationSteps
      a = 0, so the equation is linear: b·x + c = 0 with b = 2 and c = -4 x = −c/b = −(-4) / 2 = 2 Check: 2×2 + (-4) = 0 f(2) = 2×2 + (-4) = 0; f′(2) = 2 ∫₀^2 f(t)dt = b·x²/2 + c·x = 2×2²/2 + (-4)×2 = -4Root 2 — Linear equation: with a = 0 there is a single root, x = −c/b. At the root, f(2) = 0, as the check in the working shows.

      Result

      Example 5

      Definite integral of a quadratic

      x² − 5x + 6 = 0, evaluate the integral at 2

      CalculationSteps
      Discriminant D = b² − 4ac = -5² − 4×1×6 = 1 √D = 1 x = (−b ± √D) / 2a → x₁ = 3, x₂ = 2 f(2) = 0; f′(2) = -1 ∫₀^2 f(t)dt = a·x³/3 + b·x²/2 + c·x = 1×2³/3 + (-5)×2²/2 + (6)×2 = 4.6667 Check f(x₁) = 1×3² + -5×3 + 6 ≈ 0Roots 3 and 2, and the definite integral from 0 to 2 is 4.6667 — Two distinct real roots; the parabola crosses the x-axis at both.

      Result

      How to use this calculator

      Step 1

      Write your equation as a·x² + b·x + c = 0, moving everything to one side. For a linear equation, set a = 0 and enter b and c from b·x + c = 0.

      Step 2

      Enter a, b and c, watching the signs.

      Step 3

      Optionally enter an x to evaluate f(x), f′(x) and the definite integral from 0 to x.

      Step 4

      Read the root or roots and the discriminant: for a linear equation the single root is x = −c/b.

      Step 5

      If you get a negative discriminant message, the quadratic roots are complex — see the limitations.

      In short: An equation solver for quadratic and linear equations finds the values of x that make a·x² + b·x + c equal zero (with a = 0 giving the linear case b·x + c = 0), using the quadratic formula or x = −c/b, and also evaluates the function, its derivative and its definite integral.

      Frequently asked questions

      What if a = 0?

      Then the equation is linear, b·x + c = 0, and this solver returns its single root x = −c/b — for example 2x − 4 = 0 (a = 0, b = 2, c = −4) gives x = 2. If b is also 0 there is no unique root: c = 0 makes it an identity that every x satisfies, and any other c makes it a false statement with no solution, and the solver says so plainly.

      Why does it say no real roots?

      Because b² − 4ac is negative: the parabola never reaches the x-axis. The true roots are a complex pair (−b ± i√|D|) / 2a, which this real-valued solver reports honestly instead of inventing a number.

      Which root is the headline value?

      For a quadratic, the larger root x₁, with x₂ shown in the details. For a linear equation there is only one root, and that is the headline value. For projectile or area problems the context decides which quadratic root is physical — often the positive one or the one inside the domain.

      How can I check a root?

      Substitute it back: a·x² + b·x + c should come out at (or extremely near) zero. The steps show this substitution for x₁, and for a linear root they show b·x + c coming out at zero.

      How is the definite integral calculated?

      By the power rule applied term by term: the integral of f(t) = a·t² + b·t + c from 0 to x is a·x³/3 + b·x²/2 + c·x. For f(t) = t² − 5t + 6 evaluated to x = 2 that is 8/3 − 10 + 12 = 4.6667. In the linear case (a = 0) it reduces to b·x²/2 + c·x.

      Does it solve cubic or higher equations?

      No — this solver is for quadratic and linear equations in coefficient form, with evaluation, derivative and definite integral included. Higher-degree polynomials need numerical methods or factoring first.

      About this calculator

      An equation solver for quadratic and linear equations: it takes a·x² + b·x + c = 0 and returns both roots via the quadratic formula, the discriminant that explains their nature, and the vertex — and if you set a = 0 it solves the linear equation b·x + c = 0 instead. For a point you choose it also gives the function value, the derivative, and the definite integral from 0 to that point, the extras this audit found missing when a single generic quadratic kernel was stretched across many titles.

      The quadratic formula is just completing the square done once, in general. The term under the root — the discriminant — deserves its own attention because it predicts the answer before you compute it: positive means two crossings, zero a tangent touch, negative a parabola that never reaches the axis.

      Sign errors are the number-one failure mode. b in the formula is the signed coefficient: for x² − 5x + 6, b is −5, not 5. Entering coefficients exactly as they appear after moving everything to the left of "= 0" is the habit that prevents most wrong answers.

      Roots are not always both usable. A projectile equation may return a negative time; an area equation may return a length outside the material you have. The solver reports both roots and the details so the context — not the tool — makes the final pick.

      Setting a = 0 is not an error: it turns the same form into the linear equation b·x + c = 0, whose one root is x = −c/b. The only genuinely degenerate case is b = 0 as well — then there is either no solution (c is not 0) or every x works (c = 0), and the solver states which rather than inventing a root.

      The definite integral answers a different question from the roots: instead of where the function is zero, it gives the signed area accumulated from 0 to the x you enter, using ∫₀ˣ f(t)dt = a·x³/3 + b·x²/2 + c·x. For f(t) = t² − 5t + 6 up to x = 2 that accumulated value is 4.6667, even though the roots of that same function are 3 and 2.

      Use it for algebra homework checks, projectile and area problems that reduce to a quadratic, simple linear equations such as 2x − 4 = 0, finding break-even quantities in business maths, locating x-intercepts before sketching a parabola, or checking a definite integral of a quadratic by hand.

      How to calculate it yourself

      Step 1

      Rearrange the equation so one side is zero and collect x², x and constant terms. For a linear equation there is no x² term, so a = 0.

      Step 2

      Identify a, b and c with their signs.

      Step 3

      If a = 0, solve the linear equation directly: x = −c/b (provided b is not 0).

      Step 4

      Otherwise compute the discriminant D = b² − 4ac and note what it predicts, then apply x = (−b ± √D) / 2a for both roots.

      Step 5

      Verify by substituting each root back into the original equation.

      Step 6

      For the integral to a chosen x, apply the power rule term by term: a·x³/3 + b·x²/2 + c·x.

      Real-life examples

      Garden area puzzle

      A gardener designing a rectangular bed finds that the width x, in metres, must satisfy x² − 5x + 6 = 0. She solves the equation to find the possible widths.

      Discriminant D = b² − 4ac = -5² − 4×1×6 = 1 √D = 1 x = (−b ± √D) / 2a → x₁ = 3, x₂ = 2 f(0) = 6; f′(0) = -5 ∫₀^0 f(t)dt = a·x³/3 + b·x²/2 + c·x = 1×0³/3 + (-5)×0²/2 + (6)×0 = 0 Check f(x₁) = 1×3² + -5×3 + 6 ≈ 0

      Roots 3 and 2 — the width can be 3 m or 2 m, and she picks whichever fits the plot.

      Break-even quantities

      A market stall's break-even calculation simplifies to 2x² + 3x − 2 = 0, where x is the quantity in hundreds of items. The owner solves it to find the break-even quantity.

      Discriminant D = b² − 4ac = 3² − 4×2×-2 = 25 √D = 5 x = (−b ± √D) / 2a → x₁ = 0.5, x₂ = -2 f(1) = 3; f′(1) = 7 ∫₀^1 f(t)dt = a·x³/3 + b·x²/2 + c·x = 2×1³/3 + (3)×1²/2 + (-2)×1 = 0.1667 Check f(x₁) = 2×0.5² + 3×0.5 + -2 ≈ 0

      Roots 0.5 and -2 — the positive root is the break-even point, 0.5 hundred items (50 items); the negative root is discarded because a quantity cannot be negative.

      Ideas & use cases

      • Graph prep: combine the roots, vertex and f(0) from one run to sketch the parabola without a plotting tool.
      • Discriminant-first homework check: predict the number of roots before solving, then let the result confirm your reasoning.
      • Sensitivity play: nudge c up and down to watch the roots approach each other and merge at D = 0 — the fastest way to build intuition for the discriminant.
      • Linear check: set a = 0 to solve a straight-line equation such as 2x − 4 = 0 in the same tool instead of switching calculators.
      • Area under a curve: use the definite-integral output to check a hand-integrated quadratic — for example confirming that t² − 5t + 6 accumulates to 4.6667 between 0 and 2.

      Limitations & sources

      • Real roots of quadratic and linear equations in coefficient form only. It does not return complex roots numerically (a negative discriminant is reported honestly), solve systems, or handle cubic/quartic or transcendental equations. When a = 0 and b = 0 there is no unique root — c = 0 is an identity true for every x, and any other c has no solution — and the solver states that instead of returning a number.

      Sources: Quadratic formula and discriminant: standard algebra (e.g. Stewart, Redlin & Watson, College Algebra); linear equation and derivative / definite-integral power rules per standard calculus texts (Fundamental Theorem of Calculus)

      Equation Solver Calculator · TinyExe calculator suite Free to use · No sign-up · Instant results