Start typing to discover tools…
Free Statistical Calculator

Harmonic Mean Calculator

Calculate the harmonic mean of rates, ratios, speeds, prices, and other positive numerical values with a clear formula and step-by-step result.

Calculate Harmonic Mean

Enter positive values separated by commas, spaces, or new lines.

Instant Result
Positive numbers only
4 values
One weight per value
4 weights
Try an example:
Calculator Benefits

Accurate Results Without Manual Calculations

This calculator handles reciprocal calculations automatically and presents the result in a clear, understandable format.

Instant Calculation

Enter your data and calculate the harmonic mean immediately without creating formulas in a spreadsheet.

Weighted Mean Support

Calculate a weighted harmonic mean when individual observations have different levels of importance.

Detailed Steps

Review the reciprocal sum, formula, number of observations, and the main calculation steps.

How It Works

Calculate the Harmonic Mean in Three Steps

The tool accepts commas, spaces, semicolons, or line breaks between values.

1

Enter Your Values

Add at least two positive numbers. For example, enter 20, 30, and 60 to compare rates or speeds.

2

Select the Mean Type

Use simple mode for equally important values or weighted mode when each value has a specific weight.

3

Review the Result

Click the calculation button to see the harmonic mean, reciprocal total, range, formula, and steps.

What Is a Harmonic Mean?

The harmonic mean is a type of mathematical average. It is calculated by dividing the number of observations by the sum of the reciprocals of those observations. Unlike the arithmetic mean, it gives more influence to smaller values in a dataset.

This average is especially useful for rates, ratios, speeds, financial multiples, and measurements where values are expressed per unit. All values used in the standard harmonic mean should be positive and non-zero.

Harmonic Mean Formula

For positive values x₁, x₂, x₃ through xₙ, the harmonic mean is calculated using the following formula:

H = n ÷ [(1/x₁) + (1/x₂) + ... + (1/xₙ)]

Here, H represents the harmonic mean and n represents the total number of observations.

Weighted Harmonic Mean Formula

A weighted harmonic mean allows some observations to contribute more heavily than others:

Hw = Σwᵢ ÷ Σ(wᵢ/xᵢ)

When Should You Use the Harmonic Mean?

  • Finding an average speed across equal travel distances.
  • Averaging rates expressed per unit.
  • Comparing price-to-earnings or other financial ratios.
  • Calculating average productivity or efficiency rates.
  • Combining values when smaller observations should have greater influence.

Harmonic Mean vs Arithmetic Mean vs Geometric Mean

Mean Type Best Used For General Formula Key Characteristic
Arithmetic Mean General quantities and totals Σx ÷ n Treats all values equally
Geometric Mean Growth rates and percentage changes (x₁ × x₂ ... xₙ)1/n Reduces the effect of extreme values
Harmonic Mean Rates, ratios, and equal-distance speeds n ÷ Σ(1/x) Gives more influence to small values

Harmonic Mean Example

Suppose a vehicle travels the same distance at 30 km/h and 60 km/h. The correct average speed is not 45 km/h because the vehicle spends more time traveling at the slower speed.

Using the harmonic mean:

H = 2 ÷ [(1/30) + (1/60)] = 40 km/h

Therefore, the average speed across the two equal-distance portions is 40 km/h.

Frequently Asked Questions

Harmonic Mean Calculator FAQs

Find answers to common questions about harmonic averages, inputs, and results.

It calculates an average based on the reciprocals of positive values. It is commonly used for rates, ratios, speeds, and similar measurements.

No. A reciprocal requires division by the original value, and division by zero is undefined. This calculator therefore accepts only positive, non-zero values.

Yes. You can enter positive integers or decimal numbers separated by commas, spaces, semicolons, or new lines.

The calculation gives greater influence to smaller observations. For the same positive dataset, the harmonic mean is generally less than or equal to the geometric and arithmetic means.

A weighted harmonic mean assigns a weight to each observation. Values with larger weights contribute more strongly to the final result.

Yes, when different speeds apply to equal distances. When travel distances differ, use a weighted method based on the appropriate distance or time relationship.