Quadratic Equation Solver - Find Roots of ax²+bx+c=0

Every quadratic equation reduces to a single question: for which values of x does ax² + bx + c equal zero? The quadratic formula answers it, but the formula on its page rarely helps you because it hides the two steps that actually matter, which are understanding what the discriminant tells you and recognising when the equation has one repeated root, two real roots or no real roots at all. This free quadratic equation solver does both. Enter your coefficients a, b and c and you immediately get every root, the discriminant, the axis of symmetry, the vertex and the factored form, with the working shown step by step rather than just an answer. It handles the cases students and exam boards care about, including negative and fractional coefficients, a coefficient of zero which degenerates into a linear equation, and complex roots when the discriminant is negative. It is equally useful for practical work: engineers use the discriminant to decide whether two quadratic design curves intersect at all, economists use the vertex to locate the profit-maximising price for a revenue-minus-cost model, and photographers use it to find the focus of a parabola. Nothing is uploaded, every calculation happens in your browser, and the answer appears as you type rather than after you press a button.

Quadratic Equation Solver

Enter the coefficients for ax² + bx + c = 0

What Is

A quadratic equation is any polynomial equation of degree two, which in standard form is written ax² + bx + c = 0 where a, b and c are real coefficients and a is not zero. Its graph is a parabola, and the solutions, called roots, are exactly the points where that parabola crosses or touches the horizontal axis. The quadratic formula states that the roots are x = (−b ± √(b² − 4ac)) / (2a). Everything interesting is hidden inside the discriminant D = b² − 4ac, and its sign decides the entire character of the solution. If D is greater than zero the parabola crosses the axis twice and there are two distinct real roots, x₁ and x₂.

If D equals zero the parabola touches the axis at a single turning point, giving one repeated real root at the vertex. If D is less than zero the parabola never reaches the axis, so there are no real roots and the two complex conjugate roots are found by evaluating the square root of a negative number as an imaginary value. Three more quantities follow from the same coefficients. The vertex sits at x = −b/(2a) with a y-value obtained by substituting back, and it is where the parabola reaches its maximum or minimum depending on the sign of a. The axis of symmetry is the vertical line x = −b/(2a).

The sum of the roots is −b/a and the product is c/a, and these two facts let you verify a solution quickly or build one when you only know the roots. When a is zero the equation is no longer quadratic but reduces to the linear bx + c = 0 with root −c/b, and when every coefficient is zero the equation is an identity satisfied by every value of x. Treating those degenerate cases explicitly matters, because dividing by 2a when a is zero produces an undefined result rather than the correct linear answer.

How to Use

  1. Open the Quadratic Equation Solver. Everything runs in your browser, so no equation or data is uploaded to any server.
  2. Enter the coefficient a in the x² field, then b in the x field and c in the constant field. Spaces around a minus sign are fine, and the tool accepts decimals and negative numbers.
  3. Read the discriminant shown first. A positive value means two distinct real roots, zero means one repeated real root, and a negative value means no real roots and a conjugate complex pair.
  4. Check the roots listed in the result panel, then use the step-by-step working to follow the substitution into the quadratic formula rather than copying the number without understanding it.
  5. Use the vertex, axis of symmetry and factored form to sketch the parabola or to confirm your own algebra, since all of these come from the same three coefficients.
  6. Verify with the sum and product checks, which report whether the roots add up to −b/a and multiply to c/a. If either fails, an input value has a typo.
  7. Copy the solution or the full working into your notes or report, and remember to state the domain restriction if the equation came from a square root or a rational expression.

Examples

Input: a = 1, b = −5, c = 6

Process:

D = 25 − 24 = 1, then x = (5 ± 1) / 2

Result: x₁ = 3, x₂ = 2 — factored form (x − 3)(x − 2) = 0

Input: a = 2, b = −4, c = 2

Process:

D = 16 − 16 = 0, then x = 4 / 4

Result: x = 2 — one repeated real root, parabola touches the axis at (2, 0)

Input: a = 1, b = 2, c = 5

Process:

D = 4 − 20 = −16, so √(−16) = 4i, x = (−2 ± 4i) / 2

Result: x = −1 + 2i, x = −1 − 2i — no real roots

Related Searches

