The quadratic formula gives both roots of any equation with : . You read off a, b and c, put them in, and the formula hands you the answer even when the equation will not factorise.
This page explains every letter, shows where the formula comes from, and walks through examples with two real roots, equal roots and complex roots. You will also learn the discriminant test, the sum and product of roots, how to form an equation from its roots, word problems and the graph. Type your own a, b and c into the solver below to check any answer step by step. For the rest of the syllabus, open the full list of maths formulas.
Key formulas
Quadratic formula
for ax² + bx + c = 0 with a ≠ 0
Standard form (quadratic equation format)
Discriminant formula
D > 0: two real roots, D = 0: equal roots, D < 0: no real roots
Sum of roots
Product of roots
Equation from its roots
Vertex of the parabola
axis of symmetry is the line x = -b/2a
Value of i
used when D < 0
What is a quadratic equation and its standard form
A quadratic equation is a polynomial equation in one variable whose highest power is 2. Its standard form, also called the quadratic equation format, is
Here a is the coefficient of , b is the coefficient of x and c is the constant term. The condition matters: if a were zero, the term would vanish and you would be left with a linear equation.
Quadratic trinomial: definition and examples
A quadratic trinomial is a degree 2 polynomial with all three terms present, so a, b and c are all non-zero. A quadratic trinomial in standard form looks like . A few quadratic trinomial examples: , and . By contrast, is quadratic but only a binomial, and is a trinomial but not quadratic.
Is a trinomial a quadratic equation? Not by itself. A trinomial is an expression; it becomes an equation only when you set it equal to something, usually zero. So is a quadratic trinomial and is a quadratic equation. Always rearrange to the standard form, with zero on the right, before you pick out a, b and c.
In NCERT this topic is chapter 4 of class 10, Quadratic Equations. Complex roots return in class 11, in the chapter on complex numbers and quadratic equations.
The quadratic formula explained letter by letter
Look at the formula once more and read it as a set of instructions.
- : take the coefficient of x and change its sign. If b is , then is 7.
- : the discriminant, written D. Square b first (a square is never negative), then subtract four times a times c.
- : you get two answers, one with plus and one with minus. These are the two roots, often called and .
- : the whole numerator, not just the square root, is divided by twice a.
A neat way to remember it: the roots sit symmetrically around , one step of to the right and one step to the left. That middle value is also the x coordinate of the vertex of the graph, which you will meet further down.
Discriminant formula and the nature of roots
The number under the square root decides what kind of roots you get, before you finish the working. That is why it is called the discriminant.
| Value of D | Nature of roots | Graph meets x axis |
|---|---|---|
| D > 0 and a perfect square | Two distinct real, rational roots | At two points |
| D > 0, not a perfect square | Two distinct real, irrational roots | At two points |
| D = 0 | Two equal real roots, each | Touches at one point |
| D < 0 | No real roots; two complex (non-real) roots | Does not meet it |
The rational and irrational split in the first two rows assumes a, b and c are integers. In class 10 board papers the most common question is "find k so that the equation has equal roots": set and solve for k. For example, has equal roots when , so or .
Deriving the quadratic formula by completing the square
The formula is not a rule to memorise blindly. It drops out when you complete the square on the general equation. Start from and divide every term by a (allowed because ).
In the second line you add the square of half the coefficient of x to both sides. The left side then becomes a perfect square, using the identity for from the algebra identities page. Taking the square root gives the sign, because both a positive and a negative number square to the same value. Check whether your board still asks for this proof; either way, writing it out once helps the formula stick.
Worked examples using the quadratic formula
Each example uses the same three moves: write a, b and c with their signs, find D, then substitute. Check each one in the solver.
Example 1: two real roots
Solve .
- Here , , .
- , a perfect square, so the roots are rational.
- , so or .
Answer: or .
Example 2: irrational roots
Solve .
- , , .
- . Not a perfect square, and .
- .
Answer: or .
Example 3: equal roots
Solve .
- , , .
- , so both roots are the same.
- . You could also spot .
Answer: , repeated.
Example 4: complex roots
Solve .
- , , .
- . Negative, so there is no real root.
- , so .
Answer: or . In class 10 you simply write "no real roots".
Imaginary roots: the value of i and why it is used
When the discriminant is negative you need the square root of a negative number. No real number squares to a negative value, so to handle square roots such as , mathematicians defined a new number i with . That is the value of i in a quadratic equation: . Then for any positive k.
Why are imaginary numbers used in quadratics at all? Because with them every quadratic has exactly two roots, counted with repetition, and the formula works for every a, b and c. Without them, many quadratics would simply have "no solution", which is less useful in physics and engineering, where these roots describe things like oscillating circuits and vibrations.
Roots of this kind always come as a conjugate pair and when a, b and c are real. Their sum and product are ordinary real numbers, which is a quick way to check your work. In Example 4, the sum is 2 and the product is , matching and .
Factorisation, completing the square or the formula: which to use
There are three standard ways to solve a quadratic, and all three give the same roots. Choosing well saves time in an exam.
| Method | Best when | Weak point |
|---|---|---|
| Splitting the middle term (factorisation) | The roots are small whole numbers or simple fractions | Fails quietly when roots are irrational |
| Completing the square | a = 1 and b is even; also for finding the vertex | Fractions pile up when a ≠ 1 |
| Quadratic formula | Any equation, especially messy coefficients | Sign slips during substitution |
How to solve quadratic trinomials by factorising
For , look for two numbers whose product is and whose sum is b. In , and , so the numbers are and . Split and group: . The roots 3 and one half match Example 1.
A practical rule: work out D first. If it is a perfect square, factorisation will work quickly. If not, go straight to the formula.
Sum and product of roots and formation of quadratic equation
If and are the roots of , adding and multiplying the two values from the formula gives
For , the sum is and the product is without solving. The actual roots are 2 and : check that and .
Run the idea backwards for the formation of a quadratic equation. When you know the roots, the equation is
Example 5: form the equation from its roots
Find a quadratic equation whose roots are 4 and .
- Sum . Product .
- The equation is .
- Multiply by 2 to clear the fraction.
Answer: .
Irrational roots come in pairs too. Roots and have sum 6 and product , giving .
Quadratic from three points and the golden ratio
Through three points a quadratic equation can always be made
Through any three points with different x values that do not lie on one straight line, exactly one parabola passes. Three unknowns need three equations, and each point gives one. If the points are collinear you get , a straight line instead.
Example 6: find the quadratic from three points
Find the quadratic through , and .
- Substitute each point: , , .
- Subtract the first from the third: , so .
- Subtract the first from the second: , so and . Then .
Answer: . Each point checks out when substituted.
Golden ratio quadratic equation
The golden ratio is the number that satisfies . Multiply through by to get the golden ratio quadratic equation . The golden ratio quadratic formula working is short: , , , , so . The other root, about , is rejected because a ratio of lengths is positive.
Word problems on quadratic equations
Word problems follow one routine: name the unknown, turn the sentence into an equation, bring it to standard form, solve, then reject any root that makes no sense (a negative length or time).
Example 7: area of a garden
A rectangular garden is 5 m longer than it is wide, and its area is 84 m². Find its sides.
- Let the width be w m. Then , so .
- .
- , giving 7 or . A width cannot be negative.
Answer: width 7 m, length 12 m.
Example 8: a ball thrown upward
A ball's height after t seconds is metres. When does it hit the ground?
- Set : . Divide by : .
- , so , giving 4 or .
Answer: after 4 seconds. The root is before the throw, so it is dropped.
Graph of a quadratic: vertex and axis of symmetry
The graph of is a parabola. It opens upward when and downward when . The real roots are the points where it crosses the x axis, which is why the sign of D tells you how many crossings there are.
Take . The axis is . Put : , so the vertex is , the lowest point. Check with the formula: and . The roots 1 and 5 sit two units either side of 3, just as the formula predicts. The solver above draws this picture for any equation you type in, and there is a second route through calculus: the slope is zero at , as the derivative rules show.
Common mistakes with the quadratic formula
Watch for these. Most lost marks come from the same few slips.
- Not rearranging first. In , b is and c is , not 3 and 10. Move everything to one side first.
- Squaring a negative b wrongly. , not . Put b in brackets when you substitute.
- Dividing only the root by 2a. The fraction bar runs under as well.
- Dropping the sign of c in 4ac. With , : the two minus signs cancel.
- Forgetting one root. The gives two values; write both, then reject one only if the problem says so.
- Not simplifying surds. Write as and cancel common factors.
Practice: solve and . Answers are in the FAQ below. For more identities used in simplifying answers, see algebra formulas, and for the distance between two roots marked on a graph, the distance formula.
Download the PDF
Questions students ask
What is the quadratic formula?
For with , the roots are . It is also called Sridharacharya's formula in Indian textbooks, after the mathematician who stated a rule of this kind.
What is the discriminant formula?
The discriminant is . If D is positive there are two different real roots, if it is zero the two roots are equal, and if it is negative the roots are complex, so there is no real root.
Can the quadratic formula be used when a is zero?
No. If the equation is linear, , and the formula would mean dividing by zero. Solve it directly as .
What are the answers to the practice questions?
For : , so or . For : , so there are no real roots; the complex roots are .
Which class teaches the quadratic formula?
It is taught in class 10 in the Quadratic Equations chapter, with real roots only. Class 11 extends it to complex roots. It is also used throughout class 11 and 12 physics and in competitive exams.
Is the quadratic formula the same as Sridharacharya formula?
Yes. Many Indian books call it the Sridharacharya formula. The formula itself, and the way you use it, is exactly the same.
How do I know if the roots will be rational?
When a, b and c are integers, the roots are rational exactly when the discriminant is a perfect square such as 0, 1, 4, 9 or 25. Then factorisation by splitting the middle term will also work.














