Calculate logarithm with any base — log₁₀, natural log (ln), log₂, or any custom base. Also calculates antilog.
A Log Calculator computes the logarithm of a number for a specified base, answering the question "to what power must the base be raised to produce this number?" Logarithms are fundamental in mathematics, science, and engineering, used for solving exponential equations, measuring scales like pH and decibels, and analyzing data that spans many orders of magnitude.
By definition, if log_b(x) = y, then b^y = x, meaning the logarithm answers what exponent, when applied to the base, produces the given number. Common logarithm variants include log base 10 (written as log), natural logarithm base e (written as ln), and logarithms with any other specified base, calculated using the change of base formula: log_b(x) = log(x) / log(b).
Enter the number you want to find the logarithm of, and select or enter the base (common choices are base 10, base e for natural log, or base 2). The calculator returns the logarithm value, applying the change of base formula automatically for any base beyond the standard built-in options.
Example 1: log base 10 of 1000 equals 3, since 10³ = 1000, meaning 10 must be raised to the power of 3 to produce 1000.
Example 2: The natural logarithm (ln) of e² is exactly 2, since by definition, the natural log directly answers what power e must be raised to, and e² is already expressed as e to that exact power.
What is the difference between log base 10 and natural log (ln)? Log base 10 uses 10 as its base and is often more intuitive for everyday numerical scale problems, while natural log uses the mathematical constant e (approximately 2.71828) as its base and appears frequently in calculus, growth and decay problems, and advanced scientific applications.
Why can't you take the logarithm of a negative number or zero? Since any positive base raised to any real exponent always produces a positive result, there is no real exponent that would make a positive base equal zero or a negative number, which is why logarithms of non-positive numbers are undefined within the real number system.
How are logarithms used in measuring earthquake magnitude (Richter scale)? The Richter scale is logarithmic, meaning each whole number increase represents a tenfold increase in measured amplitude, which is why a magnitude 6 earthquake releases dramatically more energy than a magnitude 5, despite the numbers appearing close together.
What is the change of base formula, and why is it needed? The change of base formula (log_b(x) = log(x)/log(b)) allows calculating a logarithm with any base using only the more commonly available base-10 or natural log functions, since most basic calculators only have built-in functions for those two specific bases.
How do logarithms relate to solving exponential equations? Logarithms serve as the inverse operation of exponentiation, so taking the logarithm of both sides of an exponential equation is the standard technique for isolating and solving for an unknown exponent, which would otherwise be difficult to solve using purely algebraic methods.
Why is the pH scale for measuring acidity logarithmic? pH is defined as the negative logarithm of hydrogen ion concentration, and using a logarithmic scale allows the enormous range of possible hydrogen ion concentrations in different solutions to be represented conveniently on a compact, manageable numerical scale from roughly 0 to 14.
What does log base 2 represent, and where is it commonly used? Log base 2 answers how many times a number must be doubled to reach a given value, and it's especially relevant in computer science, since binary systems and data structures like binary search trees naturally relate to powers of 2.
Why do sound decibel measurements use a logarithmic scale? Human hearing perceives loudness on a roughly logarithmic scale rather than a linear one, so decibels, being logarithmic, more naturally align with how humans actually perceive changes in sound intensity, which is why a modest decibel increase can represent a much larger actual increase in sound energy.
How are logarithms used in finance for compound growth calculations? Logarithms help solve for unknown time periods in compound interest problems, such as calculating how many years an investment takes to reach a target value at a given growth rate, since the time variable appears as an exponent in the compound growth formula.
Why is logarithmic scaling used for charts of exponentially growing data? A logarithmic axis compresses very large ranges of values into a readable chart, making it much easier to visually compare growth rates across data that would otherwise be either too small to see or too large to fit on a standard linear scale.
What are logarithm product, quotient, and power rules? These rules let you simplify logarithmic expressions: the log of a product equals the sum of the logs, the log of a quotient equals the difference of the logs, and the log of a power equals the exponent times the log, all useful shortcuts for manipulating complex logarithmic expressions.