A compare numbers calculator orders any mix of whole numbers, decimals, fractions, mixed numbers and percents, from least to greatest and from greatest to least, and shows the greater than, less than and equal signs between them. Type your numbers and press the button. The values are compared exactly, using whole-number arithmetic, so there are no rounding errors. It works as a greater or less calculator for two numbers and as a least to greatest fractions calculator for a longer list.
How to use the compare numbers calculator
- Type your numbers, one per line or separated by commas.
- You can mix decimals, fractions, mixed numbers and percents.
- Press Compare.
Greater than, less than and equal to
For two numbers, the calculator writes the answer with a sign: > means the first is greater, < means it is less, and = means they are equal. For 5 and 3 it writes 5 > 3. For 1/3 and 0.33 it writes 1/3 > 0.33, since 1/3 is 0.333… and a little larger. For a longer list, the comparison is shown as a chain from the greatest down, with an equals sign between numbers of the same value, such as 1/2 = 0.5 = 50%.
How fractions are compared
To compare two fractions a/b and c/d with positive denominators, cross-multiply and compare a × d with c × b. If a × d is larger, then a/b is larger. For 3/4 and 2/3, 3 × 3 is 9 and 2 × 4 is 8, so 3/4 is greater. The calculator does this with whole-number arithmetic for every pair, even for fractions with huge numbers. Decimals and percents are first turned into fractions: a decimal is written over a power of 10, and a percent is divided by 100. This is the same idea as in the Wikipedia pages on fractions and percentages, where 0.75 is 3/4 and 75 percent.
A worked example
Order 3/4, 0.7, 2/3 and 72 percent. As decimals they are 0.75, 0.7, 0.6667 and 0.72. From least to greatest, they are 2/3, 0.7, 72% and 3/4. The comparison reads 3/4 > 72% > 0.7 > 2/3. The calculator also lists the decimals in order, so that you can see how close the values are.
Mixed numbers and negatives
A mixed number such as 1 1/2 is read as 1 + 1/2, which is 1.5. Type it with a space between the whole part and the fraction. Negative numbers are compared by the usual rule: the more negative a number, the less it is. So −1/3 is greater than −0.5, since −0.333… is to the right of −0.5 on the number line.
Where ordering numbers helps
Ordering numbers helps when you compare prices per unit, test scores given in different forms, recipe amounts or measurements in fractions of an inch. Putting all values in one order shows the largest and smallest at a glance, and the least and greatest are listed separately.
Comparing decimals
To compare decimals, line up the decimal points and compare digit by digit from the left. Add zeros to the shorter number if it helps. The numbers 0.5 and 0.45 become 0.50 and 0.45, and 0.50 is larger, because 5 tenths is more than 4 tenths. The same method works for numbers with different numbers of digits, such as 0.3 and 0.299: write 0.300 and 0.299 and compare. The calculator does not need this step, because it turns every decimal into an exact fraction, but the method is useful for mental checks.
Comparing fractions with the same denominator or numerator
There are two shortcuts. If two fractions have the same denominator, the one with the larger numerator is greater: 5/8 is more than 3/8. If they have the same numerator, the one with the smaller denominator is greater, because the whole is cut into fewer pieces: 3/5 is more than 3/8. For other pairs, either find a common denominator or cross-multiply, which is the method the calculator uses.
Comparing with 1/2 and with 1
A quick way to compare two fractions is to compare each with 1/2 or with 1. A fraction is greater than 1/2 when its numerator is more than half of its denominator, so 5/8 is greater than 1/2 and 3/8 is less. A fraction is greater than 1 when the numerator is larger than the denominator. If one fraction is above the benchmark and the other below, you know the order without further work. The calculator shows the decimal value of every entry, which makes these comparisons easy to see.
Ordering a list from least to greatest
When there are many numbers, the calculator sorts them by their exact value, using a stable order: numbers that are equal keep the order in which you typed them. It then lists them from least to greatest, from greatest to least, and in a chain with the signs between them. The first and last entries are given as the least and the greatest. Percents are handled as fractions with a denominator of 100, so 72% is 72/100 and is compared exactly with 3/4.
Common mistakes
- Comparing only the denominators. A larger denominator makes a smaller piece, but you must compare the whole fractions.
- Comparing decimals by length. 0.5 is larger than 0.45, although it has fewer digits.
- Forgetting the sign. A negative number is always less than a positive one.
- Using commas as thousands separators. Commas separate entries here.
- Typing a mixed number without a space. Write 1 1/2, not 11/2.
What next
Use this often? Add Compare Numb to your Home screen.
Frequently asked questions
What is a compare numbers calculator?
A tool that orders numbers written as whole numbers, decimals, fractions, mixed numbers or percents, and shows which is greater.
How do you compare two fractions?
Cross-multiply: a/b > c/d when a × d > c × b, for positive b and d. 3/4 > 2/3 because 9 > 8.
Is 1/3 greater than 0.33?
Yes. 1/3 is 0.333…, which is slightly larger than 0.33.
How do you order fractions from least to greatest?
Compare each pair with cross-multiplication, or write all of them as decimals and sort.
Can I mix fractions, decimals and percents?
Yes. For example 3/4, 0.7, 2/3 and 72% are ordered as 2/3, 0.7, 72%, 3/4.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.