Input
White ThemeExample Data Table
Click “Use This Example” to populate the form with this dataset.
| # | Value | Weight | Context |
|---|---|---|---|
| 1 | 40 | 1 | Rate sample |
| 2 | 50 | 2 | Rate sample |
| 3 | 60 | 3 | Rate sample |
| 4 | 72 | 2 | Rate sample |
Harmonic Mean Reference Data — Unweighted
Precomputed examples. Click Use to load values into the calculator.
| Dataset | Values | Harmonic Mean | Action |
|---|---|---|---|
| Equal-distance speeds (km/h) | 40, 50, 60, 72 | 52.9412 | |
| Resistances (Ω) | 10, 20, 30 | 16.3636 | |
| Price per unit ($/unit) | 1.2, 1.5, 1.4 | 1.3548 |
Harmonic Mean Reference Data — Weighted
Weighted examples with nonnegative weights. Click Use to load both values and weights.
| Dataset | Values | Weights | Weighted HM | Action |
|---|---|---|---|---|
| Rates with observation counts | 40, 50, 60, 72 | 1, 2, 3, 2 | 56.0311 | |
| Mixed-quality samples | 20, 30, 40, 50 | 5, 3, 2, 1 | 26.1905 |
Results
| Mode | Unweighted |
|---|---|
| Input values | 40, 50, 60, 72 |
| Weights | |
| n | 0 |
| ∑(1/x) | |
| Harmonic Mean |
Formula Used
Unweighted: For nonzero values x1, x2, …, xn, the harmonic mean is
H = n / [ (1/x1) + (1/x2) + … + (1/xn) ]
Weighted: For positive weights wi,
Hw = (∑wi) / (∑ (wi / xi))
- Zeros are not allowed since division by zero is undefined.
- Harmonic mean is suitable for rates and ratios (e.g., speeds).
- Units follow the value units (e.g., km/h, Ω when using resistances in parallel contexts).
Interactive Charts
How to Use This Calculator
- Paste or type values separated by comma, space, or newline.
- Optionally enter weights matching the number of values.
- Select Unweighted or Weighted mode.
- Choose decimal places and press Compute.
- Review results and intermediate sums for verification.
- Export results as CSV or generate a PDF report.
- Use the example table to experiment and learn quickly.