What is a greater than or less than calculator?
The greater than or less than calculator is a tool that compares two numbers and instantly tells you their relationship. Given two values, it returns the correct comparison symbol — greater than (), less than (), or equal to () — together with a plain-language sentence describing the result. It works with whole numbers, decimals, and negatives, so you can quickly settle which of two quantities is the larger one without any mental arithmetic.
Comparison symbols and what they mean
Comparing numbers is one of the first ideas taught in arithmetic, and it relies on three symbols:
- Greater than : The value on the left is larger than the value on the right, as in .
- Less than : The value on the left is smaller than the value on the right, as in .
- Equal to : Both values are the same, as in .
A helpful trick for the inequality signs is that the wide, open end of the symbol always points toward the larger number, while the narrow point aims at the smaller one.
How does the calculator work?
Enter your first number (A) and your second number (B). The calculator subtracts one from the other internally to decide their order and then picks the matching symbol:
- if , then ;
- if , then ;
- if , then .
The result is shown as a short expression such as along with a full sentence, for example “5 is greater than 3.”
Formula
The comparison can be written compactly as:
where is the first number and is the second number.
Examples of use
-
Greater than: With and , the calculator returns , since 5 is greater than 3.
-
Less than: With and , the result is , since 2 is less than 9.
-
Equal: With and , the result is , since both numbers are the same.
-
Negative numbers: With and , the result is , because on the number line lies to the left of .
Practical notes
- Negative numbers: A larger negative magnitude means a smaller value, so is less than .
- Decimals: Compare digit by digit after the decimal point; for example .
- Order matters: Swapping the inputs flips the inequality, so becomes .
If instead of comparing you need to combine numbers, try the addition calculator, and to find the gap between two values use the subtraction calculator.
Frequently asked questions
Which way does the greater than sign point?
The greater than sign opens toward the larger number and points to the smaller one. So reads “8 is greater than 3.”
How do I compare two negative numbers?
The number closer to zero is the larger one. For example, because sits to the right of on the number line.
What does it mean when two numbers are equal?
Equal numbers have the same value, written with an equals sign, such as . Neither is greater nor less than the other.
Can the calculator compare decimals?
Yes. It handles decimal values directly, so a comparison like is evaluated correctly.