Harmonic Mean Calculator

Calculate harmonic mean for numbers, rates, and resistances easily today. Enter values or weights; see instant results and validation. Visual formula steps explain the underlying computation clearly. Export tables to CSV or print PDFs quickly. Designed for white theme clarity and professional workflow needs.

Input

White Theme
Examples: 40 50 60 72   or   40,50,60,72
Please enter at least one value.
Leave empty for unweighted mean. Weights must be nonnegative.

Example Data Table

Click “Use This Example” to populate the form with this dataset.

# Value Weight Context
1401Rate sample
2502Rate sample
3603Rate sample
4722Rate 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
Note: Values must be nonzero. Weighted mode requires weights count to match.

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

Tip: use the camera icon on each chart to download as PNG.

How to Use This Calculator

  1. Paste or type values separated by comma, space, or newline.
  2. Optionally enter weights matching the number of values.
  3. Select Unweighted or Weighted mode.
  4. Choose decimal places and press Compute.
  5. Review results and intermediate sums for verification.
  6. Export results as CSV or generate a PDF report.
  7. Use the example table to experiment and learn quickly.

Frequently Asked Questions

Use it for rates, ratios, and quantities expressed as “per unit,” such as speeds over fixed distances or average price ratios. It emphasizes smaller values appropriately.

Zeros are not allowed because 1/0 is undefined. Negative numbers are mathematically permitted, but interpret results carefully; most practical applications expect positive values.

The arithmetic mean averages values directly, while the harmonic mean averages reciprocals. Harmonic mean gives more weight to smaller values, making it ideal for averaging rates.

No normalization is necessary. The formula divides the sum of weights by the sum of weighted reciprocals, so any nonnegative weights work as long as their sum is nonzero.

Use more decimals for financial or scientific precision. For quick comparisons, fewer decimals keep results readable. This tool supports 0–10 decimal places.

Yes. Keep all values in compatible units before computing. The result inherits the same unit as the original values (e.g., km/h, Ω, $/unit).

By AM–HM inequality, for positive values the harmonic mean never exceeds the arithmetic mean, reflecting its sensitivity to smaller numbers in a dataset.

Related Calculators

Proportion and Ratio Calculatorsquare root calculator with stepsnegative square root calculatorfraction square root calculatorsquare root division calculatordecimal to square root calculatorderivative of square root calculatorbinomial distribution mean calculatordiscrete random variable mean calculatordistribution mean calculator

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.