Skip to content

Relative Difference: A Simple Way to Measure a Percentage Difference

A machined part is measured at 10.2 mm instead of the 10.0 mm specified in the drawing. The raw difference, 0.2 mm,…

Femme en blazer gris comparant deux graphiques en barres sur un bureau en bois dans un bureau moderne, illustrant le calcul d'un écart relatif en pourcentage

A machined part is measured and found to be 10.2 mm instead of the 10.0 mm specified on the drawing. The raw difference, 0.2 mm, doesn’t tell us much until we compare it with the reference dimension.

Relative deviation turns this difference into a percentage, making it possible to judge whether the part is still within tolerance or should be scrapped. The calculation is just a fraction, but choosing the denominator and interpreting the result can lead to practical pitfalls.

Reference value in the relative deviation calculation: the denominator changes everything

The relative deviation formula is short: divide the difference between the measured value and the reference value by the reference value, then multiply by 100 to get a percentage. The pitfall lies in the word “reference.”

Comparing 40 with 50 does not give the same percentage depending on which value is used as the denominator. Using 40 as the reference gives a relative deviation of 25%. Using 50, it drops to 20%. This isn’t a calculation error; it’s a matter of perspective. In a laboratory setting, the reference value is generally the theoretical or tabulated value. In a budgeting context, the deviation is measured against the projected budget.

When you know how to calculate relative deviation, the first question to ask is: what are you measuring the deviation against? The denominator determines what the result means, and reversing it can distort an entire analysis.

In salary comparisons, this is far from trivial. Measuring the pay gap against men’s salaries or women’s salaries changes the figure reported and, by extension, the message. European Directive 2023/970, adopted on May 10, 2023, provides employees with the right to obtain information on average pay broken down by sex for categories of work of equal value. The scope of the comparison and the denominator matter just as much as the formula itself.

Man in a navy blue shirt pointing to percentage formulas on a whiteboard in a meeting room, illustrating the method for calculating relative deviation

Absolute and relative percentage deviation: two complementary pieces of information

Absolute deviation gives the raw difference in the original unit (grams, euros, millimeters). Relative deviation, on the other hand, compares that difference with a reference quantity to produce a unitless ratio, often expressed as a percentage.

You need both. An absolute deviation of 2 grams from a theoretical mass of 98 grams represents a percentage error of about 2%. The same 2-gram deviation from a mass of 2 kilograms is negligible, at about 0.1%. Relative deviation makes it possible to compare errors involving quantities of different orders of magnitude.

In quality control, a tolerance threshold is often set as a percentage. A relative deviation of 0.1% in a gravity measurement (for example, 9.81 m/s² measured against an expected 9.80 m/s²) is considered highly precise. A 5% deviation in a pharmaceutical dosage can mean a batch has to be recalled.

When relative deviation is no longer useful

When the reference value is zero or very close to zero, division produces an infinite or absurdly large result. In this case, only the absolute deviation is meaningful. This can happen with temperatures expressed in degrees Celsius (using 0 °C as the reference makes the ratio blow up) or fluctuations around a zero balance in accounting.

Common mistakes with the relative deviation formula

Three mistakes crop up repeatedly in assignments, lab reports, and professional spreadsheets.

  • Reversing the measured value and the reference value. The numerator is always “measured minus reference” (or “observed minus theoretical”). Reversing them changes the sign and undermines the interpretation: you may think you’re underestimating when you’re actually overestimating.
  • Forgetting the absolute value when the context calls for it. In experimental physics, percentage error uses the absolute value of the difference because the magnitude of the deviation matters, not its sign. In financial or salary analysis, however, the sign matters: a positive deviation and a negative deviation do not mean the same thing.
  • Mixing units before calculating. If the measured value is in millimeters and the reference is in centimeters, the result is meaningless. Converting all the data to the same unit before setting up the fraction is a simple habit that prevents most wildly inaccurate results.

Young woman in a sage green sweater working on a laptop with a spreadsheet on the floor, illustrating how to learn to calculate relative deviation as a percentage

Relative deviation applied to salaries: a regulatory threshold to know

Calculating a percentage pay gap takes on a regulatory dimension under European Directive 2023/970 on pay transparency. The text sets a threshold: when an average pay gap of at least 5% within a category of workers cannot be justified by objective, gender-neutral criteria, a joint assessment with workers’ representatives may be required.

This 5% threshold is not a universal tolerance rule that applies to every difference calculation. It is a legal benchmark that applies within a specific scope. Applying this threshold outside its context would mean confusing a sector-specific standard with a mathematical law.

For French companies, the exact details of how the directive will be transposed remain to be seen in the final legislation. The implementation timeline should be checked against official publications as they appear, rather than inferred from the directive alone.

Building a reliable salary comparison

Calculating a relative deviation between two average salaries is not enough. First, you need to define the comparison groups (same role, same length of service, same level of responsibility). A gross comparison of total payroll combines profiles that are too different for a single percentage to provide meaningful analysis.

The formula is the same as for a physical measurement, but the quality of the comparison scope determines how reliable the result is. A percentage calculated using poorly defined categories can show a small gap even when real disparities exist between people doing comparable jobs.

Relative deviation is a tool, not a conclusion. The percentage obtained guides the analysis, but the context (industrial tolerance, regulatory standard, budget target) gives it meaning. The same figure of 3% can be excellent in metrology and concerning in payroll management. Keeping this distinction in mind prevents a ratio from becoming an automatic verdict.

Relative Difference: A Simple Way to Measure a Percentage Difference