Greater Than or Less Than Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter two numbers to see which sign goes between them, greater than (>), less than (<) or equal (=), and how far apart they are.
Result
Comparison
Difference a − b
- Distance |a − b|
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- First number a: enter a number.
- Second number b: enter a number.
- Read the result: Comparison; the panel also shows Difference a − b and Distance |a − b|.
How this calculator works
On the number line, a is less than b (a < b) when a lies to the left of b, and greater (a > b) when it lies to the right. The open side of the sign faces the larger number.
For decimals, compare place by place from the left; for negative numbers, the one farther from zero is the smaller one (−5 < −2).
The formula
| Symbol | Meaning |
|---|---|
| First number a | |
| Second number b | |
| Comparison |
Worked example
| First number a | 0.25 |
|---|---|
| Second number b | 0.3 |
| Difference a − b | -0.05 |
|---|---|
| Distance |a − b| | 0.05 |
Comparison a < b (a is less than b)
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
Is 0.25 greater than 0.3?
No. 0.25 < 0.3, because 0.25 has 2 tenths and 0.3 has 3 tenths; the difference is 0.05.
Which is bigger, −5 or −2?
−2. On the number line −5 is farther left, so −5 < −2.