# Percent Error Calculator

URL: https://hifreetools.com/calculators/percent-error-calculator

> Compare a measured (experimental) value with the true (accepted) value to find the percent error and the absolute error — useful for labs and quality checks.

## Quick answer

Percent error measures how far a measurement is from the accepted value: |measured − true| / |true| × 100. A reading of 9.8 against a true value of 10 gives |9.8 − 10| / 10 × 100 = 2%. This calculator shows both the percent error and the absolute error.

## Formula

- percent error = |measured − accepted| ÷ |accepted| × 100

The tool takes the absolute difference between the measured and true values, divides by the absolute value of the true value, and multiplies by 100. Using absolute values keeps percent error non-negative, since it describes magnitude of error rather than direction. It is undefined when the true value is 0.

## Inputs

- Measured value (-1000000000000000 to 1000000000000000); default 9.8
- Accepted (true) value (-1000000000000000 to 1000000000000000); default 10

## Worked examples (computed by the page's own function)

- Measured value = 9.8, Accepted (true) value = 10 → Percent error = 2, Absolute error = 0.2  (|9.8 − 10| ÷ |10| × 100 = 2%)
- Measured value = 105, Accepted (true) value = 100 → Percent error = 5, Absolute error = 5  (|105 − 100| ÷ |100| × 100 = 5%)
- Measured value = 1500000, Accepted (true) value = 1200000 → Percent error = 25, Absolute error = 300000  (|1500000 − 1200000| ÷ |1200000| × 100 = 25%)

## Verification

Checked against 12 reference cases (expected values computed independently). Reviewed 2026-10-27. Latest change 2026-10-27: Moved to the schema renderer with a sourced ledger; an accepted value of 0 now shows a field error instead of no result.

## FAQ

**What is the percent error formula?**
Percent error = |measured value − true value| ÷ |true value| × 100. The absolute value makes it a non-negative measure of accuracy.

**Why use absolute value?**
Percent error describes the size of the discrepancy, not its direction, so it is conventionally reported as a positive number.

**What is the true value?**
The accepted, theoretical, or reference value you are comparing against — for example a textbook constant or a calibration standard.

**What if the true value is 0?**
Percent error is undefined because the formula divides by the true value, and division by zero has no meaning.

**Is a smaller percent error better?**
Yes. A smaller percent error means the measurement is closer to the accepted value, indicating better accuracy.

**How is this different from percent difference?**
Percent error compares a measurement to a known true value; percent difference compares two measured values and divides by their average.


## Sources

- [Wolfram MathWorld — Relative Error](https://mathworld.wolfram.com/RelativeError.html)
- [Wikipedia — Approximation error](https://en.wikipedia.org/wiki/Approximation_error)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "Percent Error Calculator", https://hifreetools.com/calculators/percent-error-calculator
