Opus Calculator

    Type to search. Press ? for keyboard shortcuts.

    Keyboard shortcuts

    / Ctrl K
    Search and commands
    ?
    This list
    t
    Switch light or dark
    c
    Copy the result
    s
    Share the result
    r
    Clear all changes
    h
    Go to the home page

    Quadratic Formula Calculator

    With the default inputs, the roots comes to x₁ = 3 and x₂ = 2.

    Share this calculator

    Quadratic Formula Calculator

    These are plain links: nothing is sent to those sites until you choose one.

    Find this useful?Add Opus Calculator as a preferred source on Google (opens in a new tab)

    Cite this calculator

    Pick a style, then copy. Dated by when this page was last updated.

    Citing your own numbers? Use "Share result" on the calculator.

    Embed this calculator

    Show it on your own page. It links back here and is not indexed by search engines.

    Use this calculator with AI

    An assistant connected to our MCP server runs the same exact calculation as this page and cites it.

    This prompt uses the calculator's default numbers. Change the inputs and it follows.

    2. Connect once

    The server is read-only, needs no account and stores nothing. Any client that supports remote MCP servers over HTTP can use it.

    3. Or give an agent this page in a machine-readable form

    Nothing has changed yet.

    Result

    Roots: x₁ = 3 and x₂ = 2. Discriminant: 1. Vertex: (2.5, -0.25). Type of roots: Two real roots

    Exact decimal arithmetic

    The formula

    x=−b±b2−4ac2ax = \dfrac{-b \pm \sqrt{b^{2} - 4ac}}{2a}

    x = (−b ± √(b² − 4ac)) ÷ 2a. The discriminant is Δ = b² − 4ac. The vertex of the parabola is at x = −b ÷ 2a, with y = c − b² ÷ 4a.

    Worked example

    x² − 5x + 6 = 0: Δ = 25 − 24 = 1, so x = (5 ± 1) ÷ 2 gives x₁ = 3 and x₂ = 2. The vertex is at (2.5, −0.25). For 2x² + 2x + 5 the discriminant is −36, so the roots are −0.5 ± 1.5i.

    About this calculator

    A quadratic equation has the form ax² + bx + c = 0 with a not equal to zero. Its roots come from the quadratic formula, and the part under the square root, the discriminant, tells you what to expect: positive gives two real roots, zero gives one repeated root and negative gives a pair of complex roots. Enter the three coefficients to get the roots, the discriminant, the type of solution and the vertex of the parabola y = ax² + bx + c. Worked scenarios, each run through the same calculator: 8x² + -18x + 27 gives roots x = 1.125 ± 1.4524i, type of roots Two complex roots; 2x² + -14x + -17 gives roots x₁ = 8.0552 and x₂ = -1.0552, type of roots Two real roots; 8x² + -4x + 8 gives roots x = 0.25 ± 0.9682i, type of roots Two complex roots; 9x² + -19x + 22 gives roots x = 1.0556 ± 1.1534i, type of roots Two complex roots; 5x² + -7x + 21 gives roots x = 0.7 ± 1.9261i, type of roots Two complex roots; 8x² + 8x + -16 gives roots x₁ = 1 and x₂ = -2, type of roots Two real roots; 7x² + 13x + -27 gives roots x₁ = 1.2438 and x₂ = -3.101, type of roots Two real roots; 4x² + -17x + -5 gives roots x₁ = 4.5262 and x₂ = -0.2762, type of roots Two real roots; 5x² + -12x + -10 gives roots x₁ = 3.0547 and x₂ = -0.6547, type of roots Two real roots; 3x² + 11x + -21 gives roots x₁ = 1.3855 and x₂ = -5.0522, type of roots Two real roots; 6x² + -13x + 0 gives roots x₁ = 2.1667 and x₂ = 0, type of roots Two real roots; 8x² + -21x + 7 gives roots x₁ = 2.2332 and x₂ = 0.3918, type of roots Two real roots.

    Sources and method

    Every number is worked out with exact decimal arithmetic, not floating point, and rounded only when it is shown.

    Sources

    Frequently asked questions

    What if a is zero?

    Then the equation is linear, not quadratic, and has one solution x = −c ÷ b.

    What does a negative discriminant mean?

    The parabola never crosses the x-axis, so there are no real roots; the two complex roots are conjugates of each other.

    Can I check the roots?

    Their sum is −b ÷ a and their product is c ÷ a. Here 3 + 2 = 5 and 3 × 2 = 6.