Quadratic Formula Calculator

📐 Algebra Tool

Quadratic Formula
Calculator

Solve any quadratic equation ax²+bx+c=0 instantly — with interactive parabola graph, discriminant analysis, vertex coordinates, complex root support, and step-by-step solution.

📐 Algebra Accurate
🎓 Student Friendly
⚡ Instant Solutions
ax² + bx + c = 0
a (x² coefficient)
b (x coefficient)
c (constant)
Example equations
Equation
—
Root x₁
—
Root x₂
—
Discriminant
—
Nature
—
Vertex
—
Axis of sym.
—
Y-intercept
—
Opens
—
📊 Parabola graph
📐 Step-by-step solution
📐 Equation insight:
—
ℹ️ The quadratic formula x = (−b ± √(b²−4ac)) / 2a solves any equation of the form ax²+bx+c=0 where a≠0. Complex roots are returned when the discriminant is negative.

Quadratic Formula Calculator: Solve Any Quadratic Equation

The quadratic formula — x = (−b ± √(b²−4ac)) / 2a — is arguably the most important formula in algebra. It solves every quadratic equation of the form ax² + bx + c = 0, regardless of whether the equation can be factored, has integer roots, or even has real solutions. This calculator applies the formula instantly: enter the three coefficients (a, b, c), and get both roots, the discriminant, the vertex, the axis of symmetry, the y-intercept, and an interactive parabola graph — all with a complete step-by-step solution showing every arithmetic operation.

📐 The quadratic formula:
x = (−b ± √(b² − 4ac)) / 2a
Discriminant: Δ = b² − 4ac
• Δ > 0 → two distinct real roots
• Δ = 0 → one repeated real root
• Δ < 0 → two complex conjugate roots

Example Solutions

Equationa, b, cΔRoots
x²−5x+6=01, −5, 61x=3, x=2
x²−4=01, 0, −416x=2, x=−2
x²−2x+1=01, −2, 10x=1 (repeated)
x²+x+1=01, 1, 1−3x=−0.5±0.866i
2x²+3x−2=02, 3, −225x=0.5, x=−2
−x²+4x−3=0−1, 4, −34x=1, x=3

Understanding the Key Components

🔢

Discriminant (Δ)

Δ = b²−4ac determines the nature of the roots. Positive: two distinct real roots (parabola crosses x-axis twice). Zero: one repeated root (parabola touches x-axis). Negative: complex roots (parabola doesn’t touch x-axis).

📍

Vertex

The highest or lowest point of the parabola at (−b/2a, c−b²/4a). If a>0, it’s the minimum; if a<0, it's the maximum. The vertex lies on the axis of symmetry.

📏

Axis of symmetry

The vertical line x = −b/2a that divides the parabola into two mirror halves. Every parabola is symmetric about this line, and the vertex sits exactly on it.

📊

Parabola direction

If a > 0, the parabola opens upward (∪ shape, has a minimum). If a < 0, it opens downward (∩ shape, has a maximum). The magnitude of a controls how wide or narrow the parabola is.

The Discriminant in Detail

The discriminant Δ = b² − 4ac is the expression under the square root in the quadratic formula. Its value determines everything about the solution’s nature before you complete the calculation. When Δ > 0, the square root produces a positive number, and the ± gives two different roots — the parabola crosses the x-axis at two points. When Δ = 0, the square root is zero, so both roots equal −b/2a — the parabola just touches the x-axis at its vertex. When Δ < 0, the square root of a negative number produces an imaginary number, giving two complex conjugate roots — the parabola floats entirely above (or below) the x-axis without crossing it.

The Interactive Parabola Graph

The calculator renders an SVG graph of the parabola y = ax² + bx + c with several key features marked. The blue curve is the parabola itself, auto-scaled to show the vertex and roots clearly. Red dots mark the x-intercepts (real roots) where the parabola crosses the x-axis. A green dot marks the vertex — the parabola’s minimum or maximum point. A purple dot marks the y-intercept at (0, c). A yellow dashed line shows the axis of symmetry at x = −b/2a. The graph updates in real time as you change coefficients, providing immediate visual feedback.