People also search for: quadratic equation solver, solve quadratic equation, ax2+bx+c=0, find roots of quadratic, quadratic formula, discriminant calculator.

quadratic equation solversolve quadratic equationax2+bx+c=0find roots of quadraticquadratic formuladiscriminant calculatorsolve for x quadraticreal and complex rootscompleting the squarevertex of parabolaaxis of symmetrysum and product of rootsfactorise quadraticalgebra solver onlinequadratic step by stepparabola intersectiontwo real rootsrepeated root calculatorfree algebra calculatorquadratic equation steps

Frequently Asked Questions

What does the discriminant tell me about a quadratic equation?

The discriminant D = b² − 4ac tells you the nature of the roots before you compute them, which is why it is the first thing you should calculate. If D is greater than zero the equation has two distinct real roots and the parabola crosses the horizontal axis twice. If D equals zero there is exactly one real root, repeated twice, and the parabola touches the axis at its turning point, which is the vertex. If D is less than zero there are no real roots at all, because the parabola opens away from the axis, and the two solutions form a complex conjugate pair of the form a + bi and a − bi. The magnitude of D also measures how far the roots sit from each other: the larger D is, the wider apart the two roots become. Working out the discriminant first is usually faster than substituting into the formula and discovering a negative square root halfway through.

Why can my quadratic have no real roots when I can see the parabola crossing?

This almost always means a is negative, or your plot has an incorrect scale, or you have transposed a coefficient. A parabola only crosses the horizontal axis if it opens upwards, meaning a must be positive, and it only touches the axis if a is positive and D equals zero. If a is negative the parabola opens downwards and stays entirely below the axis when D is less than zero, which is mathematically consistent even if your sketch appears to cross because the axes are not drawn to scale. Check first that you have not swapped b and c, since that error produces a plausible-looking graph with the wrong roots. Also confirm you did not omit a minus sign in front of a negative coefficient, a very common slip when copying from a textbook.

How do I solve a quadratic equation when a is zero?

When a equals zero the equation ax² + bx + c = 0 is no longer quadratic because the squared term disappears. It reduces to the linear equation bx + c = 0, which has the single solution x = −c/b, provided b is also not zero. This is exactly the case where blindly applying the quadratic formula fails, because it divides by 2a and therefore divides by zero, producing an undefined or infinite result instead of the correct answer. If both a and b are zero, then the equation becomes the identity c = 0: if c is also zero every real number is a solution, and if c is not zero there are no solutions at all. Most solvers, including this one, detect these degenerate cases automatically and report which of the three situations applies rather than returning a division by zero.

Can I use the quadratic formula for any quadratic equation?

You can use it for any equation that is genuinely quadratic, which means the coefficient a is not zero. What you cannot do is apply it directly to an equation that is not yet in standard form ax² + bx + c = 0. An equation such as x² + 6 = 5x must first be rearranged so that every term sits on one side, giving x² − 5x + 6 = 0. An equation containing fractions should be cleared of denominators first, for example x²/3 − x = 2 becomes x² − 3x = 6. An equation with a square root, a fraction containing x, or an exponent other than two is not quadratic at all and the formula does not apply, so substitution or a different method is needed. The formula also works numerically for any real coefficients, so you can enter decimals or large numbers directly.

What is the difference between the quadratic formula, completing the square and factoring?

All three produce the same roots, and the difference is how much insight they give you. The quadratic formula is a mechanical procedure that works for every quadratic including ones that cannot be factored with whole numbers, which makes it the safest general approach and the one to fall back on in an exam. Completing the square rewrites the equation into (x − h)² = k, which reveals the vertex directly and shows you why the discriminant controls whether real roots exist, though it involves more algebra and introduces fractions easily. Factoring writes the equation as (x − x₁)(x − x₂) = 0, which gives roots fastest when the numbers are integers and teaches the structure behind the whole method, but it fails outright when the roots are irrational or complex. Completing the square is the conceptual bridge between the other two, which is why it is worth working through at least once by hand.

Why are my quadratic roots coming out as complex numbers?

