How to use this calculator
Build a quadratic equation when its two real roots and leading coefficient are known.
- Enter First root r₁, Second root r₂, Leading coefficient a. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
How this calculation works
Starting from the chosen real roots, the factored expression a(x−r₁)(x−r₂) expands to standard coefficients. The leading coefficient scales the equation without changing its roots, provided it is nonzero.
Inputs and meanings
root1— First root r₁- Enter one real root.
root2— Second root r₂- Enter the other real root; it may equal the first.
a— Leading coefficient a- Enter any nonzero real leading coefficient.
Formula and method
If roots are r₁ and r₂, then a(x−r₁)(x−r₂)=ax²−a(r₁+r₂)x+ar₁r₂.
The factor form is expanded to standard coefficients. Equal roots produce a repeated root and a perfect-square factor.
Worked example
With roots 2 and −3 and leading coefficient 1, the equation is (x−2)(x+3)=0, or x²+x−6=0.
Assumptions and limits
The roots and coefficient are real numbers; the leading coefficient cannot be zero.
Frequently asked questions
Can I use the same root twice?
Yes. Equal roots create a repeated root, such as (x−2)²=0.
Why must the leading coefficient be nonzero?
If it were zero, the x² term would disappear and the equation would no longer be quadratic.
Does this solve for the roots?
No. It constructs the quadratic from roots you already know; use the quadratic equation solver to go in the other direction.
How do I use the Quadratic equation from roots calculator?
Enter First root r₁, Second root r₂, Leading coefficient a. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Quadratic equation from roots?
With roots 2 and −3 and leading coefficient 1, the equation is (x−2)(x+3)=0, or x²+x−6=0.
Read our calculation methodology.