Physics: Projectile Motion

The most famous physical application of quadratic equations is projectile motion. The height of a launched object follows h(t) = −½gt² + v₀t + h₀, where g is gravitational acceleration (9.81 m/s²), v₀ is initial velocity, and h₀ is initial height. Setting h(t) = 0 and solving with the quadratic formula gives the time when the projectile hits the ground. A ball thrown upward at 20 m/s from 5 metres height: −4.905t² + 20t + 5 = 0. The calculator gives t = 4.33 seconds (taking the positive root) — the time of flight.

Engineering: Structural Analysis

Structural engineers encounter quadratic equations in beam deflection, column buckling, and load distribution calculations. The bending moment equation for a simply supported beam under uniform load produces a quadratic function: M(x) = (wL/2)x − (w/2)x², where w is load per unit length and L is beam length. Setting M(x) = 0 finds the support points; finding the vertex gives the point of maximum bending moment (at x = L/2, M = wL²/8). The calculator solves these engineering quadratics directly.

Three Methods for Solving Quadratics

The quadratic formula is one of three standard methods for solving quadratic equations, each with advantages. Factoring (e.g., x²−5x+6 = (x−2)(x−3) = 0) is fastest when it works, but only applies when roots are rational numbers with small factors. Completing the square (rearranging ax²+bx+c into a(x−h)²+k form) always works and reveals the vertex form, but involves more algebraic steps. The quadratic formula always works for any coefficients — it’s actually derived from completing the square on the general equation ax²+bx+c=0 — and is the method of choice when factoring isn’t obvious.

Complex Roots and Imaginary Numbers

When the discriminant is negative (b²−4ac < 0), the quadratic formula produces complex roots containing the imaginary unit i (where i² = −1). For x²+x+1=0: Δ = 1−4 = −3, so x = (−1 ± √(−3))/2 = −0.5 ± 0.866i. Complex roots always come in conjugate pairs: if a+bi is a root, then a−bi is the other root. The calculator displays both the real part and imaginary part clearly. Complex roots mean the parabola doesn’t cross the x-axis — it’s entirely above (a > 0) or below (a < 0) the x-axis.

Vertex Form and Completing the Square

Every quadratic y = ax²+bx+c can be rewritten in vertex form: y = a(x−h)²+k, where (h,k) is the vertex. The conversion: h = −b/(2a), k = c − b²/(4a). The vertex form reveals: the parabola’s turning point (h,k), its direction (sign of a), and its width (magnitude of a). For x²−6x+8: h = 3, k = 8−36/4 = −1, so vertex form is (x−3)²−1, with vertex at (3,−1). The calculator computes the vertex automatically and marks it on the graph.

Common Quadratic Formula Mistakes

  • Forgetting the negative sign on b. The formula starts with −b, not b. For b = −5: −b = −(−5) = +5. Missing the negative is the most common error.
  • Dividing only part of the numerator by 2a. The entire expression (−b ± √Δ) is divided by 2a — not just the square root term. Use parentheses: x = (−b ± √Δ) / (2a).
  • Taking a=1 when it’s not. In 2x²+3x−2=0, a=2, not 1. Always identify coefficients from the standard form ax²+bx+c=0 before substituting.
  • Confusing −b² with (−b)². In the discriminant b²−4ac, b² means (b)² — always positive. If b=−5, then b²=25 (not −25).

Practice Problems

#EquationYour rootsCheck
1x²−7x+12=0x= __, __3, 4
2x²+2x−15=0x= __, __3, −5
32x²−8=0x= __, __2, −2
4x²+4x+4=0x= __−2 (repeated)
5x²+2x+5=0x= __, __−1±2i

Economics and Business Applications

Quadratic equations appear in profit maximisation, cost analysis, and demand curves. A company’s profit function P(x) = −2x² + 200x − 3000 (where x is units sold) has maximum profit at the vertex: x = −200/(2×(−2)) = 50 units, with maximum profit P(50) = $2,000. Setting P(x) = 0 finds the break-even points: the quadratic formula gives x ≈ 17.8 and x ≈ 82.2 — the company breaks even at approximately 18 units and loses money again above 82 units.

