Harmonic Mean Calculator
Calculate the harmonic mean for rates, ratios, and speeds. Supports bulk data input and automatically filters non-numeric characters.
Count (n): 0
Reciprocal Sum (Σ 1/x): 0
About
The Harmonic Mean is one of the three Pythagorean means (alongside Arithmetic and Geometric). It is specifically designed for situations where the average of rates or ratios is required. For example, if a vehicle travels a set distance at speed A and returns at speed B, the average speed is not the arithmetic mean (A+B)/2, but the harmonic mean.
This tool is essential for physicists, engineers, and financial analysts dealing with P/E ratios or cost averaging. It features a robust parser that allows you to paste messy data (e.g., "10km, 20km, 30km") and instantly extracts the valid numerical values for calculation.
Formulas
For a set of n numbers x1, x2, ..., xn, the Harmonic Mean H is defined as the reciprocal of the arithmetic mean of the reciprocals:
Note: The Harmonic Mean is undefined if any x is zero, and typically used for positive real numbers.
Reference Data
| Scenario | Values (x) | Arithmetic Mean | Harmonic Mean (H) | Why Harmonic? |
|---|---|---|---|---|
| Speeds (Fixed Distance) | 60, 40 km/h | 50 | 48 | Time spent at lower speed is longer. |
| Resistors (Parallel) | 100, 100 Ω | 100 | 100 (Total R = H/n = 50) | Inverse relationship of conductance. |
| Finance (P/E Ratios) | 10, 20 | 15 | 13.33 | Price is numerator, Earnings denominator. |
| Data Efficiency | 2, 4, 8 | 4.66 | 3.43 | Mitigates impact of large outliers. |