A logarithm is a mathematical operation that answers the question: what exponent do I need to raise a base to, in order to get a specific number? For example, 2 to the power of 3 equals 8, so the logarithm base 2 of 8 is 3. The logarithm is essentially the inverse of exponentiation.