Related Math Calculators

Frequently Asked Questions

What is the quadratic formula?
The quadratic formula is x = (−b ± √(b²−4ac)) / 2a. It solves any equation of the form ax²+bx+c=0 by substituting the three coefficients (a, b, c) into the formula. The ± symbol means there are potentially two solutions: one using + and one using −. The expression under the square root (b²−4ac) is called the discriminant and determines the nature of the roots.
How do I solve quadratic equations?
Three methods: (1) Quadratic formula — always works, substitute a, b, c into x = (−b ± √(b²−4ac)) / 2a. (2) Factoring — find two numbers that multiply to ac and add to b, then factor. Only works when roots are rational. (3) Completing the square — rewrite as a(x−h)²+k = 0 and solve. The calculator uses the quadratic formula and shows the complete step-by-step process.
What is the discriminant?
The discriminant is Δ = b²−4ac — the expression under the square root in the quadratic formula. It determines the nature of the roots without solving the full equation: Δ > 0 → two distinct real roots; Δ = 0 → one repeated root; Δ < 0 → two complex conjugate roots. The discriminant is a quick diagnostic tool that tells you what type of answer to expect.
What happens if the discriminant is negative?
When Δ < 0, the square root of a negative number produces imaginary numbers. The roots become complex: x = (−b ± i√|Δ|) / 2a, where i = √(−1). Complex roots always come in conjugate pairs (a+bi and a−bi). Graphically, a negative discriminant means the parabola doesn't intersect the x-axis — it floats entirely above or below it.
What is the vertex?
The vertex is the highest or lowest point of the parabola, located at (−b/2a, c−b²/4a). If a > 0, the vertex is the minimum point (parabola opens upward). If a < 0, the vertex is the maximum point (parabola opens downward). The vertex always lies on the axis of symmetry (x = −b/2a). The calculator computes the vertex and marks it as a green dot on the graph.
What is the axis of symmetry?
The axis of symmetry is the vertical line x = −b/(2a) that divides the parabola into two mirror-image halves. Every point on the parabola at horizontal distance d to the left of the axis has a corresponding point at distance d to the right, at the same height. The axis passes through the vertex and, when the discriminant is positive, lies exactly midway between the two roots.
Can this solve complex roots?
Yes — when the discriminant is negative, the calculator returns complex roots in the form a ± bi. For example, x²+x+1=0 gives x = −0.5 ± 0.866i. The calculator displays both the real part and imaginary part clearly, and the graph shows the parabola floating above (or below) the x-axis, confirming visually that no real x-intercepts exist.
Is this calculator accurate?
Yes — the calculator uses the exact quadratic formula with JavaScript double-precision arithmetic (15–17 significant digits). Results are displayed to 4 decimal places. The step-by-step solution shows every intermediate calculation so you can verify each operation. For educational use, the calculator’s answer should match your manual calculation exactly — any difference indicates a hand-calculation error to investigate.
How do engineers use quadratic equations?
Engineers encounter quadratics in structural analysis (beam deflection, column buckling), electrical engineering (resonant circuits, impedance matching), fluid dynamics (pipe flow equations), control systems (characteristic equations), and thermodynamics (heat transfer). The quadratic formula provides exact solutions that engineers use for design calculations, safety analysis, and optimisation — anywhere a physical relationship involves a squared variable.
How do physicists use quadratic equations?
Projectile motion (h = −½gt² + v₀t + h₀), kinetic energy (E = ½mv²), gravitational potential, lens equations, and wave mechanics all produce quadratic equations. Setting the height equation to zero and solving with the quadratic formula gives the time of flight. Einstein’s mass-energy relation and many quantum mechanics problems reduce to quadratic equations. The formula is a fundamental tool in theoretical and applied physics.
Why is graphing useful?
The graph provides visual confirmation of algebraic results. You can see: how many times the parabola crosses the x-axis (matching the number of real roots), the location of the vertex (minimum or maximum point), whether the parabola opens up or down (sign of a), the y-intercept where the curve crosses the y-axis, and the axis of symmetry dividing the parabola. Visual verification catches algebraic errors — if your calculated roots don’t match where the curve crosses zero, recheck your arithmetic.