You get complex roots precisely when the discriminant is negative, meaning b² − 4ac is less than zero. That is not an error in the tool or a sign you entered incorrectly; it is the mathematically correct answer for an equation whose parabola never intersects the horizontal axis. The roots take the form a + bi and a − bi, where b is not zero and i is the imaginary unit. In most school contexts this means the equation has no real solution, and that is the result you should report. Complex roots appear legitimately in fields such as electrical engineering, where they describe oscillatory behaviour and circuit impedance, and in quantum mechanics, where real-valued solutions do not exist. If you were expecting real numbers, re-check b² and 4ac separately, since a small arithmetic slip often flips the sign of the discriminant.

Related Tools

Age Calculator

Figuring out someone's exact age isn't as simple as subtracting birth year from current year. Leap years, different month lengths, and time zones all make manual calculations tricky. Our Age Calculator does the heavy lifting for you — just plug in a date of birth and you'll get precise results down to the years, months, weeks, days, hours, and even minutes lived. Whether you're filling out official forms that require exact age, planning a milestone birthday party, or just curious about how many days you've been on this planet, this tool gives you instant, accurate answers. It also shows you fun extras like your zodiac sign, birthstone, and countdown to your next birthday.

Age Difference Calculator

Ever wonder exactly how many years, months, and days separate two birthdays? Our Age Difference Calculator makes it effortless. Enter two birthdates and instantly see the precise time difference in years, months, weeks, days, hours, and even minutes. Whether you are checking the age gap between you and your partner, figuring out exactly how much older your sibling is, comparing generational gaps between family members, or satisfying pure curiosity, this tool gives you the full breakdown. Context labels make it fun too. All calculations run in your browser for complete privacy.

Average Calculator

Need to find the average of a bunch of numbers fast? Whether you're a student calculating your GPA, a teacher figuring out class averages, a business analyst computing monthly sales figures, or just someone trying to split a restaurant bill fairly, our Average Calculator handles it all. Enter any set of numbers — separated by commas, spaces, or line breaks — and instantly get the mean, median, mode, range, count, and sum. No more fumbling with spreadsheet formulas or second-guessing your mental math. The calculator also shows you the count of numbers entered and their total sum, giving you a complete statistical snapshot of your dataset in one glance.

Scientific Calculator

Sometimes a basic four-function calculator just won't cut it. When you need to solve complex equations, work with trigonometric functions, calculate logarithms, or handle exponents and roots, you need a Scientific Calculator that can keep up. Our full-featured online scientific calculator gives you everything from basic arithmetic to advanced mathematical operations — all in your browser, with no app to download. It supports trigonometric functions (sin, cos, tan), inverse trig, logarithms (natural and base-10), exponentials, factorials, powers, roots, and constants like pi and e. Whether you're a high school student tackling algebra, an engineering student working through calculus, or a professional who needs quick computations on the job, this tool has you covered.

Grade Calculator

Wondering what you need on the final exam to get an A? Trying to figure out your current grade halfway through the semester? Our Grade Calculator takes the stress out of tracking your academic performance. Enter your assignments, quizzes, tests, and their respective weights or points, and the calculator instantly shows your current overall grade. You can also set a target grade and find out exactly what score you need on remaining assessments to hit that goal. Whether you're a high school student aiming for college, a college student protecting your GPA, or a parent helping your child stay on top of their studies, this tool gives you clarity and control over your academic standing.

Date Calculator

Planning an event 90 days from now? Need to figure out exactly how many weeks until your due date? Trying to calculate the number of business days between today and a deadline? Our Date Calculator takes the guesswork out of date math. Add or subtract days, weeks, months, or years from any date, or calculate the exact duration between two dates in days, weeks, months, or years. It handles leap years automatically, can exclude weekends for business day calculations, and gives you results that are dead simple to read. No more counting calendar squares on your fingers.

Percentage Change Calculator

Stock went from $50 to $75 — is that good? Your website traffic dropped from 10,000 to 8,000 visitors — how worried should you be? Numbers are everywhere, but raw figures don't tell the full story. Our Percentage Change Calculator instantly shows you the relative increase or decrease between any two values, expressed as a clear percentage. No more mental math errors or squinting at spreadsheets. Whether you're tracking investment returns, measuring business growth, comparing test scores, or analyzing any before-and-after scenario, this tool gives you the percentage change in a single click.

Lunar Age Calculator

