Quadratic Formula Calculator

Quadratic Formula Calculator

Solve ax² + bx + c = 0 with step-by-step solutions and graph

x = −b ± √(b² − 4ac)2a
Enter Coefficients
Input mode:
ax² + bx + c = 0
Roots / Solutions
Equation Properties
Step-by-Step Solution
Parabola Graph
History
No calculations yet

Quadratic Formula Calculator — Solve Any Quadratic Equation Instantly

Introduction

Struggling with quadratic equations? You’re not alone. Every year, millions of students, engineers, and professionals search for a quick, reliable way to solve equations like 2x² + 5x − 3 = 0. That’s exactly why we built this Quadratic Formula Calculator — a free, accurate, step-by-step tool that gives you the roots, the graph, and the full working in seconds.

 

Whether you’re a high school student checking homework, a college learner tackling algebra, or an engineer computing projectile trajectories, this calculator saves time and eliminates errors. No sign-up, no downloads, no distractions — just answers you can trust.

 

Who should use it? Anyone who needs to solve ax² + bx + c = 0 — from middle-schoolers to physicists. The calculator handles real roots, repeated roots, and complex (imaginary) roots automatically, and draws the parabola so you can see the solution.

 

Key benefits at a glance:

 
  • Instant, accurate results for any quadratic
  • Step-by-step breakdown you can follow and learn from
  • Interactive parabola graph with vertex and roots marked
  • Works with decimals and fractions
  • Completely free, with no limits
 

What Is the Quadratic Formula?

The quadratic formula is a universal method for finding the roots (solutions) of any quadratic equation in the form:

 
 

ax² + bx + c = 0 (where a ≠ 0)

The formula is:

 
 

x = (−b ± √(b² − 4ac)) / 2a

This single expression solves every quadratic equation — no factoring, no completing the square, no guessing required. The symbol ± means you get two solutions: one using the plus sign, one using the minus.

 

Why Is It Important?

The quadratic formula is one of the most used formulas in all of mathematics. It appears in:

 
  • Algebra — solving polynomial equations
  • Physics — motion, trajectories, energy
  • Engineering — signal processing, structural analysis
  • Finance — profit optimization, break-even analysis
  • Biology — population growth models
 

Before the formula, people relied on factoring (which only works for “nice” numbers) or completing the square (which is slow and error-prone). The quadratic formula gives you a direct, always-works path to the answer.

 

How This Calculator Works

Inputs

Field
Meaning
Example
aCoefficient of x²1
bCoefficient of x−5
cConstant term6

You simply enter the three coefficients of your equation. The calculator does the rest.

 

Outputs

The calculator provides:

 
  1. The roots (x₁ and x₂) — real or complex
  2. The discriminant (Δ = b² − 4ac) — tells you the nature of the roots
  3. The vertex of the parabola
  4. The axis of symmetry
  5. The y-intercept
  6. Direction of opening (upward or downward)
  7. Sum and product of roots (Vieta’s formulas)
  8. Step-by-step solution with every substitution shown
  9. Interactive parabola graph with roots and vertex marked
 

Step-by-Step Process

  1. Read coefficients a, b, c from your input
  2. Calculate the discriminant: Δ = b² − 4ac
  3. Check the sign of Δ to determine root type
  4. Apply the quadratic formula to compute x₁ and x₂
  5. Verify by substituting roots back into the original equation
  6. Plot the parabola with all key points marked
 

The Quadratic Formula Explained

The Formula

 

x = (−b ± √(b² − 4ac)) / 2a

Variable Breakdown

Variable
What It Is
Unit
aCoefficient of x² (must be non-zero)Same as equation’s unit
bCoefficient of xSame as equation’s unit
cConstant termSame as equation’s unit
xThe unknown variableDependent on context
ΔDiscriminant (b² − 4ac)Squared unit

The Discriminant — Your Crystal Ball

The expression under the square root, Δ = b² − 4ac, is called the discriminant. It tells you before you finish calculating what kind of roots to expect:

 
Discriminant
Root Type
Number of Real Roots
Graph Behavior
Δ > 0Two distinct real roots2Parabola crosses x-axis twice
Δ = 0One repeated real root1Parabola touches x-axis (vertex on axis)
Δ < 0Two complex conjugate roots0Parabola doesn’t touch x-axis