History of the Quadratic Formula

The quadratic formula has one of the longest histories in mathematics, spanning over 4,000 years. Babylonian mathematicians (circa 2000 BC) solved quadratic equations using geometric methods — completing a square literally with physical squares and rectangles. Indian mathematician Brahmagupta (628 AD) published the first explicit formula for solving quadratics, including negative and irrational solutions. Persian mathematician al-Khwarizmi (circa 820 AD) — whose name gives us the word “algorithm” — systematised quadratic solutions in his treatise “Al-Kitab al-mukhtasar fi hisab al-jabr wa’l-muqabala” (from which we get the word “algebra”). The modern symbolic formula x = (−b ± √(b²−4ac)) / 2a was established in the 17th century as algebraic notation matured through the work of Descartes and others.

Deriving the Formula: Completing the Square

The quadratic formula is derived by completing the square on the general equation ax²+bx+c=0. Starting from ax²+bx+c=0: (1) Divide by a: x²+(b/a)x+c/a=0. (2) Move the constant: x²+(b/a)x = −c/a. (3) Complete the square by adding (b/2a)² to both sides: x²+(b/a)x+(b/2a)² = −c/a+(b/2a)². (4) The left side is now a perfect square: (x+b/2a)² = (b²−4ac)/4a². (5) Take the square root: x+b/2a = ±√(b²−4ac)/2a. (6) Solve for x: x = (−b ± √(b²−4ac))/2a. Understanding this derivation reinforces why the formula works and helps students remember it — each step has a geometric or algebraic purpose.

The Parabola in Architecture

Parabolic curves appear throughout architecture and structural engineering. The Gateway Arch in St. Louis (actually a weighted catenary, closely approximating a parabola) follows a quadratic-like curve. Parabolic bridges distribute load efficiently — the main cables of a suspension bridge under uniform load form a parabola, and the parabolic shape ensures that tension is distributed evenly. Satellite dishes and reflector telescopes use parabolic surfaces because parallel incoming rays (from a distant source) all reflect to a single focal point — a property unique to the parabola. The focus is at (0, 1/4a) for a parabola y = ax², calculated directly from the coefficient a.

Quadratic Equations in Electrical Engineering

Electrical engineers encounter quadratic equations in resonant circuit analysis — the impedance of an RLC circuit produces a quadratic characteristic equation whose roots determine the circuit’s resonant frequency and damping behaviour. The equation s² + (R/L)s + 1/(LC) = 0 has roots that determine whether the circuit is overdamped (two real roots), critically damped (repeated root), or underdamped (complex roots). The discriminant (R/L)² − 4/(LC) directly indicates the damping condition — identical mathematics to the calculator’s discriminant analysis.

Power factor correction in AC circuits also involves quadratic relationships. The reactive power Q varies quadratically with voltage, and optimising capacitor bank size to minimise line losses produces a quadratic equation whose solution (via the quadratic formula) gives the optimal capacitor rating. The calculator handles these engineering quadratics as readily as textbook algebra problems — enter the circuit’s coefficients and read the roots that determine system behaviour.

Optics and Lens Equations

The thin lens equation 1/f = 1/u + 1/v (where f is focal length, u is object distance, v is image distance) rearranges to a quadratic when solving for one variable in terms of others. A lens system where the image must form at a specific distance from the object produces v² − dv + fd = 0 (where d is the object-to-image distance). The quadratic formula gives the two possible lens positions — a standard optics problem that physics students solve regularly. The calculator verifies these solutions instantly.

Chemistry: Equilibrium Calculations

