Full Guide
Quadratic Equation Calculator Guide
Enter the coefficients of ax^2 + bx + c = 0 to use the quadratic formula and inspect the discriminant, real, repeated, or complex roots, axis, and vertex.
Full Guide
What This Calculator Does
The Quadratic Equation Calculator solves the standard form ax^2 + bx + c = 0. Enter the three coefficients and the page applies the quadratic formula, then places the discriminant, root type, axis of symmetry, and vertex beside the roots. That gives you more than two decimals: it tells you whether real solutions exist and how the corresponding parabola is positioned.
It works well for homework checking, classroom review, graph intuition, and quick numeric inspection. A positive discriminant means two x-intercepts, zero means the parabola touches the x-axis at its vertex, and a negative discriminant means no real x-intercepts and a conjugate pair of complex roots. This is a numeric tool, not a symbolic simplifier, radical reducer, or graphing application.
For a more general equation with variables, use the Equation Solver. To evaluate a numeric expression before you extract coefficients, use the Mathematical Expression Calculator. For keypad-based trig, logarithm, and power work, see the Scientific Calculator.
When to Use It
- You want to solve a quadratic equation quickly.
- You want to know whether it has two real roots, one repeated root, or complex roots.
- You want the axis of symmetry and vertex as well as the roots.
- You want to check the number of x-intercepts and the parabola's turning point together.
- You are checking homework, review exercises, or a simple model.
- You want numeric approximations from coefficients without substituting into the formula by hand.
Inputs Explained
The three coefficients a, b, and c
These are the coefficients in ax^2 + bx + c = 0. a must be nonzero; if a=0, the highest degree drops to one and the page reports an error. b and c may be zero, for example x^2-4=0 uses a=1,b=0,c=-4.
The fields accept ordinary decimal input such as -3, 0.5, .25, or 3.. They do not parse variables, units, commas, text scientific notation such as 1e3, or expressions such as 2+3; first rearrange the original equation into numeric coefficients.
Automatic Recalculation
The page attempts to recalculate as coefficients change, so the discriminant, vertex, and roots update immediately once the fields are valid. Incomplete or malformed input produces a message; Calculate runs the same logic manually. Valid inputs are mirrored into URL parameters, so a copied link can restore the same coefficients.
How the Calculation Works
The implementation first computes the discriminant:
D = b^2 - 4ac
For a non-negative discriminant it uses the quadratic formula:
x1 = (-b + √D) / (2a)
x2 = (-b - √D) / (2a)
The discriminant determines the root type:
- if
D > 0, the page returns two distinct real roots - if
D = 0, both formula values match and the page displays one repeated root - if
D < 0, the page writes the square root as an imaginary part and displaysreal ± imaginary i
The page also computes the axis of symmetry x = -b / (2a) and substitutes that x-value back into ax^2+bx+c for the vertex y-coordinate. When a>0 the parabola opens upward; when a<0 it opens downward. The page does not draw a graph, but these values are enough to sketch the basic shape.
Example
If you enter a = 1, b = -3, and c = 2, the equation is x^2-3x+2=0:
D = (-3)^2 - 4×1×2 = 1
x1 = 2, x2 = 1
axis: x = 1.5
vertex: (1.5, -0.25)
With a=1,b=2,c=1, the result is D=0, repeated root x=-1, and vertex (-1,0). With a=1,b=0,c=1, D=-4, so the roots are 0+1i and 0-1i. Together these cover the two-real-root, repeated-root, and complex-root cases.
How to Understand the Result
Discriminant D
The discriminant is the expression under the square root, b^2-4ac, and the quickest classification signal. Positive means two distinct real roots, zero means one repeated root, and negative means no real roots but a conjugate complex pair. The displayed D may be a decimal and should be read as a numeric approximation.
Axis and Vertex
The axis x=-b/(2a) is the parabola's vertical center line, and the vertex is its highest or lowest point. The average of two real roots equals the axis x-coordinate; with a repeated root, the vertex lies on the x-axis; with complex roots, it does not.
Root Output
The page displays either two real roots, one repeated root, or a complex-conjugate pair. Complex roots are not a failure: they mean the real-coefficient parabola never crosses the x-axis. Results are decimal approximations; ordinary values are shown to about six decimal places, while very large or small magnitudes may use scientific notation.
Common Mistakes
- Entering an expression with
a = 0and expecting a quadratic result. - Skipping the step of moving right-hand-side terms to the left before identifying
a,b, andc. - Dropping the parentheses around
2awhen applying the quadratic formula by hand. - Looking only at the roots and ignoring the structure already revealed by the discriminant.
- Treating complex roots as an error condition.
- Expecting symbolic simplification, factoring, or radical output from a numeric coefficient tool.
FAQ
Why is this page useful for graph understanding
Because it shows roots, discriminant, axis, and vertex together, which makes it easier to connect algebra with parabola structure. Although it does not draw the curve, the vertex, opening direction, and root positions are enough for a quick sketch.
When should I look at the discriminant first
Any time you want to identify the solution type quickly before focusing on the detailed root values. It also tells you whether the parabola has two x-intercepts, one tangent point, or none in the real plane.
Why are the results decimals
The page uses JavaScript Number arithmetic and formats numeric output; it does not preserve fractions or simplified radicals. Unless a root happens to be a terminating decimal, treat the display as an approximation and use hand work or a symbolic algebra tool when an exact radical form is required.
Notes
- The current page handles numeric coefficients in standard form only, does not parse symbolic expressions, and does not solve the
a=0linear case. - Floating-point values whose discriminant is very close to zero are classified as repeated roots under the implementation's tolerance; extreme coefficients can also be affected by JavaScript floating-point precision.
- It is built for quick solving and checking, not for replacing a full algebra derivation, factorization, or plotted parabola.
Frequently Asked Questions
Which equation form does this page use?
The current page uses the standard form ax^2 + bx + c = 0; rearrange an equation to this form before entering coefficients.
What can I enter for a, b, and c?
The three fields accept ordinary decimal numbers, including negatives, decimals, and zero; a cannot be zero, while b and c may be zero.
How does the discriminant classify the roots?
D=b^2-4ac gives two distinct real roots when positive, one repeated root when zero, and a conjugate pair of complex roots when negative.
Does it show complex roots and the vertex?
Yes. A negative discriminant is shown as complex roots, and every valid input also includes x=-b/(2a) and the vertex coordinates.
Does the page recalculate automatically?
Yes. The result updates as the coefficients change, and the button triggers the same logic manually.