Greater Than or Less Than Calculator

Compare two numbers and get the correct inequality symbol.

Comparison (−1 a<b, 0 equal, 1 a>b) -1
a − b -5

Formula: Compare a with b

Step-by-step with your numbers:
1. Values used:
2. First number = 7
3. Second number = 12
4.
5. Comparison (−1 a<b, 0 equal, 1 a>b) = -1
6. a − b = First number - Second number = 7 - 12 = -5
Did we solve your problem today?

Quickly determine which of two numbers is larger and by how much.

The math behind it

The symbol '>' means greater than, '<' means less than, and '=' means equal. A result of 1 means a > b, −1 means a < b, and 0 means they are equal.

Worked example

7 and 12 → 7 < 12 (result −1), difference −5.

FAQ

How do I remember the symbol?

The wide open side of < or > always faces the larger number.