The solver shows an equation display at the top with a blinking yellow caret marking the cursor position. Click anywhere in the display to move the cursor, or use arrow keys, Home, and End for keyboard navigation. Type directly or use the button panel below.
Three quick experiments:
• Type x2−5x+6=0 and press Enter — the right panel shows discriminant calculation Δ=25−24=1, the factored form (x−2)(x−3)=0, and the two roots x=2 and x=3. • Click an example template like "Perfect Square" — a random equation with a repeated root loads into the display. • Enter x2+1=0 to see the no-real-solutions case — Δ=−4<0.
The Solve button is disabled until you enter something. Pressing Enter on the display is equivalent to clicking Solve. The graph panel renders the parabola y=ax2+bx+c with roots marked on the x-axis and the vertex highlighted.
Building Equations with Buttons and Keyboard
The button panel groups inputs by type. All inputs can be made either by clicking or typing on the keyboard.
• Variable row — x, y, n. The solver picks up whichever variable appears in your equation. • Number row — digits 0 through 9 and the decimal point. • Operator row — multiplication, division, plus, minus, equals. • Power row — the caret operator for any exponent, the x2 shortcut button (inserts caret plus 2), and bracket buttons.
Keyboard shortcuts: type letters and digits directly, use star or slash for multiplication and division (auto-converted to proper symbols on display), and press Enter to solve. The caret key inserts the power operator. The display renders exponents as proper superscripts.
Ctrl+Z undoes the last action up to fifty edits back; Backspace deletes the character before the cursor; Delete removes the character after it. The Clear button empties the display entirely; the curved-arrow button steps through the undo stack one edit at a time.
Try an Example — Eight Form Templates
Click the "Try an Example" header to expand the template panel. Each card generates a random equation of that form. Clicking the same card again produces a new random version.
• Standard Form — ax2+bx+c=0 with all three coefficients present. • Missing b Term — ax2+c=0. Solve by isolating x2 and taking the square root. • Missing c Term — ax2+bx=0. Factor out x to get roots x=0 and x=−b/a. • Perfect Square — x2+2ax+a2=0. Produces a repeated root with Δ=0. • Difference of Squares — x2−a2=0. Factors as (x−a)(x+a). • Leading Coeff $\neq 1$ — ax2+bx+c=0 with a>1. Tests the general factoring case. • No Real Roots — constructed with Δ<0. The solver flags this case. • Non-Zero RHS — x2+bx=c. The solver moves all terms to the left and proceeds.
Roughly 80 percent of generated equations produce clean integer roots; the rest exercise irrational or fractional cases.
Reading the Step-by-Step Solution
The solution panel shows each algebraic move as a labeled step. The exact step sequence depends on which discriminant case applies.
• Standard Form — rewrites the equation as ax2+bx+c=0 by moving everything to the left side, with explicit values for a, b, and c. • Calculate Discriminant — substitutes the coefficients into Δ=b2−4ac and shows the arithmetic. • Case Routing — labels the case as Two Distinct Roots, Repeated Root, or No Real Solutions based on the sign of Δ. • Factor (when applicable) — if Δ is a perfect square and a, b, c are integers, the solver attempts the factored form (px−q)(rx−s)=0. • Apply Quadratic Formula — substitutes into x=(−b±Δ)/(2a) and shows the numerical result. • First Root and Second Root — separate steps for each branch of the plus-or-minus sign.
The final answer card at the bottom displays both roots (or the repeated root, or the no-solutions message) along with the discriminant value and whether the answer is exact or approximate.
The Discriminant — Three Cases
The discriminant Δ=b2−4ac is the single number that controls how a quadratic equation behaves. It comes from the radicand of the quadratic formula.
• $\Delta > 0$ — Two distinct real roots. The parabola crosses the x-axis at two points. The square root of Δ is a positive real number, so −b+Δ and −b−Δ are different, giving two different roots when divided by 2a. • $\Delta = 0$ — One repeated real root. The parabola touches the x-axis at exactly one point: its vertex. The ±Δ term vanishes, so both branches give the same value x=−b/(2a). • $\Delta < 0$ — No real solutions. The parabola never crosses the x-axis. The square root of a negative number is not real (it is imaginary), so the roots exist only in the complex numbers as a conjugate pair.
The discriminant also determines whether the roots are rational. If a, b, c are integers and Δ is a perfect square, both roots are rational and the equation can be factored over the integers.
For coverage of the complex case see complex roots of quadratics and the imaginary unit.
What is a Quadratic Equation?
A quadratic equation in one variable is a polynomial equation of degree 2:
ax2+bx+c=0,a=0
The coefficient a is the leading coefficient and must be nonzero (otherwise the equation reduces to linear). The coefficient b controls the position of the parabola's axis of symmetry; the constant c is the y-intercept of the parabola y=ax2+bx+c.
Solutions to the equation are the x-coordinates of the points where the parabola crosses (or touches) the x-axis. A parabola can cross the x-axis in zero, one, or two places — matching the three cases of the discriminant.
The vertex of the parabola sits at x=−b/(2a), with y-coordinate yvertex=c−b2/(4a). This is the minimum point if a>0 (parabola opens upward) or the maximum if a<0 (opens downward).
Quadratic equations appear in projectile motion, optimization problems, area calculations, financial models with compounding, and any setting where a quantity depends on the square of another.
For deeper coverage see quadratic functions, parabola graph, and vertex form.
Three Solution Methods
Three standard methods solve any quadratic equation. The choice depends on the structure of the equation.
• Factoring — rewrite ax2+bx+c as (px+q)(rx+s) and use the zero-product property: if a product is zero, at least one factor is zero. This works cleanly only when the roots are rational. The solver attempts factoring whenever Δ is a perfect square and the coefficients are integers.
• Completing the Square — rewrite ax2+bx+c=0 as a(x+h)2+k=0, then isolate the squared term and take the square root. This method derives the quadratic formula and is essential for converting to vertex form. It always works but involves more steps than factoring.
• Quadratic Formula — substitute directly into x=(−b±b2−4ac)/(2a). This works for every quadratic equation without needing to recognize special structure. It is the most general method and is what the solver applies in every case (with factoring shown as an additional step when applicable).
For special cases, simpler approaches work:
• If b=0: isolate x2 and take the square root directly. • If c=0: factor out x to get x(ax+b)=0, so x=0 or x=−b/a. • If the equation is a perfect square trinomial: recognize it directly and use the resulting linear equation.
For comprehensive treatment see factoring quadratics, completing the square, and the quadratic formula derivation.
Related Concepts
Quadratic Functions — functions of the form f(x)=ax2+bx+c. The graph is a parabola; the equation f(x)=0 is the corresponding quadratic equation.
Quadratic Inequalities — same form as quadratic equations but with <, >, ≤, or ≥. Solved by finding the roots first, then using a sign chart over the resulting intervals.
Vertex Form — y=a(x−h)2+k where (h,k) is the vertex. Obtained by completing the square. Useful for graphing and optimization.
Factored Form — y=a(x−r1)(x−r2) where r1 and r2 are the roots. Available whenever the roots are real.
Discriminant — the quantity Δ=b2−4ac that determines the number and nature of the roots.
Vieta's Formulas — relate the coefficients to the roots: r1+r2=−b/a and r1⋅r2=c/a.
Polynomial Equations of Higher Degree — cubic, quartic, and beyond. The polynomial solver handles up to degree 4.
Complex Roots — when Δ<0, the roots are complex conjugates of the form α±βi.