Greater Than Or Less Than Calculator

Enter two numbers to see whether the first is greater than (>), less than (<), or equal to (=) the second, along with the difference and percent change between them.

Quick Facts

Greater than
A > B
True when A sits to the right of B on the number line.
Less than
A < B
True when A sits to the left of B on the number line.
Percent change
(A − B) ÷ |B| × 100
How much larger or smaller A is than B, as a percentage of B.

Your Results

Calculated
Comparison
-
A vs. B
Difference (A − B)
-
Signed difference
Absolute Difference
-
|A − B|
Percent Change (B to A)
-
(A − B) ÷ |B| × 100

Ready

Enter two values, then press Calculate.

Formula and Method for Greater Than Or Less Than

Comparing two numbers means placing them on the real number line and asking which one sits farther to the right. If A sits to the right of B, then A > B ("A is greater than B"). If A sits to the left of B, then A < B ("A is less than B"). If they occupy the same point, then A = B. This calculator also reports the signed difference (A − B), the absolute difference |A − B|, and the percent change from B to A, computed as (A − B) ÷ |B| × 100.

How the comparison works

Enter Value A and Value B. The calculator first checks the sign of A − B: a positive result means A > B, a negative result means A < B, and zero means A = B. It then reports |A − B| as the magnitude of the gap between the two numbers, regardless of direction. Finally, it expresses that gap as a percentage of B using (A − B) ÷ |B| × 100 — a positive percent means A is that much larger than B, and a negative percent means A is that much smaller. When B = 0, percent change is mathematically undefined (division by zero), so the calculator reports it as undefined rather than a number.

Common mistakes

  • Reading the symbol backwards: the open (wide) side of > or < always faces the larger number — 7 > 2 and 2 < 7 say the same thing.
  • Ignoring the sign with negative numbers: −3 is greater than −8, because −3 sits farther to the right on the number line, even though 8 > 3 as raw magnitudes.
  • Confusing difference with percent change: a difference of 3 between 103 and 100 is a 3% change, but the same difference of 3 between 4 and 1 is a 300% change — the base value (B) matters.

Real-world applications

  • Grading and thresholds: checking whether a score, temperature, or measurement is above or below a cutoff.
  • Price and performance comparisons: seeing which of two options is larger and by how much, in absolute and percentage terms.
  • Teaching number sense: building intuition for ordering integers, decimals, and negative numbers on a number line.
  • Quality control: flagging when a reading exceeds or falls short of a target specification.

Frequently Asked Questions

How do you tell if one number is greater than another?
Compare their positions on the number line: the number farther to the right is greater. For positive numbers, the one with more digits (or a larger leading digit) is greater; for negative numbers, the one closer to zero is greater. If both numbers are equal, neither is greater or less than the other.
What do the symbols > and < mean?
The symbol > means "greater than" and < means "less than." The open side of the symbol always faces the larger number, so 8 > 3 reads as "8 is greater than 3," and 3 < 8 reads as "3 is less than 8."
How is percent change calculated between two numbers?
Percent change from B to A is (A − B) ÷ |B| × 100. It tells you how much larger or smaller A is than B, expressed as a percentage of B. It is undefined when B = 0 because you cannot divide by zero.
Can this calculator compare negative numbers and decimals?
Yes. The comparison, difference, and percent-change formulas all work with negative numbers and decimals exactly as they do with positive integers, since they rely on standard real-number ordering and subtraction.