Equation Solver

Solve any quadratic ax² + bx + c = 0 using the quadratic formula.

Result

2
x₁
1
x₂
1
Discriminant

Formula

x = (−b ± √(b² − 4ac)) / (2a).

Worked example

x² − 3x + 2 = 0: discriminant = 1, roots x = 2 and x = 1.

About the equation solver

An equation solver applies the quadratic formula in milliseconds and handles the messy edge cases — negative discriminants, degenerate coefficients — without a single sign error. A well-built calculator turns a topic that usually requires spreadsheets, formulas, or expert guidance into a single input form with an instant, trustworthy answer. That matters because most people making a decision — a budget, a purchase, a health goal, a homework problem — do not want to install software or open a textbook. They want a clear number and a short explanation of where it came from, and they want it to load on their phone in a second.

This tool is aimed at algebra and precalculus students, physics students working with projectile motion, and engineers checking design equations. Different visitors arrive here with very different backgrounds. Some are professionals double-checking a value they already estimated in their head. Others are complete beginners who have never seen the underlying formula before. The tool above is designed so both groups can succeed on the first try: defaults reflect realistic real-world inputs, labels are written in plain English, and the result panel highlights the primary number in a large, glanceable format while keeping supporting figures visible for context.

Quadratics show up everywhere: projectile motion, break-even analysis, optics, finance, and machine-learning loss functions. Understanding the "why" behind a calculation is what turns a one-off answer into a lasting mental model. This is why every calculator on CalcCosmos publishes the exact formula it uses and walks through a worked example with real numbers. When you can see that a percentage change is nothing more than the difference divided by the starting value, or that a monthly loan payment is a rearranged annuity formula, you gain a portable skill you can reuse anywhere — on a napkin, in a job interview, or with a friend who needs help.

Enter the coefficients a, b, and c; the calculator returns both roots, the discriminant, and flags the complex case cleanly. Using the tool above is intentionally straightforward. Enter your values, and the result updates instantly — there is no submit button, no loading spinner, and no page reload. When you're happy with the answer, tap "Copy" to place the result on your clipboard for pasting into a message, a spreadsheet, or a form. Tap "Share" to send it to a friend using your device's native share sheet, which falls back to copying a formatted summary when native sharing is unavailable. All of the math runs directly in your browser, so nothing you enter is transmitted or stored on our servers.

Sketch the parabola before solving — knowing whether it opens up or down and where the vertex sits helps you sanity-check the roots. A few small habits will make the tool more useful over time. First, treat the default values as a sanity check: if your inputs produce a result that is dramatically different from the default, verify that you entered the right units. Second, if the calculator supports multiple modes, try each one — you often learn something new about the problem simply by comparing how the same variables interact under different assumptions. Third, bookmark the tools you return to often; each calculator lives at a permanent URL that will not change.

Combine the equation solver with our algebra and area calculators when working geometric problems that reduce to quadratics. CalcCosmos exists to give you the fastest possible path from question to trustworthy answer. If a calculation you rely on is missing from our library, or if you'd like to see additional inputs, edge-case handling, or worked examples added to this page, we want to hear about it. New calculators launch every week based on what people ask us for, and every existing tool is refined based on real user feedback. Thank you for choosing CalcCosmos — we hope this calculator saves you time today and teaches you something you can use tomorrow.

Frequently asked questions

What does a negative discriminant mean?+

The parabola does not cross the x-axis — the roots are complex conjugates.

Can it factor?+

Once you have the roots r₁ and r₂, the quadratic factors as a(x − r₁)(x − r₂).

Does it solve cubic or higher equations?+

This solver is for quadratics only. Higher-degree equations typically require numerical methods.

Related calculators