Relative Error Calculator
Find how far a measurement or prediction deviates from the true or expected value.
📖 What is Relative Error?
Relative error measures how large a measurement error is in proportion to the true or reference value. Unlike absolute error - which simply gives the difference in original units - relative error is dimensionless, making it possible to compare precision across measurements of completely different quantities. A scientist measuring a 1 mm crack and a 1 km road both need context: an error of 0.01 mm on the crack is far more significant than an error of 0.01 mm on the road. Relative error captures this context.
The most common form is percentage error - relative error multiplied by 100. It is universal in science education, quality control, and engineering acceptance testing. A percentage error of 2% means the measured value deviates from the true value by 2% of that true value. Industries specify tolerance limits in percentage terms: a component within ±0.5% tolerance, a sensor with ±2% full-scale accuracy.
When evaluating predictive models - in machine learning, weather forecasting, or financial modelling - the equivalent metrics are Mean Absolute Error (MAE) and Root Mean Square Error (RMSE). MAE averages the absolute prediction errors, giving an intuitive sense of typical error magnitude. RMSE gives greater weight to large errors by squaring them before averaging, which is more appropriate when large mistakes are especially costly. Both are widely used alongside R² to characterise model performance.
A third application is relative deviation from the mean, useful when there is no external true value and you want to assess the internal consistency of a set of measurements. This measures how much each value deviates from the group mean as a proportion of that mean - useful in laboratory quality control and data validation.
📐 Formulas
Absolute Error: |x_measured − x_true|
Relative Error: |x_measured − x_true| / |x_true| (dimensionless)
Percentage Error: Relative Error × 100%
Relative Deviation from Mean: |x − x̄| / x̄, where x̄ = mean of all values
MAE (Mean Absolute Error): (1/n) × Σ|predicted_i − actual_i|
RMSE (Root Mean Square Error): √[(1/n) × Σ(predicted_i − actual_i)²]
All variables: x_measured = experimentally obtained value; x_true = known correct value; x̄ = sample mean; n = number of data points or prediction pairs.