Chemical equilibrium problems frequently produce quadratic equations. For the reaction A ⇌ 2B with equilibrium constant K, if the initial concentration of A is [A]₀ and x moles dissociate: K = (2x)²/([A]₀−x) = 4x²/([A]₀−x). Rearranging: 4x² + Kx − K[A]₀ = 0 — a quadratic in x. The quadratic formula gives x (the amount dissociated), from which equilibrium concentrations are calculated. Acid-base equilibrium, solubility products, and reaction kinetics all generate similar quadratics. Chemistry students use the quadratic formula more than almost any other algebraic tool.

Computer Science: Quadratic Time Complexity

In algorithm analysis, O(n²) time complexity — called “quadratic time” — describes algorithms whose execution time grows as the square of the input size. Bubble sort, selection sort, and insertion sort all have O(n²) worst-case complexity. Understanding that doubling the input size quadruples the execution time (because (2n)² = 4n²) is essential for software engineers choosing algorithms for large datasets. While the quadratic formula doesn’t solve complexity problems directly, the quadratic function’s growth rate — the parabola’s upward curve on the calculator’s graph — visually illustrates why quadratic algorithms become impractical for large inputs.

Sports: Trajectory Calculations

Every ball thrown, kicked, or hit follows a parabolic trajectory (ignoring air resistance). A baseball hit at 40° angle with initial velocity 45 m/s from 1 metre height: horizontal range x = v₀cos(θ)t, vertical position y = h₀ + v₀sin(θ)t − ½gt². Setting y = 0: −4.905t² + 28.93t + 1 = 0. The quadratic formula gives t = 5.94 seconds (flight time), and x = 45cos(40°)×5.94 = 204.7 metres (range). Coaches and sports analysts use these calculations for pitching analysis, golf ball trajectory modelling, and basketball shot arc optimisation — all quadratic formula applications.

Financial Mathematics

Compound interest calculations produce quadratic equations when solving for time or rate over two periods. If an investment doubles in value over 2 compounding periods: (1+r)² = 2, which expands to r² + 2r − 1 = 0. The quadratic formula gives r = (−2 + √8)/2 = 0.414 — a 41.4% growth rate per period. Similarly, determining the interest rate that makes two investment options equal after two periods often reduces to a quadratic. The calculator solves these financial quadratics with the same formula used for algebraic ones.

Teaching the Quadratic Formula Effectively

Research on mathematics education identifies several effective strategies for teaching the quadratic formula. Start with graphing: before introducing the formula, have students graph parabolas and identify roots visually. The calculator’s graph provides this visual foundation — students see that roots are where the curve crosses the x-axis. Connect to factoring: solve factorable equations both by factoring and by the quadratic formula, showing that both methods produce the same roots. Use the discriminant as a diagnostic: before solving, calculate Δ to predict the number and type of roots — then verify with the full formula. Practice with the calculator: students attempt the formula manually, then check against the calculator’s step-by-step solution to identify exactly where any errors occurred.

The most common student difficulties: sign errors (especially −b when b is negative), order of operations (squaring b before subtracting 4ac, dividing the entire numerator by 2a), and interpreting ± (remembering to compute both the + and − solutions). The calculator’s step-by-step breakdown addresses all three by showing each operation separately and clearly.

Quadratic Inequalities

While the calculator solves equations (= 0), understanding the roots enables solving quadratic inequalities (> 0, < 0, ≥ 0, ≤ 0). For ax²+bx+c > 0 with two real roots r₁ < r₂: if a > 0, the solution is x < r₁ OR x > r₂ (the parabola is above the x-axis outside the roots); if a < 0, the solution is r₁ < x < r₂ (the parabola is above the x-axis between the roots). The calculator's graph makes this visually obvious — the portions of the curve above the x-axis correspond to where the inequality is satisfied. Use the calculator to find the roots, then inspect the graph to determine the inequality's solution interval.

The Quadratic in Nature

