Math July 13, 2026 · 8 Min Read

Greater Than Or Less Than Calculator – Guide & Formulas

Compare two numbers, fractions, or decimals to determine if one is greater than, less than, or equal to the other. See the comparison symbol and number line visualization.

Compare any two numbers, fractions, or decimals instantly. Enter two values to see which is greater, which is less, or if they are equal, with the correct comparison symbol.

Key Takeaway

Use the free Greater Than Or Less Than Calculator to compare two numbers, fractions, or decimals to determine if one is greater than, less than, or equal to the other. see the comparison symbol and number line visualization. Get instant results with step-by-step explanations.

How to Use the Greater Than Or Less Than Calculator

  1. Enter the first number (A) in the left input field.
  2. Enter the second number (B) in the right input field.
  3. Review the comparison result: >, <, or =.
  4. See the difference between the two numbers.
  5. Understand the comparison for negative numbers and decimals.

The Formula

Comparison Rules: A > B if A is to the right of B on the number line (A - B > 0). A < B if A is to the left of B (A - B < 0). A = B if they are the same point. For negatives: -3 < -2 because -3 is further left.

Variable Definitions

  • >: Greater than — A is strictly larger than B
  • <: Less than — A is strictly smaller than B
  • =: Equal to — A and B have the same value
  • : Greater than or equal to
  • : Less than or equal to

Comparing -3.5 and -2.1

Determine whether -3.5 or -2.1 is greater by applying the rules for negative numbers.

  1. Step 1: Identify the values: A = -3.5, B = -2.1.
  2. Step 2: On the number line, -3.5 is to the LEFT of -2.1.
  3. Step 3: Numbers further left on the number line are SMALLER.
  4. Step 4: Therefore -3.5 < -2.1 (or equivalently -2.1 > -3.5).
  5. Step 5: Compute the difference: -3.5 - (-2.1) = -3.5 + 2.1 = -1.4.
  6. Step 6: Since the difference is negative, A < B. The comparison symbol is <.

Frequently Asked Questions

How do I compare negative numbers?

For negative numbers, the one with the larger absolute value is actually SMALLER. -5 is less than -3 because -5 is further left on the number line. Think of it as: "more negative" means "less than." For example: -10 < -1 because -10 is further from zero in the negative direction.

How do I compare fractions?

Method 1: Convert to common denominators and compare numerators. Method 2: Convert to decimals and compare. Method 3: Cross-multiply: a/b > c/d if ad > bc. For example, compare 3/4 and 5/8: 3×8=24 and 4×5=20, so 3/4 > 5/8.

How do I compare decimals?

Compare digit by digit from left to right. First compare the integer parts. If equal, compare the tenths, then hundredths, etc. For example: 3.14 vs 3.141 — the integer parts are equal (3=3), tenths are equal (1=1), hundredths are equal (4=4), but 3.14 has no thousandths while 3.141 has 1, so 3.14 < 3.141.

What does the comparison symbol mean?

> means "greater than" (left side is bigger). < means "less than" (left side is smaller). = means "equal to" (both sides are the same). ≥ means "greater than or equal to." ≤ means "less than or equal to." Remember: the smaller end points to the smaller number.

Can I compare numbers with different signs?

Yes. Any positive number is greater than any negative number. Any negative number is less than any positive number. Zero is greater than all negative numbers and less than all positive numbers. For example: 5 > -10, -3 < 0, 0 < 7.

How do I compare very large or very small numbers?

Compare the exponents first (in scientific notation). If exponents are different, the one with the larger exponent is greater. If exponents are equal, compare the significands. For example: 3 × 10⁵ vs 7 × 10⁴ — since 5 > 4, the first is larger.

What is the transitive property of comparison?

If A > B and B > C, then A > C. Similarly, if A < B and B < C, then A < C. This is the transitive property — it allows chaining comparisons. For example: 5 > 3 and 3 > 1, so 5 > 1.

How do comparison operators work in programming?

Comparison operators return boolean values (true/false). In most languages: == equals, != not equal, > greater than, < less than, >= greater or equal, <= less or equal. Be careful: = is assignment, == is comparison in many languages.