
In mathematics, the geometric mean is a
mean
A mean is a quantity representing the "center" of a collection of numbers and is intermediate to the extreme values of the set of numbers. There are several kinds of means (or "measures of central tendency") in mathematics, especially in statist ...
or
average
In colloquial, ordinary language, an average is a single number or value that best represents a set of data. The type of average taken as most typically representative of a list of numbers is the arithmetic mean the sum of the numbers divided by ...
which indicates a
central tendency
In statistics, a central tendency (or measure of central tendency) is a central or typical value for a probability distribution.Weisberg H.F (1992) ''Central Tendency and Variability'', Sage University Paper Series on Quantitative Applications in ...
of a finite collection of
positive real numbers
In mathematics, the set of positive real numbers, \R_ = \left\, is the subset of those real numbers that are greater than zero. The non-negative real numbers, \R_ = \left\, also include zero. Although the symbols \R_ and \R^ are ambiguously used fo ...
by using the product of their values (as opposed to the
arithmetic mean
In mathematics and statistics, the arithmetic mean ( ), arithmetic average, or just the ''mean'' or ''average'' is the sum of a collection of numbers divided by the count of numbers in the collection. The collection is often a set of results fr ...
which uses their sum). The geometric mean of numbers is the
th root of their
product, i.e., for a collection of numbers , the geometric mean is defined as
:
When the collection of numbers and their geometric mean are plotted in
logarithmic scale
A logarithmic scale (or log scale) is a method used to display numerical data that spans a broad range of values, especially when there are significant differences among the magnitudes of the numbers involved.
Unlike a linear Scale (measurement) ...
, the geometric mean is transformed into an arithmetic mean, so the geometric mean can equivalently be calculated by taking the
natural logarithm
The natural logarithm of a number is its logarithm to the base of a logarithm, base of the e (mathematical constant), mathematical constant , which is an Irrational number, irrational and Transcendental number, transcendental number approxima ...
of each number, finding the arithmetic mean of the logarithms, and then returning the result to linear scale using the
exponential function ,
:
The geometric mean of two numbers is the
square root
In mathematics, a square root of a number is a number such that y^2 = x; in other words, a number whose ''square'' (the result of multiplying the number by itself, or y \cdot y) is . For example, 4 and −4 are square roots of 16 because 4 ...
of their product, for example with numbers and the geometric mean is
The geometric mean of the three numbers is the
cube root
In mathematics, a cube root of a number is a number that has the given number as its third power; that is y^3=x. The number of cube roots of a number depends on the number system that is considered.
Every real number has exactly one real cub ...
of their product, for example with numbers , , and , the geometric mean is
The geometric mean is useful whenever the quantities to be averaged combine multiplicatively, such as
population growth
Population growth is the increase in the number of people in a population or dispersed group. The World population, global population has grown from 1 billion in 1800 to 8.2 billion in 2025. Actual global human population growth amounts to aroun ...
rates or interest rates of a financial investment. Suppose for example a person invests $1000 and achieves annual returns of +10%, −12%, +90%, −30% and +25%, giving a final value of $1609. The average percentage growth is the geometric mean of the annual growth ratios (1.10, 0.88, 1.90, 0.70, 1.25), namely 1.0998, an annual average growth of 9.98%. The arithmetic mean of these annual returns is 16.6% per annum, which is not a meaningful average because growth rates do not combine additively.
The geometric mean can be understood in terms of
geometry
Geometry (; ) is a branch of mathematics concerned with properties of space such as the distance, shape, size, and relative position of figures. Geometry is, along with arithmetic, one of the oldest branches of mathematics. A mathematician w ...
. The geometric mean of two numbers,
and
, is the length of one side of a
square
In geometry, a square is a regular polygon, regular quadrilateral. It has four straight sides of equal length and four equal angles. Squares are special cases of rectangles, which have four equal angles, and of rhombuses, which have four equal si ...
whose area is equal to the area of a
rectangle
In Euclidean geometry, Euclidean plane geometry, a rectangle is a Rectilinear polygon, rectilinear convex polygon or a quadrilateral with four right angles. It can also be defined as: an equiangular quadrilateral, since equiangular means that a ...
with sides of lengths
and
. Similarly, the geometric mean of three numbers,
,
, and
, is the length of one edge of a
cube
A cube or regular hexahedron is a three-dimensional space, three-dimensional solid object in geometry, which is bounded by six congruent square (geometry), square faces, a type of polyhedron. It has twelve congruent edges and eight vertices. It i ...
whose volume is the same as that of a
cuboid
In geometry, a cuboid is a hexahedron with quadrilateral faces, meaning it is a polyhedron with six Face (geometry), faces; it has eight Vertex (geometry), vertices and twelve Edge (geometry), edges. A ''rectangular cuboid'' (sometimes also calle ...
with sides whose lengths are equal to the three given numbers.
The geometric mean is one of the three classical
Pythagorean means, together with the arithmetic mean and the
harmonic mean
In mathematics, the harmonic mean is a kind of average, one of the Pythagorean means.
It is the most appropriate average for ratios and rate (mathematics), rates such as speeds, and is normally only used for positive arguments.
The harmonic mean ...
. For all positive data sets containing at least one pair of unequal values, the harmonic mean is always the least of the three means, while the arithmetic mean is always the greatest of the three and the geometric mean is always in between (see
Inequality of arithmetic and geometric means
Inequality may refer to:
* Inequality (mathematics), a relation between two quantities when they are different.
* Economic inequality, difference in economic well-being between population groups
** Income inequality, an unequal distribution of in ...
.)
Formulation
The geometric mean of a data set
is given by:
:
That is, the ''n''th root of the
product of the elements. For example, for
, the product
is
, and the geometric mean is the fourth root of 24, approximately 2.213.
Formulation using logarithms
The geometric mean can also be expressed as the exponential of the arithmetic mean of logarithms. By using
logarithmic identities
In mathematics, many logarithmic identities exist. The following is a compilation of the notable of these, many of which are used for computational purposes.
Trivial identities
''Trivial'' mathematical identities are relatively simple (for an ...
to transform the formula, the multiplications can be expressed as a sum and the power as a multiplication:
When
:
since
This is sometimes called the log-average (not to be confused with the
logarithmic average
In mathematics, the logarithmic mean is a function of two non-negative numbers which is equal to their difference divided by the logarithm of their quotient.
This calculation is applicable in engineering problems involving heat and mass tr ...
). It is simply the
arithmetic mean
In mathematics and statistics, the arithmetic mean ( ), arithmetic average, or just the ''mean'' or ''average'' is the sum of a collection of numbers divided by the count of numbers in the collection. The collection is often a set of results fr ...
of the logarithm-transformed values of
(i.e., the arithmetic mean on the log scale), using the exponentiation to return to the original scale, i.e., it is the
generalized f-mean with
. A logarithm of any base can be used in place of the natural logarithm. For example, the geometric mean of , , , and can be calculated using logarithms base 2:
:
Related to the above, it can be seen that for a given sample of points
, the geometric mean is the minimizer of
:
,
whereas the arithmetic mean is the minimizer of
:
.
Thus, the geometric mean provides a summary of the samples whose exponent best matches the exponents of the samples (in the least squares sense).
In computer implementations, naïvely multiplying many numbers together can cause
arithmetic overflow
In computer programming, an integer overflow occurs when an arithmetic operation on integers attempts to create a numeric value that is outside of the range that can be represented with a given number of digits – either higher than the maximu ...
or
underflow. Calculating the geometric mean using logarithms is one way to avoid this problem.
Related concepts
Iterative means
The geometric mean of a data set
is less than the data set's
arithmetic mean
In mathematics and statistics, the arithmetic mean ( ), arithmetic average, or just the ''mean'' or ''average'' is the sum of a collection of numbers divided by the count of numbers in the collection. The collection is often a set of results fr ...
unless all members of the data set are equal, in which case the geometric and arithmetic means are equal. This allows the definition of the
arithmetic-geometric mean, an intersection of the two which always lies in between.
The geometric mean is also the arithmetic-harmonic mean in the sense that if two
sequence
In mathematics, a sequence is an enumerated collection of objects in which repetitions are allowed and order matters. Like a set, it contains members (also called ''elements'', or ''terms''). The number of elements (possibly infinite) is cal ...
s (
) and (
) are defined:
:
and
:
where
is the
harmonic mean
In mathematics, the harmonic mean is a kind of average, one of the Pythagorean means.
It is the most appropriate average for ratios and rate (mathematics), rates such as speeds, and is normally only used for positive arguments.
The harmonic mean ...
of the previous values of the two sequences, then
and
will converge to the geometric mean of
and
. The sequences converge to a common limit, and the geometric mean is preserved:
:
Replacing the arithmetic and harmonic mean by a pair of
generalized mean
In mathematics, generalised means (or power mean or Hölder mean from Otto Hölder) are a family of functions for aggregating sets of numbers. These include as special cases the Pythagorean means (arithmetic mean, arithmetic, geometric mean, ge ...
s of opposite, finite exponents yields the same result.
Comparison to arithmetic mean
The geometric mean of a non-empty data set of positive numbers is always at most their arithmetic mean. Equality is only obtained when all numbers in the data set are equal; otherwise, the geometric mean is smaller. For example, the geometric mean of 2 and 3 is 2.45, while their arithmetic mean is 2.5. In particular, this means that when a set of non-identical numbers is subjected to a
mean-preserving spread In probability and statistics, a mean-preserving spread (MPS) is a change from one probability distribution A to another probability distribution B, where B is formed by spreading out one or more portions of A's probability density function or proba ...
— that is, the elements of the set are "spread apart" more from each other while leaving the arithmetic mean unchanged — their geometric mean decreases.
Geometric mean of a continuous function
If
is a positive continuous real-valued function, its geometric mean over this interval is
:
For instance, taking the identity function
over the unit interval shows that the geometric mean of the positive numbers between 0 and 1 is equal to
.
Applications
Average proportional growth rate
The geometric mean is more appropriate than the
arithmetic mean
In mathematics and statistics, the arithmetic mean ( ), arithmetic average, or just the ''mean'' or ''average'' is the sum of a collection of numbers divided by the count of numbers in the collection. The collection is often a set of results fr ...
for describing proportional growth, both
exponential growth
Exponential growth occurs when a quantity grows as an exponential function of time. The quantity grows at a rate directly proportional to its present size. For example, when it is 3 times as big as it is now, it will be growing 3 times as fast ...
(constant proportional growth) and varying growth; in business the geometric mean of growth rates is known as the
compound annual growth rate
Compound annual growth rate (CAGR) is a business, economics and investing term representing the mean annualized growth rate for compounding values over a given time period. CAGR smoothes the effect of volatility of periodic values that can render ...
(CAGR). The geometric mean of growth over periods yields the equivalent constant growth rate that would yield the same final amount.
As an example, suppose an orange tree yields 100 oranges one year and then 180, 210 and 300 the following years, for growth rates of 80%, 16.7% and 42.9% respectively. Using the
arithmetic mean
In mathematics and statistics, the arithmetic mean ( ), arithmetic average, or just the ''mean'' or ''average'' is the sum of a collection of numbers divided by the count of numbers in the collection. The collection is often a set of results fr ...
calculates a (linear) average growth of 46.5% (calculated by
). However, when applied to the 100 orange starting yield, 46.5% annual growth results in 314 oranges after three years of growth, rather than the observed 300. The linear average overstates the rate of growth.
Instead, using the geometric mean, the average yearly growth is approximately 44.2% (calculated by