Quadratic relationships appear throughout the natural world. Gravitational potential energy varies with the square of velocity (KE = ½mv²). The inverse-square law governs gravity, light intensity, and electromagnetic radiation — intensity decreasing as 1/r², producing quadratic equations when setting up distance calculations. Population dynamics in ecology model logistic growth curves that approximate parabolas during the growth phase. Biological scaling — the relationship between body surface area and volume — follows quadratic and cubic relationships that determine metabolic rates across species sizes. The parabola is one of nature’s fundamental curves, making the quadratic formula one of science’s most widely applicable tools.

Quadratic Regression and Data Fitting

Scientists and analysts use quadratic regression to fit parabolic curves to experimental data. When data points follow a curved (non-linear) pattern, a quadratic model y = ax²+bx+c often provides a better fit than a linear model. Statistical software calculates the optimal a, b, c coefficients using least-squares methods, producing a quadratic equation that models the relationship. The roots of this fitted equation indicate where the modelled quantity reaches zero — for example, a quadratic regression of revenue versus price finds the prices at which revenue is zero (too cheap or too expensive to generate revenue), with the vertex indicating the price that maximises revenue.

The calculator helps verify quadratic regression results: enter the fitted coefficients and confirm that the roots, vertex, and graph match expectations. If a regression produces a = 0.005, b = −3.2, c = 480, the calculator instantly shows the roots (x ≈ 240 and x ≈ 400), vertex (x = 320, y = −32), and the complete parabola — allowing the analyst to verify that the model makes physical sense before publishing results.

Animation and Motion Graphics

Motion graphics designers and animators use quadratic easing functions to create natural-looking movement. Linear animation (constant speed) looks mechanical and unnatural. Quadratic easing — where position follows a parabolic curve over time — produces acceleration and deceleration that mimics real-world physics. A ball bouncing uses a sequence of inverted parabolas: each bounce follows h(t) = −gt² + v₀t (the projectile equation), with decreasing amplitude. CSS animations and JavaScript animation libraries implement quadratic easing as “ease-in” (acceleration: t²), “ease-out” (deceleration: 1−(1−t)²), and “ease-in-out” (acceleration then deceleration). The calculator’s parabola graph illustrates the exact curve that these easing functions follow.

Acoustics and Sound Engineering

Sound intensity follows the inverse-square law: intensity decreases as 1/r² (where r is distance from the source). Setting up the equation for two listening positions at distances r₁ and r₂ from a speaker, where the intensity ratio must equal a specific value, produces a quadratic equation in the distance variable. Concert venue designers solve these quadratics to determine speaker placement that provides uniform sound coverage. Similarly, room acoustics calculations for reverberation time involve quadratic terms related to surface area and absorption coefficients — making the quadratic formula a standard tool in audio engineering.

Cryptography and Number Theory

Quadratic equations appear in several areas of number theory relevant to modern cryptography. Quadratic residues — solutions to x² ≡ a (mod n) — are fundamental to the Rabin cryptosystem and various primality tests. The quadratic sieve algorithm, one of the fastest known methods for factoring large numbers (critical to breaking RSA encryption), uses solutions of quadratic congruences to find factors. While these applications involve modular arithmetic rather than the standard quadratic formula, the underlying mathematical structure — finding values of x that satisfy x² + bx + c = 0 — is identical. Understanding the quadratic formula provides the conceptual foundation for these advanced applications.

Standardised Test Strategies

The quadratic formula appears on virtually every major standardised math test: SAT, ACT, GRE, GMAT, AP Calculus, IB Mathematics, and A-Level exams. Test-taking strategies specific to quadratics include: check the discriminant first — if the question asks “how many real solutions” or “does the equation have real roots,” you only need Δ = b²−4ac, not the full formula. Look for factoring shortcuts — if a=1 and c is small, factoring is faster than the formula. Verify by substitution — plug your answer back into the original equation to confirm it equals zero. Use the calculator for practice — solve problems manually under timed conditions, then check with the calculator to build speed and accuracy. The calculator’s step-by-step solution matches the working that exam graders expect to see, making it an ideal study verification tool.

Solve your equation now 📐

Roots, discriminant, vertex, parabola graph, step-by-step — enter a, b, c for instant solution.

Solve now ↑