Home · Everyday · Rounding & Numbers · Greater Than Or Less Than Calculator

Greater Than Or Less Than Calculator

Which is greater? Two numbers compared, with their difference and the right inequality sign.

Your figures

Example result — edit the figures to make it yours

7 > 5

Comparison

The difference a − b is 2: positive, so a is greater. The headline figure is that difference.

Difference a − b2
Greater value7
Lesser value5

What this calculator does

Which is greater? Two numbers compared, with their difference and the right inequality sign. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.

The formula and method

a − b positive means a > b; negative means a < b; zero means equal

The numbers are compared exactly as entered, including sign.

The difference and the ratio are reported alongside the verdict.

Equal numbers are reported as equal — there is no hidden rounding.

Worked example

With the example inputs this page opens with (first number 7, second number 5), the result is 7 > 5 — comparison. The difference a − b is 2: positive, so a is greater. The headline figure is that difference.

Quick reference

Quick reference — varying first number
First numberComparison
3.53.5 < 5
5.65.6 > 5
77 > 5
8.758.75 > 5
10.510.5 > 5
1414 > 5

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Greater Than Or Less Than Calculator work?

Which is greater? Two numbers compared, with their difference and the right inequality sign. A · b → Comparison. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Greater Than Or Less Than Calculator need?

A · b → Comparison. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Greater Than Or Less Than Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.