Quick answer
The height difference is |A − B| and the ratio is taller ÷ shorter. At 175 cm and 162 cm, the difference is 13 cm and the taller person is 1.0802 times as tall.
Enter two heights. The calculator returns the difference, who is taller and the ratio. It is a height comparison tool that gives the difference and ratio.
Related tools: US Flag Proportions Calculator: Dimensions of a US flag from its hoist. TV Height Calculator: Screen height from diagonal and aspect ratio.
How to use the Height Comparison Calculator
- Enter person A (cm) (above 0).
- Enter person B (cm) (above 0).
- Press Calculate to see the result, and use Reset to start again.
| Input | What to enter | Allowed values |
|---|---|---|
| Person A | A number, in cm | > 0 |
| Person B | A number, in cm | > 0 |
Formula and method
Formula
difference = |A − B|; ratio = taller ÷ shorter
IEEE-754 double precision; shown to the decimals indicated.
Heights in centimeters.
Worked examples
These examples are verified: each one is an automated test case that the live calculator must reproduce exactly.
Example 1
Inputs: Person A = 175; Person B = 162.
| Result | Value |
|---|---|
| Height difference | 13 cm |
| Taller | Person A |
| Ratio | 1.0802 |
Example 2
Inputs: Person A = 180.5; Person B = 180.5.
| Result | Value |
|---|---|
| Height difference | 0 cm |
| Taller | Same height |
| Ratio | 1 |
Example 3
Inputs: Person A = 155; Person B = 190.
| Result | Value |
|---|---|
| Height difference | 35 cm |
| Taller | Person B |
| Ratio | 1.2258 |
The first line is the headline result (height difference). Below it the height Comparison Calculator lists taller and ratio, which describe the same case from other angles. IEEE-754 double precision; shown to the decimals indicated.
Difference or ratio
The difference tells you how much taller (13 cm), the ratio how many times as tall (1.08). The ratio is useful for scaling drawings or comparing characters.
Units
Heights can be entered in centimetres or in feet and inches. 13 cm is about 5.1 inches. This page returns numbers; it does not draw a chart.
How the result changes with person A
Holding every other input at the first worked example, this table changes only person A. It shows how sensitive the answer is to that one value; each row was produced by running this calculator.
| Person A | Height difference | Taller | Ratio |
|---|---|---|---|
| 87.5 | 74.5 cm | Person B | 1.8514 |
| 175 | 13 cm | Person A | 1.0802 |
| 350 | 188 cm | Person A | 2.1605 |
| 700 | 538 cm | Person A | 4.321 |
What happens with invalid input
These messages are produced by the calculator itself, so you know what to fix.
- Person A: entering "0" shows "Person A must be greater than 0." beside that field and no result.
- Person B: left empty shows "Enter person b." beside that field and no result.
Choosing between the Height Comparison Calculator and similar calculators
Each row shows what a related calculator on this site asks for and what it returns, so you can pick the one that matches your question.
| Calculator | You enter | It returns |
|---|---|---|
| [US Flag Proportions Calculator](/lifestyle/flag/) | hoist | Fly (length) |
| [Height Calculator](/health/height-calculator/) | convert | Height |
| [TV Height Calculator](/technology/tv-height-calculator/) | screen diagonal, aspect ratio width and aspect ratio height | Screen height |
| [Pizza Size Comparison Calculator](/lifestyle/pizza-comparison/) | pizza 1 diameter, pizza 1 price and pizza 2 diameter | Better value |
| [Triangle Height Calculator](/math/triangle-height/) | area and base | Height |
Assumptions and limitations
- Equal heights give a ratio of 1
If a required value is empty, not a number, or outside its allowed range, the form marks that field with a message and shows no result instead of a misleading number. The automated checks deliberately try invalid entries for person A and person B to confirm this.
Frequently asked questions
Does it draw a chart?
No. It returns the height difference, who is taller and the ratio as numbers.
What is the average height?
It varies by country.
Can I compare three people?
Compare them in pairs: run the calculator once for each pair.
What does the Height Comparison Calculator calculate?
Difference and ratio between two heights. It returns Height difference, Taller and Ratio.
What formula does the Height Comparison Calculator use?
difference = |A − B|; ratio = taller ÷ shorter. Heights in centimeters.
What do I need to enter in the height Comparison Calculator?
You enter Person A (cm) and Person B (cm).
How is the result rounded or limited?
IEEE-754 double precision; shown to the decimals indicated. Equal heights give a ratio of 1.
What is an example of a height Comparison result?
With person A 175 and person B 162, the height difference is 13 cm.
Related calculators
- US Flag Proportions Calculator — Dimensions of a US flag from its hoist.
- TV Height Calculator — Screen height from diagonal and aspect ratio.
- Pizza Size Comparison Calculator — Which pizza gives more area per dollar.
- Triangle Height Calculator — Height of a triangle from its area and base.
- TV Mounting Height Calculator — Bottom and top edge height to center the screen at eye level.
Sources
- ISO 8601-1: Date and time, representations for information interchange (calendar dates, ordinal dates and week dates)
- Gregorian calendar reform, papal bull Inter gravissimas (1582): the leap-year rule used for all dates
Content last reviewed 2026-11-04. Formulas and worked examples are checked by automated tests against independently computed values.