Elecmetric

Mean, Median and Mode Calculator

Enter up to 12 readings and get the mean (average), median, mode, range, smallest and largest value and the sum. Blank boxes are ignored

Reading 1 230.1, reading 2 229.8, reading 3 230.4, reading 4 229.8 gives
Mean: 230.216667 · Median: 230.15 · Mode: 229.8

Estimate only. Not engineering or safety advice. Check the result against the applicable standard and the equipment data, and have a competent engineer review it before it is relied on. Terms of use.

Open in the calculator with these values

About this calculator

This page calculates mean, median, mode and 5 more results from reading 1, reading 2, reading 3, reading 4 and 8 more inputs. Change any value or its unit and the result updates. The steps below show the working for the default values, so you can check each line against your own method.

Limits of this calculator

The mean uses every reading, so one bad reading moves it; the median does not. When the two differ a lot, look for an outlier or a drifting reading. For the spread of the readings use the standard deviation calculator, and for how far the mean is from a known true value use the percentage error calculator.

Cross-check: 26 reference cases, calculated from textbook formulas coded separately from the engine by the same author, agree with this calculator. This is not an independent review.

Verification status: Engineering reference

Engineering reference. Formula and method documented and tested against separately coded reference calculations. Not yet Verified: the evidence listed on this page is still needed.

What this calculator checks

What remains unverified

Verification register entry

Calculation authorRahul Sharma (author)
Technical reviewNo independent technical review has been carried out
Individual professional approvalNot recorded
Formula referencenot recorded
Standard and editionNot applicable: Pure mathematics or statistics; no electrical standard governs the method
Standard review stateNot applicable
Scope-screening notenot recorded
Cross-check test cases26 reference vectors (tests/reference_vectors.json)
Review datenot recorded
Next review datenot recorded
StatusEngineering reference

Needed before this calculator can be marked Verified: reviewer name, qualification and review date; exact formula reference; formula source (textbook or standard); next review date.

Formula

Mean = (x₁ + x₂ + … + xₙ) / n Median = middle value of the sorted readings (average of the two middle values when n is even) Mode = the value that occurs most often Range = largest − smallest

Worked example

InputValue
Reading 1230.1
Reading 2229.8
Reading 3230.4
Reading 4229.8
Reading 5231
Reading 6230.2
  1. Sorted readings: 229.8, 229.8, 230.1, 230.2, 230.4, 231 (n = 6)
  2. Sum = 1,381.3 Mean = sum / n = 1,381.3 / 6 = 230.216667
  3. Median = average of the middle two values (positions 3 and 4) = (230.1 + 230.2) / 2 = 230.15
  4. Mode = 229.8 (occurs 2 times)
  5. Range = largest − smallest = 231 − 229.8 = 1.2

Assumptions

The mean uses every reading, so one bad reading moves it; the median does not. When the two differ a lot, look for an outlier or a drifting reading. For the spread of the readings use the standard deviation calculator, and for how far the mean is from a known true value use the percentage error calculator.

Inputs and results

InputUnitAllowed or shownNote
Reading 1(number)any numberEnter the readings in any order, in one consistent unit. At least one reading is needed; blank boxes are ignored.
Reading 2(number)any number; may be left blank
Reading 3(number)any number; may be left blank
Reading 4(number)any number; may be left blank
Reading 5(number)any number; may be left blank
Reading 6(number)any number; may be left blank
Reading 7(number)any number; may be left blank
Reading 8(number)any number; may be left blank
Reading 9(number)any number; may be left blank
Reading 10(number)any number; may be left blank
Reading 11(number)any number; may be left blank
Reading 12(number)any number; may be left blank
ResultUnitAllowed or shownNote
Mean (average)(number)Shown to 6 decimal places
Median(number)Shown to 6 decimal places
Mode (smallest, if several)(number)Shown to 6 decimal places
Number of readings(number)Shown to 0 decimal places
Sum(number)Shown to 6 decimal places
Smallest reading(number)Shown to 6 decimal places
Largest reading(number)Shown to 6 decimal places
Range (largest − smallest)(number)Shown to 6 decimal places

How it is calculated

Each input is converted to the base unit of its quantity, the formula above is applied in the order shown in the worked example, and each result is shown in the unit you choose. Results are held at full precision and rounded only for display, except where a step selects a standard size, as the worked example shows. A value outside its allowed range is refused with a message instead of giving a result.

How the result changes with reading 1

Reading 1MeanMedianMode
23195.7230229.8
57.5201.45230229.8
115211.033333230229.8
230230.2230.1229.8
460268.533333230.3229.8
920345.2230.3229.8
2,300575.2230.3229.8

Other inputs are the same as in the worked example above.

Standards and further reading

Complex numbers, rectangular and polar form and angle conversion are standard mathematics, not the subject of a standard. Standards apply when the result feeds an electrical design, and they set the method there.

Frequently asked questions

What do I need to enter?

Enter reading 1, reading 2, reading 3, reading 4, reading 5, reading 6, reading 7, reading 8, reading 9, reading 10, reading 11 and reading 12. Change the unit of a value with its selector and the result stays the same.

What does this calculator assume?

Every reading counts equally; the calculator does not weight or discard any value. The readings share one unit, and the results have the same unit. A mode exists only when some value occurs more than once. When several values tie, the smallest is shown and all of them are listed in the warning. Values that differ in the last digit are different values, so 230.1 and 230.10 are the same but 230.1 and 230.11 are not.

Which calculators should I use next?

Common next steps are Standard Deviation and Variance, Percentage Error, RMS, Peak and Peak-to-Peak and Complex Numbers (Rectangular and Polar). The related links at the bottom of this page open them.

How accurate are the results?

Every figure comes from the same tested engine as the Elecmetric calculators and is meant for estimating. 26 reference cases, calculated from textbook formulas coded separately from the engine by the same author, agree with this calculator. This is not an independent review. Check design values against the standard and the equipment data you work to.

Formula guides and reference

Longer explanations with worked examples and tables, written for the same topic.

More Engineering Mathematics calculatorsAll engineering calculatorsMean, Median and Mode in Elecmetric

Tell us how to improve this page

This opens your email app. Nothing is sent until you press send.