Updated: February 2026 | UK GCSE & A-Level Maths | Author: Mustafa Bilgic (MB)

Inequality Calculator

Choose your inequality type, enter the values, and get full step-by-step working plus a number line diagram.

Solve inequalities of the form ax + b OP c where OP is <, >, ≤, or ≥

Solving: 2x + 3 < 11

Solve compound inequalities of the form lo OP1 ax + b OP2 hi

Solve quadratic inequalities of the form ax² + bx + c OP 0

Understanding Inequalities in UK Maths

An inequality is a mathematical statement that compares two expressions using one of the symbols < (less than), > (greater than), ≤ (less than or equal to), or ≥ (greater than or equal to). Unlike equations, which have a single solution, inequalities typically have a range of solutions represented as an interval on the number line.

Inequalities appear throughout UK mathematics — from GCSE Foundation and Higher tiers through to A-Level Pure Mathematics. Mastering inequalities requires understanding algebraic manipulation, number line representation, and the special rules that distinguish inequalities from equations.

Mode 1: Linear Inequalities (ax + b OP c)

A linear inequality involves x to the first power only. The method for solving is identical to solving a linear equation, with one crucial exception: if you multiply or divide both sides by a negative number, you must reverse (flip) the inequality sign.

Example: Solve 3x − 4 > 8

Step 1: Add 4 to both sides: 3x > 12
Step 2: Divide by 3 (positive, sign stays): x > 4
Number line: Open circle at 4, arrow pointing right →

Example with sign flip: Solve −2x + 1 ≤ 7

Step 1: Subtract 1: −2x ≤ 6
Step 2: Divide by −2 (negative — FLIP the sign!): x ≥ −3
Number line: Closed circle at −3, arrow pointing right →

Mode 2: Compound Inequalities (a OP ax + b OP c)

A compound inequality of the form a < ax + b < c represents two conditions simultaneously. To solve, apply the same operation to all three parts of the inequality at once.

Example: Solve 1 < 2x + 1 ≤ 13

Step 1: Subtract 1 from all parts: 0 < 2x ≤ 12
Step 2: Divide all parts by 2: 0 < x ≤ 6
Number line: Open circle at 0, closed circle at 6, solid line between

The solution set is the interval (0, 6] — all values of x strictly greater than 0 and up to and including 6.

Mode 3: Quadratic Inequalities (ax² + bx + c OP 0)

Quadratic inequalities require finding the roots of the corresponding equation and then determining which intervals satisfy the original inequality. The shape of the parabola (opening up or down) determines the structure of the solution.

Example: Solve x² − 5x + 6 > 0

Step 1: Find roots: x² − 5x + 6 = 0 → (x−2)(x−3) = 0 → x = 2 or x = 3
Step 2: Since a = 1 > 0, parabola opens upward. The expression is positive OUTSIDE the roots.
Solution: x < 2 or x > 3
Number line: Open circles at 2 and 3, arrows pointing outward ← ●○----○● →

Example 2: Solve x² − 5x + 6 < 0

Solution: Same roots (2 and 3). Parabola opens up, so expression is negative BETWEEN the roots: 2 < x < 3

Number Line Representation: Key Conventions

UK GCSE and A-Level exams require you to represent inequalities on a number line correctly:

  • Open circle (○): The value is NOT included. Used for strict inequalities < and >.
  • Closed/filled circle (●): The value IS included. Used for ≤ and ≥.
  • Arrow pointing right (→): x extends to +∞ (x > a or x ≥ a).
  • Arrow pointing left (←): x extends to −∞ (x < a or x ≤ a).
  • Solid line between two circles: For compound/bounded inequalities (a ≤ x ≤ b).

Integer Solutions of Inequalities

Some GCSE questions ask for the integer (whole number) solutions within an inequality. For example, if the solution is −2 < x ≤ 5, the integer solutions are −1, 0, 1, 2, 3, 4, 5. Note that −2 is not included (strict inequality) but 5 is included (≤). Always read the inequality signs carefully when listing integers.

Common Inequality Mistakes at GCSE and A-Level

  • Forgetting to flip the sign: The most common error. Any multiplication or division by a negative number reverses the inequality direction.
  • Incorrect number line circles: Confusing open and closed circles is a common mark-losing error in GCSE exams.
  • Treating quadratic inequalities like equations: Writing x > 2 and x > 3 instead of x > 3 (only the outermost condition is valid for "greater than both").
  • Using 'and' instead of 'or' for quadratic solutions: x < 2 OR x > 3 is not the same as x < 2 AND x > 3 (which is impossible).
  • Squaring both sides: Squaring both sides of an inequality can introduce errors if both sides are not guaranteed to be non-negative. Always verify solutions.

Set Notation for Inequalities

UK A-Level students must be familiar with set notation for expressing solution sets:

  • x > 3: Set notation: {x ∈ ℝ : x > 3} | Interval notation: (3, ∞)
  • x ≤ −2: Set notation: {x ∈ ℝ : x ≤ −2} | Interval notation: (−∞, −2]
  • 2 ≤ x < 7: Set notation: {x ∈ ℝ : 2 ≤ x < 7} | Interval notation: [2, 7)
  • x < −1 or x > 4: Set notation: {x ∈ ℝ : x < −1} ∪ {x ∈ ℝ : x > 4}

Frequently Asked Questions: Inequalities

What is a linear inequality and how do you solve it?

A linear inequality is ax + b < c (or >, ≤, ≥) where x is to the first power. Solve by isolating x as you would in algebra. Critical rule: multiply or divide by a negative number — flip the inequality sign. For example, −2x < 8 becomes x > −4 when dividing by −2.

What is a compound inequality?

A compound inequality combines two conditions: a < ax + b < c means x satisfies BOTH conditions simultaneously. Solve by performing the same operation on all three parts at once. The result is a bounded interval shown on a number line as a line segment between two values.

How do you solve a quadratic inequality?

Find the roots of the equation, identify intervals separated by those roots, and test a value from each interval. For a > 0 (opens up): expression > 0 outside roots, < 0 between roots. For a < 0 (opens down): reversed. Always express the solution using the correct inequality notation.

When do you flip the inequality sign?

Flip the inequality sign whenever you multiply or divide both sides by a negative number. Adding, subtracting, multiplying, or dividing by positive numbers does NOT change the inequality direction. This is the most important rule in inequality solving.

What do open and closed circles on a number line mean?

Open circle (○): value NOT included — used for strict inequalities < and >. Closed/filled circle (●): value IS included — used for ≤ and ≥. For x > 3: open circle at 3, arrow right. For x ≤ 5: filled circle at 5, arrow left.

What is set notation for inequalities?

x > 3 in set notation is {x ∈ ℝ : x > 3}. For 2 ≤ x < 7: {x ∈ ℝ : 2 ≤ x < 7}. Interval notation uses round brackets for excluded values and square brackets for included: [2, 7) means 2 is included but 7 is not. UK GCSE typically uses inequality notation; A-Level uses set and interval notation.

How do quadratic inequalities appear at A-Level?

At A-Level, quadratic inequalities are solved algebraically and graphically. Sketch y = ax²+bx+c, find roots, and identify where the curve is above/below the x-axis. They also appear in range problems (finding k values for which equations have solutions) and in feasibility region problems in Decision Maths.

Related Maths Calculators