This is incredibly useful. If you just need to know whether a solution exists, check Δ first.

 

Example Calculation

Solve x² − 5x + 6 = 0

 
  • a = 1, b = −5, c = 6
  • Discriminant: Δ = (−5)² − 4(1)(6) = 25 − 24 = 1
  • Since Δ > 0 → two real roots
  • x₁ = (5 + √1) / 2 = (5 + 1) / 2 = 3
  • x₂ = (5 − √1) / 2 = (5 − 1) / 2 = 2
 

Answer: x = 3 or x = 2

 

Common Mistakes

  • Forgetting that a cannot be zero — if a = 0, it’s a linear equation, not quadratic
  • Sign errors with b — remember, the formula starts with −b, so if b = −5, then −b = +5
  • Miscalculating the discriminant — double-check 4ac, especially with negative numbers
  • Dropping the ± — always compute both the plus and minus versions
  • Dividing only part of the numerator — the entire (−b ± √Δ) gets divided by 2a, not just √Δ
 

How to Use the Quadratic Formula Calculator

Using this calculator is straightforward. Here’s a detailed walkthrough:

 

Step 1: Identify Your Coefficients

Write your equation in standard form: ax² + bx + c = 0. Read off a, b, and c.

 
 

Example: For 3x² − 12x + 9 = 0 → a = 3, b = −12, c = 9

Step 2: Enter the Values

Type each coefficient into its corresponding input field. You can enter:

  • Decimals: 2.5, −3.14, 0.75
  • Fractions: 1/2, −3/4, 7/3
  • Integers: 1, −5, 12
 

Step 3: Choose Input Mode

Toggle between Decimal and Fraction mode if you prefer entering fractions like “3/4” instead of 0.75.

 

Step 4: Click Calculate

Press the Calculate button. The calculator instantly computes:

  • Both roots (real or complex)
  • The discriminant and its meaning
  • The vertex and axis of symmetry
  • A complete step-by-step solution
  • An interactive parabola graph
 

Step 5: Review the Graph

The graph shows your parabola with:

  • Green curve — the quadratic function
  • Orange dots — roots on the x-axis
  • Blue dot — the vertex
  • Dashed line — axis of symmetry
 

Tips for Best Results

  • Always write your equation in standard form first
  • Double-check signs — a negative b means you enter a negative number
  • Use the Example button to see how different equations behave
  • Check the step-by-step section to understand the process, not just the answer
  • Use the History feature to compare different equations
 

Example Calculations

Example 1: Two Distinct Real Roots (Beginner)

Equation: x² − 7x + 12 = 0

 
Step
Calculation
Result
Identifya=1, b=−7, c=12
Discriminant(−7)² − 4(1)(12)49 − 48 = 1
√Δ√11
x₁(7 + 1) / 23
x₂(7 − 1) / 24

Solution: x = 3 or x = 4 — The parabola crosses the x-axis at both points.

 

Example 2: One Repeated Root

Equation: x² − 6x + 9 = 0

 
Step
Calculation
Result
Identifya=1, b=−6, c=9
Discriminant(−6)² − 4(1)(9)36 − 36 = 0
x6 / 23

Solution: x = 3 (repeated) — The vertex sits exactly on the x-axis.

 

Example 3: Complex Roots

Equation: x² + 2x + 5 = 0

 
Step
Calculation
Result
Identifya=1, b=2, c=5
Discriminant(2)² − 4(1)(5)4 − 20 = −16
Δ 
Real part−2 / 2−1
Imaginary part4 / 22

Solution: x = −1 + 2i or x = −1 − 2i — The parabola floats above the x-axis, never touching it.

 

Example 4: Advanced — Non-Integer Coefficients

Equation: 0.5x² − 3x + 4.5 = 0

 
Step
Calculation
Result
Identifya=0.5, b=−3, c=4.5
Discriminant9 − 4(0.5)(4.5)9 − 9 = 0
x3 / (2×0.5)3

Solution: x = 3 (repeated)

 

Example 5: Leading Coefficient Negative

