Math calculator

Graphing Quadratic Inequalities Calculator

A sign chart rather than four rules — and a clear split between the number-line question and the shaded-region one.

Solve a quadratic inequality

Put a y on one side for the shaded-region version.

Relation

x² − x − 6 < 0

(−2, 3)

−2 < x < 3

Discriminant

25

2 axis crossings

Opens

upward

vertex at (1/2, −25/4)

Roots

−2, 3

x = 1/2

Set-builder

{x ∈ ℝ | −2 < x < 3}

the same answer, written as a condition

The sign chart

Each region with a test value and the sign of the quadratic there
RegionTest valueValue thereSignIn the answer?
x < −2x = −36+no
−2 < x < 3x = 0.5−6.25yes
x > 3x = 46+no

The parabola crosses the axis at −2 and 3, cutting the line into three regions. Inside each region the sign cannot change, so one test value settles it: the quadratic is negative between the roots, because it opens upward.

One test value settles a whole region, because a quadratic cannot change sign without passing through zero — and the roots are the only places it does.

What this tool shows

One method that keeps working past quadratics — and an explicit split between the number-line question and the shaded-region one.

  • The sign chart, with a test value and a verdict for every region
  • Exact endpoints — fractions as fractions, irrational ones as surds
  • The two-variable form: solid or dashed boundary, and which side to shade
  • The repeated-root case, where >, ≥, < and ≤ give four different answers
Sign chart, not four memorised cases Exact endpoints, including surds Both the number-line and region forms Free, no signup

Free, no signup — exact endpoints, surds included.

Updated 6 September 2026 · Works in any browser, no installation

Find the roots, then test one value in each region — a quadratic cannot change sign anywhere else. x² − x − 6 < 0 has roots at −2 and 3, and the quadratic is negative between them: (−2, 3).

At a glance

Formula shown
Find the roots, mark them on a number line, and test one value in each region. The sign is constant inside a region because a quadratic can only change sign at a root.
Scenario support
Quadratic inequalities in one variable, or in two with y on one side.
Educational estimate
Planning support from the values you enter — not professional advice.

Two questions share this name

“Graphing a quadratic inequality” means two different things, and running them together is the main source of confusion in the topic:

  • One variable. x² − x − 6 < 0. The answer is a set of x values, drawn on a NUMBER LINE, and written in interval notation: (−2, 3).
  • Two variables. y > x² − 4x + 3. The answer is a REGION of the plane, drawn as shading on one side of a curve. There is no interval notation for it.

The tool detects which one you have typed — a y on either side means the region version — and says which it is answering. They share a name and almost nothing else: different answer type, different drawing, different method.

The sign chart beats four memorised rules

Textbooks often present four cases: a > 0 with <, a > 0 with >, a < 0 with <, a < 0 with >. That works and it does not scale — it teaches nothing that survives contact with a cubic.

The sign chart does. The roots cut the line into regions; inside a region the quadratic cannot change sign, because to change sign a continuous function has to pass through zero and the roots are the only zeros. So one test value settles a whole region.

x² − x − 6 < 0 has roots at −2 and 3, giving three regions with signs +, −, + — and the middle one is what < 0 asks for. Reverse the inequality and x² − x − 6 > 0 keeps the other two: (−∞, −2) ∪ (3, ∞). Same chart, different selection.

A negative leading coefficient flips everything

−x² + 4 > 0 is positive BETWEEN its roots, not outside them: (−2, 2). The parabola opens downward, so it is above the axis in the middle and below at both ends.

This is where the four-case rule earns its reputation. “Greater than means outside the roots” is true when a is positive and false when it is negative, and remembering which way round is exactly the kind of thing that goes wrong under exam conditions.

The sign chart gets it right without any special handling, because the test value carries the sign of a with it. That is the argument for the method: it has one rule instead of four, and the one rule does not depend on remembering a case split.

No real roots still has an answer

x² + 1 > 0 has discriminant −4 — negative, so the parabola never meets the axis. That does not mean there is no answer; it means the sign is the same everywhere.

The discriminant is −4, so the parabola never meets the x-axis and its sign is the same everywhere. It opens upward, so the whole curve sits above the axis — which is exactly what the inequality asks for, so every real number works.

x² + 1 < 0 asks for the other side, and gets — the empty set. Both are correct answers to well-posed questions, and both come from a single test value, because with no roots there is only one region to test.

