Math

Quadratic equation solver

Solve ax² + bx + c = 0 for real or complex roots, with the discriminant, vertex and axis of symmetry.

Example figures shown. Replace them with yours.

Two real roots

x = 1, 2

x² − 3x + 2 = 0

Discriminant (b² − 4ac)
1
Vertex
(1.5, -0.25)
Axis of symmetry
x = 1.5
Y-intercept
(0, 2)
Parabola opens
Upward (minimum at the vertex)

Saved scenarios

Save different inputs to compare them side by side.

No saved scenarios yet. Press “Save scenario” to keep the current inputs and result here.

How it’s calculated

x = (−b ± √(b² − 4ac)) ÷ 2a. The discriminant b² − 4ac tells you the kind of roots: positive gives two real roots, zero gives one repeated root, and negative gives two complex roots. The vertex of the parabola is at x = −b ÷ 2a.

How to use the quadratic equation solver

  1. Enter your numbers: a (x² coefficient), b (x coefficient), c (constant). Example figures are filled in to start.
  2. Read your result instantly: the two real roots appears in the results panel, with a full breakdown underneath.
  3. Save as PDF, copy the results, or save a scenario to compare different inputs side by side.

Worked example

With these inputs: a (x² coefficient) 1; b (x coefficient) -3; c (constant) 2, the calculator shows Two real roots: x = 1, 2 (x² − 3x + 2 = 0).

It also reports Discriminant (b² − 4ac): 1; Vertex: (1.5, -0.25); Axis of symmetry: x = 1.5; Y-intercept: (0, 2); Parabola opens: Upward (minimum at the vertex).

How it’s calculated

x = (−b ± √(b² − 4ac)) ÷ 2a. The discriminant b² − 4ac tells you the kind of roots: positive gives two real roots, zero gives one repeated root, and negative gives two complex roots. The vertex of the parabola is at x = −b ÷ 2a.

Last reviewed November 19, 2026. Results are estimates for planning, not financial, tax or medical advice.

Frequently asked questions

What is the quadratic formula?

For ax² + bx + c = 0, the solutions are x = (−b ± √(b² − 4ac)) ÷ 2a.

What does the discriminant tell you?

The discriminant b² − 4ac decides the roots: positive means two different real roots, zero means one repeated root, and negative means two complex roots.

How do you find the vertex of a parabola?

The vertex is at x = −b ÷ 2a. Substitute that x back into the equation to get the y-coordinate.

Add this calculator to your website

Free for any website or blog. Paste this code into your page (in WordPress, use a Custom HTML block). It works on phones and desktops, resizes itself to fit, needs no sign-up, and shows no ads.

Preview the widget · All free widgets

Related calculators: Statistics calculatorFraction calculatorBinary, hex & decimal converterScientific calculator

All calculators

Free, instant, and private. Every calculation runs in your browser, so nothing you type leaves your device.

Finance

Mortgage calculatorMonthly house payment with tax, insurance, PMI and HOA, extra payments, affordability and a full schedule.Loan calculatorMonthly payment, true cost with fees, and how extra payments shorten your loan.Compound interest calculatorGrow a balance with monthly deposits, rising contributions, any compounding, and inflation-adjusted results.Savings goal calculatorWhat to save each month, each week, or all at once to hit a target by a date.Retirement calculatorProject your nest egg, the income it can pay, and how long it lasts at your planned spending.Refinance calculatorCompare your current mortgage with a new one, including points and cash-out, and find your break-even.Rental property calculatorCash flow, cap rate, cash-on-cash, DSCR, the 1% rule and total return over your holding period.Credit card payoff calculatorYour payoff date, the payment needed for a target date, and what minimum payments really cost.Inflation calculatorWhat things will cost later, what your money will be worth, and the raise you need to keep up.Salary to hourly calculatorConvert pay between every period, add overtime, and estimate take-home pay.Auto loan calculatorCar payment with sales tax, fees, down payment and trade-in, plus the total cost of the car.Home affordability calculatorHow much house you can afford from your income, debts, down payment and rate, using lender debt-to-income limits.Investment return calculatorTotal return (ROI) and annualized growth rate (CAGR) of an investment, including income received.Debt payoff calculatorPlan payoff for up to three debts with the avalanche or snowball method, and see which one saves more.

Business

Everyday

Health & fitness

Math