Equation: −x² + 4x − 3 = 0

 

This gives a = −1, b = 4, c = −3. The parabola opens downward.

 
Step
Calculation
Result
Discriminant16 − 4(−1)(−3)16 − 12 = 4
x₁(−4 + 2) / (−2)1
x₂(−4 − 2) / (−2)3

Solution: x = 1 or x = 3 — The parabola reaches a maximum at the vertex (2, 1).

 

Benefits of Using This Quadratic Formula Calculator

  1. Instant results — No manual computation needed; get roots in under a second
  2. Step-by-step transparency — See every calculation, not just the final answer
  3. Visual learning — The parabola graph helps you understand what the roots mean geometrically
  4. Handles complex roots — No crash, no confusion; complex solutions are displayed clearly
  5. Fraction and decimal support — Enter coefficients however you prefer
  6. Eliminates calculation errors — Manual quadratic formula work is error-prone; this tool is exact
  7. Educational value — Follow the steps to learn the method, not just get the answer
  8. Verification built in — The calculator substitutes roots back to confirm they work
  9. Properties at a glance — Vertex, axis of symmetry, and discriminant all shown together
  10. Free and unlimited — No paywall, no daily limits, no account required
  11. History tracking — Compare multiple equations without losing previous work
  12. Mobile-friendly — Works perfectly on phones, tablets, and desktops
  13. Printable results — Clean layout for saving or printing your work
  14. No installation — Runs in any modern browser, nothing to download
 

Features of This Calculator

  • Live equation preview — See your equation update as you type coefficients
  • Dual input modes — Switch between decimal and fraction entry
  • Discriminant analysis — Automatic classification of root nature before computing
  • Full parabola graph — Auto-scaled canvas with grid, axes, roots, vertex, and y-intercept
  • Vieta’s formulas — Sum and product of roots displayed automatically
  • Equation direction — Shows whether the parabola opens up (minimum) or down (maximum)
  • Step-by-step with numbering — Each step labeled and explained
  • Back-substitution verification — Proves the roots satisfy the original equation
  • Calculation history — Click any past equation to reload it instantly
  • Error handling — Clear messages if a = 0 or inputs are invalid
  • Keyboard support — Press Enter to calculate from any input field
 

Applications of the Quadratic Formula

Education

Students encounter quadratic equations from 8th grade through college. This calculator helps with:

  • Homework verification
  • Test preparation
  • Understanding the relationship between discriminant and graph shape
  • Learning the step-by-step method by following worked examples
 

Teachers use it to generate examples and demonstrate concepts in class — especially how changing coefficients affects the parabola.

 

Physics and Engineering

Quadratic equations appear constantly in the physical sciences:

 
  • Projectile motion: The height of a thrown object is h(t) = −½gt² + v₀t + h₀. Setting h = 0 and solving tells you when the object hits the ground.
  • Circuit analysis: RLC circuits produce quadratic characteristic equations for current and voltage.
  • Structural engineering: Beam deflection and load distribution often involve quadratic terms.
  • Optics: Lens equations and mirror focal lengths use quadratic relationships.
 

Finance and Business

  • Profit maximization: Revenue minus cost often yields a quadratic. The vertex gives the maximum profit.
  • Break-even analysis: Finding when revenue equals cost can produce a quadratic equation.
  • Loan and investment models: Certain compound interest scenarios reduce to quadratic form.
 

Everyday Problem Solving

  • Gardening: Calculating dimensions of a rectangular garden with a fixed area and perimeter
  • Photography: Depth of field calculations involve quadratic expressions
  • Construction: Finding dimensions that satisfy area constraints
 

Advantages Over Manual Calculation

Aspect
Manual
This Calculator
Speed3–10 minutesUnder 1 second
AccuracyError-proneExact
Complex rootsTediousAutomatic
GraphingSeparate tool neededBuilt in
Step reviewEasy to lose trackNumbered and clear
VerificationOften skippedAlways included
LearningPassiveActive and visual

The biggest advantage isn’t just speed — it’s understanding. By seeing the steps and the graph together, you build intuition that manual calculation alone can’t provide.

 

Limitations