The repeated root, where all four relations differ

x² − 6x + 9 touches the axis at 3 without crossing it, and this is the one case where the four relations give four genuinely different answers rather than answers differing by an endpoint:

  • > 0(−∞, 3) ∪ (3, ∞): everything except that one point.
  • ≥ 0(−∞, ∞): everything, with no exception.
  • < 0 — nothing at all. A square is never negative.
  • ≤ 0[3, 3]: that single point and nothing else.

Four relations, four answers: the whole line, the whole line minus a point, one point, and the empty set. Elsewhere the ≤/< distinction moves an endpoint; here it changes the answer completely, which is why the repeated-root case is worth practising deliberately.

Shading the region, and choosing a test point

For the two-variable form the boundary is the parabola itself, drawn solid when the relation includes it (≤ or ≥) and dashed when it does not (< or >). Then one side gets shaded.

The boundary is the parabola y = x² − 4x + 3, drawn dashed because > excludes it. Testing (2, −2) gives −2 > −1, which is false — so shade the region above the curve. The origin is the usual test point, but it fails when the curve passes through it, so this uses a point just off the vertex instead — that one is never on the curve.

The usual advice is to test the origin, and it fails whenever the curve passes through the origin — which for a quadratic with no constant term it does. This tool tests a point just off the vertex instead, which is never on the curve for any parabola, so the choice never needs a special case.

Endpoints work the same way as on the number line: x² − 2 < 0 has irrational roots and its answer is (−√2, √2), kept as surds rather than rounded, because −√2 and √2 are exact and 1.4142135 is not.

Sources and methodology

Sign analysis of a polynomial is standard; the reference below covers the elementary theory it rests on.

Method. Every figure on this page comes from src/lib/graphing-quadratic-inequalities.ts, which reuses the exact interval-set representation from src/lib/interval-notation.ts — so the answers here and on that page are the same objects, and unions merge identically. Rational endpoints stay fractions; irrational ones carry an exact binary-fraction value for ordering and print through their surd form. That engine is verified on every change against 49 hand-written assertions, including that the selected regions always match the sign chart, and that an endpoint is included exactly when the relation is non-strict. The count and the per-case breakdown are published on the formula verification page.

Related calculators

Where this goes next:

Interval NotationConvert between inequality, interval notation, set-builder form and a number-line graph in every direction, including absolute values, unions and the empty set.
Quadratic FormulaSolve any quadratic with exact roots — surds stay surds and a negative discriminant gives the complex pair — plus the vertex, the factored form and every step of the working.
DiscriminantEvaluate b² − 4ac, the cubic and quartic discriminants, or D = f_xx·f_yy − (f_xy)² for the second-derivative test, in exact arithmetic so the sign is never a rounding artefact.
Completing the SquareRewrite ax² + bx + c as a(x − h)² + k with every step shown, solve by the method, or find the constant that completes a square — all in exact fractions.
Factoring TrinomialsFactor a trinomial by the AC method with every factor pair of ac listed, the common factor taken out first, and the answer multiplied back out to check it.
Cubic EquationSolve any cubic exactly when it has a rational root — deflate and finish with the quadratic formula — and by the trigonometric form when it does not, with the discriminant saying which case you are in.

More in Math, or browse all calculators.

Read the guide

The answers this page produces are written in interval notation, and the Interval Notation Calculator converts them to the other three forms. For the solving step behind the roots, Which Method Should You Use to Solve a Quadratic? covers when factoring beats the formula.

Educational use disclaimer

This calculator solves quadratic inequalities in one variable and graphs quadratic inequalities in two. Endpoints are exact — rational ones as fractions, irrational ones as surds. The parabola sketch is schematic and drawn to show the shape and the crossings; it is not a precision plot, and the numbers beside it are the exact ones.

How we calculate · Found an error? email us

Authorship & verification

Written and maintained by , a business operator who builds spreadsheet-based calculators.

What's changed (3 updates)

Published 6 September 2026

  1. Published the quadratic inequalities page: solved by sign chart rather than by four memorised cases, so the method keeps working past quadratics.
  2. Handles both questions that share the name — the one-variable set drawn on a number line, and the two-variable region shaded on the plane — and says which one it is answering.
  3. Spells out the repeated-root case, where >, ≥, < and ≤ give four genuinely different answers from one parabola.

Add this calculator to your site

Responsive embed — and private: nothing your visitors type leaves their browser.