Solve for base, argument, or exponent in logarithmic equations. Accepts any positive base including natural logarithm base 'e'.
The Logarithm Calculator is an algebraic tool designed to compute the logarithm of a number to any user-specified base. In algebra, a logarithm is the inverse operation of exponentiation. The logarithm of a number x to base b is the exponent y to which the base b must be raised to yield the value x (written as log_b(x) = y, which is equivalent to b^y = x). For example, the logarithm of 100 to base 10 is 2 (log_10(100) = 2), since 10 raised to the power of 2 is 100.
The calculator supports common base choices, such as Base 10 (the common logarithm, often written simply as log) and Base 2 (the binary logarithm, used extensively in computer science). Logarithms are subject to several algebraic rules that simplify complex calculations. The Product Rule states that the log of a product is the sum of the logs: log(M × N) = log(M) + log(N). The Quotient Rule states that the log of a quotient is the difference of the logs: log(M / N) = log(M) − log(N). The Power Rule states that the log of a number raised to an exponent is the exponent multiplied by the log: log(M^k) = k × log(M).
In practical applications, logarithms are used to measure phenomena that span vast scales of magnitude, compressing them into manageable numbers. Examples include the Richter scale for earthquake intensity, the decibel scale for sound volume, and the pH scale for chemical acidity. In computer science, the binary logarithm is used to evaluate the efficiency of algorithms, such as binary search, which has a time complexity of O(log n). The logarithm calculator simplifies base conversions and solves logarithmic equations instantly, making it a key resource for students, programmers, and scientists.
How it Works & Formula
Use this calculator to find any of the three variables in log_b(x) = y. Remember: Base (b) > 0 and b ≠ 1, and Argument (x) > 0.
Practical Examples
Earthquake strength is logarithmic. An increase of 1 on the scale indicates a tenfold increase in ground motion amplitude.
Acidity level is logarithmic: pH = -log10[H+]. A pH of 5 is 10 times more acidic than a pH of 6.
Frequently Asked Questions
What is a Logarithm?
A logarithm is the inverse function of exponentiation. It finds the exponent (y) to which a base (b) must be raised to produce a given number (x). If b^y = x, then log_b(x) = y.
Why is log of a negative number undefined?
For real numbers, raising a positive base to any power always yields a positive number. Hence, you cannot take the logarithm of a negative number or zero in the real number system.
Why can the base not be 1?
If the base is 1, raising it to any exponent yields 1 (1^y = 1). It cannot produce any other number, and there is no unique exponent to produce 1, making it mathematically invalid as a base.