Every tool has boundaries. Here’s where this calculator has limits:

 
  • Only quadratic equations — It cannot solve cubic (x³), quartic (x⁴), or higher-degree equations. For those, you’d need a polynomial root calculator.
  • Requires standard form — Your equation must be rearranged as ax² + bx + c = 0 before entering coefficients
  • Numerical precision — Extremely large or small coefficients (beyond floating-point range) may lose precision. For most practical purposes, this is never an issue.
  • Does not solve by factoring — Some educators prefer seeing the factoring method; this tool always uses the quadratic formula
  • No symbolic/variable input — You must enter numerical coefficients, not expressions like “2k” or “π”
  • Single equation at a time — Cannot solve systems of quadratic equations simultaneously
 

Tips for Accurate Results

  1. Always convert to standard form first — Move everything to one side so the equation equals zero
  2. Combine like terms before identifying a, b, and c
  3. Watch your signs — The most common error is entering +5 when b is actually −5
  4. Use fractions for exact values — Enter 1/3 instead of 0.333 to avoid rounding drift
  5. Verify the equation preview — The live preview shows your equation; make sure it matches what you intended
  6. Check discriminant first — If you only need to know whether real solutions exist, Δ tells you instantly
  7. Cross-check with the graph — If roots don’t match where the curve crosses the x-axis, re-examine your inputs
  8. Use the step-by-step section — Don’t just copy the answer; follow the logic
 

Common Mistakes When Using the Quadratic Formula

1. Setting a = 0

If a = 0, you don’t have a quadratic equation — you have a linear equation (bx + c = 0). This calculator requires a ≠ 0. If your x² term disappears, use a linear equation solver instead.

 

2. Sign Errors with b

In the formula x = (−b ± √Δ) / 2a, the first operation is −b. If b = −7, then −b = +7. This is the single most common mistake students make.

 

3. Only Computing One Root

The ± symbol means two calculations: one with plus, one with minus. Both are valid solutions.

 

4. Dividing Incorrectly

The entire numerator (−b ± √Δ) is divided by 2a. A frequent error is dividing only √Δ by 2a and then adding −b separately.

 

5. Not Simplifying First

Before applying the formula, check if you can divide out a common factor. For 6x² − 18x + 12 = 0, divide everything by 6 to get x² − 3x + 2 = 0. The roots are the same, but the arithmetic is easier.

 

6. Confusing Equation Forms

An equation like 2x² = 8x − 6 must be rearranged to 2x² − 8x + 6 = 0 before reading off a, b, c.

 

Frequently Asked Questions

What is the quadratic formula?

The quadratic formula is x = (−b ± √(b² − 4ac)) / 2a. It solves any quadratic equation written in the form ax² + bx + c = 0, giving you the values of x that make the equation true.

 

When should I use the quadratic formula instead of factoring?

Use the quadratic formula when factoring is difficult or impossible. Factoring only works cleanly when the roots are rational numbers. The quadratic formula always works — for rational, irrational, and complex roots.

 

What does the discriminant tell me?

The discriminant (Δ = b² − 4ac) reveals the nature of the roots before you finish calculating. If Δ > 0, there are two distinct real roots. If Δ = 0, there’s one repeated real root. If Δ < 0, there are two complex conjugate roots.

 

Can this calculator solve equations with complex roots?

Yes. When the discriminant is negative, the calculator automatically computes the complex roots and displays them in standard form (a + bi). The graph also shows that the parabola doesn’t intersect the x-axis.

 

What happens if a equals zero?

If a = 0, the equation is no longer quadratic — it becomes linear (bx + c = 0). The calculator will display an error message explaining this. You can solve it using a linear equation calculator instead.

 

Can I enter fractions as coefficients?

Yes. Switch to Fraction mode and enter values like 3/4 or −1/2. The calculator converts them to decimals internally but displays exact results where possible.

 

How accurate is this calculator?

The calculator uses standard double-precision floating-point arithmetic, providing approximately 15 significant digits of accuracy. For virtually all educational, engineering, and scientific purposes, this is more than sufficient.

 

Why does the graph show the vertex?

The vertex represents the maximum or minimum point of the parabola. It’s where the function reaches its extreme value. The x-coordinate of the vertex equals −b/(2a), and it lies on the axis of symmetry.

 

