Skip to content
CalculatorAtlas

Height Comparison Calculator

Tested

Difference and ratio between two heights.

Tested, not yet published. The formula for this calculator is implemented and passes its automated checks. This page stays non-indexable until it is reviewed and published.

cm
cm

Results

Enter your values and press Calculate. Results appear here.

  • • Result

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

  1. Enter person A (cm) (above 0).
  2. Enter person B (cm) (above 0).
  3. Press Calculate to see the result, and use Reset to start again.
Inputs of the Height Comparison Calculator
InputWhat to enterAllowed values
Person AA number, in cm> 0
Person BA 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.

Results of example 1
ResultValue
Height difference13 cm
TallerPerson A
Ratio1.0802

Example 2

Inputs: Person A = 180.5; Person B = 180.5.

Results of example 2
ResultValue
Height difference0 cm
TallerSame height
Ratio1

Example 3

Inputs: Person A = 155; Person B = 190.

Results of example 3
ResultValue
Height difference35 cm
TallerPerson B
Ratio1.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.

How the result changes with person A
Person AHeight differenceTallerRatio
87.574.5 cmPerson B1.8514
17513 cmPerson A1.0802
350188 cmPerson A2.1605
700538 cmPerson A4.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.

Choosing between the Height Comparison Calculator and similar calculators
CalculatorYou enterIt returns
[US Flag Proportions Calculator](/lifestyle/flag/)hoistFly (length)
[Height Calculator](/health/height-calculator/)convertHeight
[TV Height Calculator](/technology/tv-height-calculator/)screen diagonal, aspect ratio width and aspect ratio heightScreen height
[Pizza Size Comparison Calculator](/lifestyle/pizza-comparison/)pizza 1 diameter, pizza 1 price and pizza 2 diameterBetter value
[Triangle Height Calculator](/math/triangle-height/)area and baseHeight

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.

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.