Math

How to Calculate Percentage Error: Formula and Worked Examples

By the CalculatorVerse team ·

CalculatorVerse blog cover: How to Calculate Percentage Error: Formula and Worked Examples

To calculate percentage error, subtract the true (accepted) value from your measured value, ignore the minus sign, divide by the true value and multiply by 100: percentage error = |measured − true| ÷ |true| × 100. If a pendulum experiment gives 9.6 m/s² for gravity and the accepted value is 9.81 m/s², the error is 0.21, and 0.21 ÷ 9.81 × 100 = 2.14%.

Percentage error tells you how far a result is from the value it should have been, as a share of that value. It is used in school and university science labs, in checking instruments, and anywhere a measurement or an estimate is compared with a known figure. This guide covers the formula, worked examples in metric and imperial units, when to keep the sign, the temperature trap, and how it differs from percent difference and percent change.

What is the percentage error formula?

Percentage error = |measured value − true value| ÷ |true value| × 100

  • The measured value is what you got: your experiment, reading or estimate. It is also called the experimental or observed value.
  • The true value is the value it should be: a textbook constant, a manufacturer's figure, or a reading from a reference instrument. It is also called the accepted, theoretical or exact value.
  • The bars | | mean the absolute value: drop any minus sign.

The formula has three parts, and each has its own name:

  • Absolute error = |measured − true|, in the same units as the measurement (for example 0.21 m/s²).
  • Relative error = absolute error ÷ |true|, a plain number (0.0214).
  • Percentage error = relative error × 100 (2.14%).

How do you calculate percentage error, step by step?

Take a pendulum experiment that gives 9.6 m/s² for the acceleration due to gravity, against the accepted value of 9.81 m/s².

  1. Subtract: measured − true = 9.6 − 9.81 = −0.21.
  2. Drop the sign: |−0.21| = 0.21. This is the absolute error, 0.21 m/s².
  3. Divide by the true value: 0.21 ÷ 9.81 = 0.021407.
  4. Multiply by 100: 2.14%.

You can check this with the percentage calculator: choose "Change X → Y", type the true value as X and your measurement as Y. It shows −2.14%. The size of the answer is the percentage error, and the minus sign tells you the measurement was below the true value.

The CalculatorVerse percentage calculator in Change X → Y mode with X = 9.81 and Y = 9.6, showing a decrease of −2.14%, a difference of −0.21 and new ÷ old of 0.97859327
True value 9.81 as X and measurement 9.6 as Y in the percentage calculator's "Change X → Y" mode: −2.14%, so a 2.14% error with the measurement on the low side.

Percentage error examples

Every row was worked out with the formula above and rounded at the end. Length and mass give the same percentage in metric and imperial units, because the error and the true value scale together.

MeasurementMeasuredTrue valueAbsolute errorPercentage error
Gravity (pendulum)9.6 m/s²9.81 m/s²0.21 m/s²2.14%
Length of a board48.7 cm (19.17 in)50.0 cm (19.69 in)1.3 cm (0.51 in)2.6%
Mass on a kitchen scale2.04 kg (4.50 lb)2.00 kg (4.41 lb)0.04 kg (0.09 lb)2.0%
Liquid from a pipette24.6 mL25.0 mL0.4 mL1.6%
Pi from measuring a circle3.23.141590.05841.86%
Pi as 22/73.1428573.1415930.0012640.040%

Should percentage error be positive or negative?

The usual formula uses absolute values, so percentage error is always zero or positive: it says how big the error is, not which way it goes.

Some courses and labs use signed percentage error instead: (measured − true) ÷ |true| × 100, without the bars on the top. Then:

  • a positive answer means the measurement was too high;
  • a negative answer means it was too low.

In the gravity example the signed error is −2.14%: the pendulum gave a value below 9.81. Signed error is useful when you repeat a measurement many times, because a sign that is always the same points to a systematic error (for example a scale that reads heavy), not random scatter. If your instructions don't say which to use, give the unsigned value and mention whether the measurement was high or low.

