Maths

Percent Error Calculator

Find the percent error between a measured and an expected value, and whether you were over or under.

By Nitin Raturi · Last reviewed

Your values

How to use the Percent Error Calculator

Find how far a measured value is from the expected value, as a percentage.

  1. Enter the observed value.
  2. Enter the expected value.
  3. Read the percent error and whether you were over or under.

Good to know

  • Use the same unit for both values.
  • Percent error is always positive; the signed figure shows the direction.

Use the same unit for both values.

Observed value

What you measured or got in your experiment.

How to fill it in

  • Enter a number in the same unit as the expected value.
  • Negative values are allowed.

Example

Measuring 48.7 g when 50 g was expected is a 2.6% error.

Expected value

The accepted, true or theoretical value you compare against.

How to fill it in

  • Enter any number except 0.

Example

Measuring gravity as 9.457 m/s² against 9.807 m/s² is a 3.568879% error.

Percent error

2.6%

|48.7 − 50| ÷ 50 × 100 = 2.6%. The measurement is under the expected value by 1.3.

Signed difference
−2.6%
Absolute error
1.3

%E = |observed − expected| ÷ |expected| × 100. Rounded to six decimals for display.

How this calculator works

  1. Step 1DifferenceO − EHow far the measurement is from the expected value.
  2. Step 2Size only|O − E|Ignore whether it is over or under.
  3. Step 3Percent error÷ |E| × 100As a share of the expected value.

Percent error tells you how far an experimental result is from the accepted value, as a percentage of that value. Smaller is closer.

The calculator also shows the signed difference, so you can see whether the measurement was too high or too low.

Worked example: 48.7 g against 50 g

Percent error of a 48.7 g measurement
Percent error
%E = |O − E| ÷ |E| × 100
  • OObserved value 48.7 g
  • EExpected value 50 g
  1. Difference48.7 − 50−1.3 g
  2. Size|−1.3|1.3 g
  3. Percent error1.3 ÷ 50 × 1002.6%

These are the numbers in OpenStax Contemporary Mathematics, Exercise 24. Exercise 25, gravity measured as 9.457 m/s² against 9.807 m/s², gives 3.568879%.

Over or under

  • Under−2.6%48.7 against 50: the measurement is low.
  • Over+5%105 against 100: the measurement is high.

Read the result

The headline is the percent error, always zero or more; the signed difference beneath it shows the direction.

What counts as acceptable depends on the experiment and the instruments. Many school practicals treat a few percent as good agreement, but check your own guidance.

Assumptions and limits

  • Same unitBoth values must use the same unit.
  • Expected not zeroPercent error divides by the expected value.
  • Six decimalsRounded for display only.

Percent error compares a measurement with an expected value. Other percent questions use a different base.

For percentage change, shares and original values, use the percentage calculator. To report a measured value to the right precision, the significant figures calculator counts and rounds figures.

Common mistakes

  • Mistake: Dividing by the observed value.

    Instead: Divide by the expected (accepted) value.

  • Mistake: Reporting a negative percent error.

    Instead: Percent error uses the size; give direction separately.

  • Mistake: Mixing grams and kilograms.

    Instead: Convert both values to the same unit first.

Checking the method

Every golden case is re-solved with exact fractions using the ratio of observed to expected.

An independent script computes (O ÷ E − 1) × 100 exactly and compares it with every result.

Read how we test our calculators, or browse more maths calculators.

Frequently asked questions

What is the percent error formula?

%E = |observed − expected| ÷ |expected| × 100. Measuring 48.7 g for an expected 50 g gives 2.6%.

Can percent error be negative?

Percent error uses the size of the difference, so it is never negative. The signed difference shows whether you were over or under.

What is a good percent error?

It depends on the experiment and instruments. Smaller is closer; check the guidance for your practical.

Why divide by the expected value?

The error is measured against the accepted value. For gravity, 9.457 against 9.807 m/s² is 3.568879%.

What if the expected value is zero?

Percent error is undefined, because it divides by the expected value. Report the absolute difference instead.

Sources and methodology

The formulas are standard time-value-of-money results. We check every figure against golden values worked out independently, by closed form and by month-by-month simulation; see the methodology.

Written and maintained by Nitin Raturi, a software engineer (about the author). Last reviewed 3 Nov 2026; next review due by . Found an error? Tell us.

Changelog

  • : Initial release.