Formula and Method for the Geometric Mean
The geometric mean of n positive numbers x1, x2, ..., xn is the nth root of their product: GM = (x1 × x2 × ... × xn)^(1/n). Unlike the arithmetic mean, which adds values together, the geometric mean multiplies them — making it the correct average for quantities that compound, such as growth rates, investment returns, and index ratios. This calculator also reports the arithmetic mean of the same numbers so you can compare the two directly.
How the calculation works
Enter your numbers separated by commas or spaces and choose how many decimal places to display. Internally, the calculator avoids overflow on large products by working with natural logarithms: it sums ln(x1) + ln(x2) + ... + ln(xn), divides by the count n, and exponentiates the result — this is mathematically identical to taking the nth root of the raw product, GM = exp((ln x1 + ln x2 + ... + ln xn) / n). The calculator also computes the arithmetic mean (sum ÷ count) and the difference AM − GM, which is always zero or positive by the AM-GM inequality.
Common mistakes
- Including zero or negative numbers: the standard geometric mean is only defined for positive numbers — a zero collapses the product to zero, and a negative value can make an even-order root undefined.
- Using the geometric mean where the arithmetic mean is correct: for values that add together (test scores, weights, lengths), use the arithmetic mean; reserve the geometric mean for values that multiply together (growth factors, ratios, returns).
- Averaging percentage returns directly: to average investment returns correctly, convert each percentage to a growth factor (e.g., +8% becomes 1.08) before taking the geometric mean, then convert the result back to a percentage.
Real-world applications
- Finance uses the geometric mean to compute compound annual growth rate (CAGR) and average multi-year investment returns.
- Demographics and economics use it to average population growth rates and inflation-adjusted index numbers across periods.
- Design and photography use it (as the geometric mean of width and height) to compute standard paper and screen aspect ratios.
- Statistics uses it for data that spans several orders of magnitude or that is naturally multiplicative, such as bacterial growth or sound intensity ratios.
Frequently Asked Questions
What is the geometric mean?
The geometric mean of n positive numbers is the nth root of their product: GM = (x1 × x2 × ... × xn)^(1/n). It measures central tendency for values that multiply together, such as growth rates, investment returns, or ratios, rather than values that simply add together.
How is the geometric mean different from the arithmetic mean?
The arithmetic mean adds the values and divides by the count, while the geometric mean multiplies the values and takes the nth root. By the AM-GM inequality, the geometric mean is always less than or equal to the arithmetic mean for positive numbers, with equality only when all the values are identical.
Can I use zero or negative numbers in a geometric mean?
No, the standard geometric mean formula requires all values to be positive. A zero in the set makes the product zero (and the mean zero), and a negative value can make the product negative, which has no real nth root when n is even. For data with zeros or negatives, use an adjusted method or the arithmetic mean instead.
When should I use the geometric mean instead of the arithmetic mean?
Use the geometric mean for quantities that compound or multiply over time, such as average annual investment returns, population growth rates, or index numbers. Use the arithmetic mean for quantities that simply add together, like test scores or measured lengths.
Common Tip Percentages
| Service | Typical Tip Range | Notes |
| Restaurant (sit-down) | 15–20% | 20%+ for exceptional service |
| Food delivery | 10–20% | Consider extra for long distances |
| Taxi / rideshare | 10–20% | More for assistance with luggage |
| Hotel housekeeping | $2–5/night | Leave daily, not just at checkout |
| Barber / hair salon | 15–20% | On pre-discount total |
| Pizza delivery | 10–15% or $3–5 minimum | Higher in bad weather |
General Household Budget Ratios (50/30/20 Rule)
| Category | % of Net Income | Examples |
| Needs | 50% | Rent, groceries, utilities, insurance |
| Wants | 30% | Dining out, entertainment, hobbies |
| Savings / Debt | 20% | Emergency fund, retirement, extra payments |
Common Measurement Conversions for Everyday Use
| Quantity | US / Imperial | Metric Equivalent |
| 1 cup | 8 fl oz | 237 mL |
| 1 pint | 16 fl oz | 473 mL |
| 1 quart | 32 fl oz | 946 mL |
| 1 gallon | 128 fl oz | 3.785 L |
| 1 lb | 16 oz | 453.6 g |
| 1 ft | 12 in | 30.48 cm |