Percentage error with temperatures: check the scale

Length, mass and volume start from a true zero, so the percentage error is the same in any unit. Temperature in °C and °F does not: the zero point of each scale is arbitrary, so the same reading gives a different percentage error on each scale.

Say you measure the boiling point of water at standard pressure as 98.5 °C instead of 100 °C:

  • in °C: 1.5 ÷ 100 × 100 = 1.5%;
  • in °F (209.3 °F vs 212 °F): 2.7 ÷ 212 × 100 = 1.27%;
  • in kelvin (371.65 K vs 373.15 K): 1.5 ÷ 373.15 × 100 = 0.40%.

Kelvin starts at absolute zero, so it is the scale where a percentage of the temperature has a physical meaning. Courses differ on which scale they want, so follow your instructions and always say which scale you used. Near 0 °C or 0 °F the percentage blows up, which is a sign to report the absolute error in degrees instead.

Percentage error vs percent difference vs percent change

These three formulas look alike but answer different questions.

  • Percentage error compares a measurement with a known true value: |measured − true| ÷ |true| × 100. For 9.6 vs 9.81 it is 2.14%.
  • Percent difference compares two measurements when neither is the true value, so it divides by their average: |a − b| ÷ ((a + b) ÷ 2) × 100. For 9.6 and 9.81 it is 2.16%.
  • Percent change compares a new value with an old one over time: (new − old) ÷ |old| × 100. It is the signed form of the same calculation, used for prices, budgets and growth; the guide to percent variance covers it.

In a lab, use percentage error when you have an accepted value to compare with, and percent difference when you are comparing two of your own trials or two methods. For chemistry yields, the related measure is percent yield: actual yield ÷ theoretical yield × 100.

What counts as a good percentage error?

There is no single cut-off: it depends on the equipment and the task. A result within a few percent is often treated as good for a simple school experiment with a stopwatch and a ruler, while a calibrated laboratory instrument may be expected to stay well under 1%. Your course, lab manual or the instrument's specification sets the standard.

Two things matter more than the number itself:

  • Compare it with your uncertainty. If a stopwatch reaction time alone could cause a 3% spread, a 2% error is within what the method can do.
  • Explain it. Say what probably caused the error (reaction time, heat loss, a scale that was not zeroed) and whether it would push the result up or down.

Common mistakes

  • Dividing by the measured value. The bottom of the fraction is always the true value. 0.21 ÷ 9.6 gives 2.19%, not 2.14%.
  • Forgetting to multiply by 100. 0.0214 is the relative error; the percentage error is 2.14%.
  • Rounding too early. Keep the full figures until the last step, then round to match the precision of your measurement.
  • Using a true value of zero. If the true value is 0, the formula divides by zero and has no answer: report the absolute error instead.
  • Mixing units. Convert both values to the same unit before you subtract (both cm, or both in).

Questions people ask

What is the formula for percentage error?

Percentage error = |measured − true| ÷ |true| × 100. Measuring 9.6 when the true value is 9.81 gives 0.21 ÷ 9.81 × 100 = 2.14%.

Can percentage error be negative?

With the standard formula, no: the absolute value makes it zero or positive. Signed percentage error, (measured − true) ÷ |true| × 100, is negative when the measurement is below the true value and positive when it is above.

Is percentage error the same as percent difference?

No. Percentage error divides by a known true value. Percent difference compares two measurements and divides by their average. For 9.6 and 9.81 they are 2.14% and 2.16%.

How do I calculate percentage error in Excel or Google Sheets?

With the measurement in A2 and the true value in B2, use =ABS(A2-B2)/ABS(B2)*100, or =ABS(A2-B2)/ABS(B2) formatted as a percentage. For signed error, remove the first ABS.

What if the true value is zero?

Percentage error can't be calculated, because it would mean dividing by zero. Report the absolute error, |measured − true|, in the measurement's units instead.

Calculators for this