Discover
Random

Inequality Calculator

Solve linear, quadratic, and compound inequalities with steps, interval notation, and a number line.

Free Inequality Calculator

Solving inequalities is easy to get wrong — especially remembering to flip the sign. Our free inequality calculator solves linear, quadratic, and compound inequalities and shows every step, with the sign-flip rule called out explicitly whenever you multiply or divide by a negative number.

Type in your inequality and get the solution in both inequality notation and interval notation, plus a visual number line showing exactly which values satisfy it — with open or closed circles and shading that match the boundary conditions.

For quadratic inequalities, the calculator finds the roots, builds a sign chart across the intervals, and combines them into the correct solution set. Special cases like "no solution" or "all real numbers" are explained in plain English rather than left blank. No sign-up, no downloads, no limits.

About the Inequality Calculator

How It Works & Methodology

The Inequality Calculator solves single-variable linear and quadratic inequalities, along with compound inequalities, showing every algebraic step. It highlights the sign-flip rule whenever both sides are multiplied or divided by a negative number, and reports the solution as an inequality, in interval notation, and on a visual number line.

Features

Sign-flip rule

Explicitly called out whenever multiplying or dividing by a negative number.

Quadratic sign chart

Roots and a sign-chart method combine into the correct solution intervals.

Compound inequalities

Expressions like -3 < 2x + 1 < 5 split, solved, and recombined.

Number line + interval notation

Solution shown visually with open/closed circles and as interval notation.

Mathematical Basis & Practical Verification

The Inequality Calculator is built on symbolic algebraic manipulation, polynomial root-finding theorems, matrix row-reduction, and exact rational arithmetic. Solves linear and quadratic inequalities showing step-by-step working, interval notation, and a visual number-line graph of the solution set. Key capabilities built into this tool include linear inequalities, quadratic inequalities, compound inequalities, and number line visualization.

All computations for the Inequality Calculator follow the definitions established in NIST Digital Library of Mathematical Functions (DLMF) — Elementary & Algebraic Functions (National Institute of Standards and Technology (NIST)) and Abramowitz and Stegun: Handbook of Mathematical Functions (National Bureau of Standards (NBS)). Because the solver evaluates inputs locally in IEEE 754 double-precision arithmetic (53-bit significand, ~15–17 significant decimal digits) and is regression-tested against deterministic reference fixtures in tests/inequality-solver.spec.ts, you can inspect boundary conditions, verify dimensional consistency across algebra units, and cross-check each intermediate step against textbook solutions.

Authoritative Sources & Standards

  1. NIST Digital Library of Mathematical Functions (DLMF) — Elementary & Algebraic Functions — National Institute of Standards and Technology (NIST)
  2. Abramowitz and Stegun: Handbook of Mathematical Functions — National Bureau of Standards (NBS)

Frequently Asked Questions

How does the inequality calculator work?

Type in your inequality and it solves step by step, showing the solution as an inequality, an interval, and a number line.

Does it handle quadratic inequalities?

Yes, it finds the roots and builds a sign chart to determine the correct solution intervals.

What about compound inequalities?

Yes, inequalities like -3 < 2x + 1 < 5 are split, solved, and recombined correctly.

Why does the sign flip sometimes?

Multiplying or dividing both sides by a negative number reverses the inequality direction — the calculator highlights this step explicitly since it's the most common mistake.

What does interval notation mean?

A compact way to write a solution set, like (2, ∞) for "all values greater than 2" — shown alongside the inequality form.

What if there's no solution?

The calculator explains clearly when an inequality has no solution, rather than leaving the answer blank.

What if all real numbers satisfy it?

Cases like x² ≥ 0 are identified and explained as true for all real numbers.

Embed Inequality Calculator

Copy and paste this HTML snippet to embed this interactive calculator on your website or blog:

Discover more tools

Surprise me