What’s the difference between real and complex roots?

Real roots are numbers on the standard number line (like 3, −2.5, or √7). Complex roots involve the imaginary unit i (where i² = −1). Graphically, real roots are where the parabola crosses the x-axis. If it doesn’t cross, the roots are complex.

 

Can I use this for word problems?

Absolutely. Set up the equation from the word problem, rearrange it to standard form (ax² + bx + c = 0), identify a, b, c, and enter them. The calculator handles the rest.

 

What is Vieta’s formulas?

Vieta’s formulas state that for ax² + bx + c = 0, the sum of roots equals −b/a and the product of roots equals c/a. This calculator displays both, providing a quick way to verify your roots.

 

How do I convert an equation to standard form?

Move all terms to one side of the equation so the other side equals zero. For example, x² = 5x − 6 becomes x² − 5x + 6 = 0. Then read off a = 1, b = −5, c = 6.

 

Why are both roots the same sometimes?

When the discriminant equals zero (Δ = 0), the square root term vanishes, and both the plus and minus versions give the same value. This means the parabola just touches the x-axis at its vertex.

 

Can I solve 2x² + 3x = 0 with this?

Yes. Rearrange to 2x² + 3x + 0 = 0. Enter a = 2, b = 3, c = 0. One root will always be x = 0 when c = 0.

 

Is the quadratic formula the same as completing the square?

They’re mathematically equivalent. The quadratic formula is actually derived by completing the square on the general form ax² + bx + c = 0. The formula is just the result pre-packaged for convenience.

 

What if my coefficients are very large numbers?

The calculator handles large coefficients without issue. However, if the numbers exceed roughly 10¹⁵, floating-point precision may start to degrade. For most real-world applications, this won’t matter.

 

Does the calculator show the axis of symmetry?

Yes. The axis of symmetry is the vertical line x = −b/(2a). It passes through the vertex and divides the parabola into mirror-image halves. It’s shown as a dashed line on the graph.

 

Can I use negative coefficients?

Absolutely. Enter negative numbers just as you would in any calculator. The live equation preview will show the proper signs automatically.

 

What’s the relationship between the roots and the graph?

The real roots are exactly the x-intercepts of the parabola — the points where the curve crosses or touches the x-axis. If there are no real roots (complex case), the parabola doesn’t touch the x-axis at all.

 

How do I verify the answer manually?

Substitute each root back into the original equation. If ax² + bx + c truly equals zero (or very close to zero due to rounding), the root is correct. This calculator performs this verification automatically in the step-by-step section.

 

Related Calculators

If you found this tool helpful, you might also need:

 
  1. Scientific Calculator — For general math beyond quadratics
  2. Factoring Calculator — Factor polynomials step by step
  3. Polynomial Equation Calculator — Solve higher-degree equations
  4. Linear Equation Calculator — Solve ax + b = 0
  5. System of Equations Calculator — Solve simultaneous equations
  6. Completing the Square Calculator — Alternative method for quadratics
  7. Discriminant Calculator — Quick discriminant analysis
  8. Parabola Calculator — Focus on graph properties
  9. Vertex Calculator — Find vertex of any parabola
  10. Quadratic Regression Calculator — Fit a quadratic to data points
  11. Complex Number Calculator — Work with imaginary results
  12. Square Root Calculator — Simplify radical expressions
  13. Root Calculator — Find nth roots of any number
  14. Synthetic Division Calculator — Divide polynomials efficiently
  15. Matrix Calculator — For linear algebra problems
  16. Derivative Calculator — Calculus on quadratic and other functions
 

Final Thoughts

The quadratic formula is one of mathematics’ most elegant and practical tools — and this calculator puts its full power at your fingertips. Whether you’re solving your first quadratic or your thousandth, the combination of instant computation, step-by-step transparency, and visual graphing makes this the most complete quadratic solver available online.

 

Don’t just get the answer — understand it. Follow the steps. Study the graph. Check the discriminant. Notice how the coefficients shape the parabola. That’s how you build lasting mathematical intuition.

 

Ready to solve? Enter your coefficients above and hit Calculate. Your roots, graph, and full solution are just one click away.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top