The Lunar Age Calculator determines your age according to the traditional Chinese lunar calendar system. Unlike the Western Gregorian method that counts age from the date of birth, traditional East Asian age reckoning considers a person to be one year old at birth and adds a year at each Lunar New Year. This calculator helps you quickly find your lunar age for cultural celebrations, family gatherings, or personal curiosity. Simply enter your Gregorian birth date, and the tool calculates both your traditional lunar age and your international age side by side.

Standard Deviation Calculator - Variance, Quartiles & More

Most people reach for a calculator the moment they have a list of numbers and a question about how tightly they cluster, and almost every online standard deviation tool answers it with one figure and no context. The problem is that a single standard deviation can mean two different things depending on how you got your data, and choosing the wrong one quietly biases every number that follows. This free standard deviation calculator refuses to hide that choice. Paste your values into the box, separated by spaces or commas, and you get the full descriptive picture at once: the count, the sum, the arithmetic mean, the median and every mode, the minimum and maximum, the range, the first and third quartiles, the interquartile range, both the population and the sample form of the variance and the standard deviation, the coefficient of variation as a percentage, and the standard error of the mean. A checkbox decides whether the headline variance and standard deviation divide by n or by n−1, so you can see exactly how much the choice moves the answer rather than guessing. It also flags anything it could not parse instead of silently dropping it, which matters more than it sounds when you are pasting a column out of a spreadsheet and one cell contains a stray unit. Numbers are entered with full decimal precision and results are shown live as you type, so there is no submit button to forget. Everything runs client-side in your browser; your data is never uploaded, logged or stored.

Aspect Ratio Calculator - Reduce, Identify and Scale Ratios

Every time you set a crop, export a thumbnail, choose a background size or embed a video, you are really being asked the same question: what is the ratio of width to height, and what does everything else need to be so the shape does not distort? People answer it by hand in three different ways and get three different numbers, because a ratio such as 1920:1080 and 16:9 describe the same shape but only one of them has been reduced, and the decimal form 1.7778 is a lossy stand-in for an exact relationship. This free aspect ratio calculator removes the guesswork. Enter a width and a height and it immediately finds the greatest common divisor, divides both sides by it to give the ratio in lowest terms, and shows you the decimal value and the percentage alongside the original pair. It recognises when your dimensions match a well-known format and tells you so, which is how you discover that a 1366 by 768 screen is not really 16:9, but 683:384. A live preview block draws the shape at the correct proportions so a glance confirms what the numbers mean. The preset row covers 16:9, 4:3, 3:2, 1:1, 21:9, 9:16, 3:4, 5:4 and 2:1 in one click, and the panel underneath explains why every sheet of A-series paper is defined by an irrational ratio. Finally, the target width section answers the question you actually have most often: if my picture is 3000 pixels wide and I need it 1280 pixels wide without stretching it, how tall must it be? You type the width you need and get the matching height and the exact scale factor. Everything runs client-side, nothing is uploaded, and the answers update as you type.

Popular Tools

EMI Calculator

Planning to take a home loan, car loan, or personal loan and wondering what your monthly payment will look like? Our...

BMI Calculator

Ever stepped on a scale and wondered what that number actually means for your health? Our BMI calculator takes the gu...

Body Fat Calculator

Have you ever felt like the scale does not tell the whole story? You can weigh the same as someone else but look comp...

CAGR Calculator

When you invest in stocks, mutual funds, or any market-linked asset, one number tells you the real story of how your...

Unit Converter

From cooking to construction, from science to shopping, unit conversion is one of those things you need all the time...

JSON Formatter

Format, beautify, and validate JSON data instantly with our free online tool. Paste raw JSON to get a properly indent...

QR Code Generator

Need a professional QR code for your website, business card, event, product packaging, or marketing campaign? Our fre...

Salary Calculator

Understanding your true take-home pay is essential for budgeting, planning, and making smart career decisions, yet mo...

Tip Calculator

Dining out, getting a haircut, taking a taxi, or receiving any kind of personal service often comes with the question...

Word Counter

Need an accurate word count for your essay, article, or document? This word counter gives you instant, precise counts...

Color Code Converter

Color Code Converter is a free online tool that instantly converts color values between different formats used in web...