📊 Logarithm Calculator
Calculate logₐ(x) with multiple base options
Related Calculators
Logarithm Calculator Guide
The Logarithm Calculator supports computing logarithms with any base, with built-in shortcuts for common bases (2, e, 10). It simultaneously displays results for natural log (ln), common log (lg), and binary log (log₂) for easy comparison.
Logarithm is the inverse of exponentiation: if a^b = c, then logₐ(c) = b. Logarithms are extremely important in scientific computation — they convert multiplication to addition and exponentiation to multiplication, greatly simplifying complex calculations (this is how slide rules work). This tool is suitable for students learning logarithm concepts, engineers performing quick conversions, and researchers analyzing data.
Core Logarithm Formulas
【Definition】If a^b = x, then logₐ(x) = b 【Change of Base】logₐ(x) = ln(x)/ln(a) = lg(x)/lg(a) 【Basic Properties】 logₐ(M×N) = logₐM + logₐN (Log of product = sum of logs) logₐ(M/N) = logₐM - logₐN (Log of quotient = difference of logs) logₐMⁿ = n × logₐM (Log of power = exponent × log) logₐ1 = 0 (Log of 1 is 0) logₐa = 1 (Log of base is 1) 【Common Values】 ln(10) ≈ 2.3026, lg(e) ≈ 0.4343 ln(2) ≈ 0.6931, log₂(10) ≈ 3.3219
Practical Examples
Important Notes
Application Scenarios
- - Chemistry pH: pH = -lg[H⁺], logarithmic measure of acidity
- - Acoustics dB: dB = 10×lg(I/I₀), logarithmic scale of sound intensity
- - Earthquake magnitude: Richter scale is a logarithmic function of seismic energy
- - Information theory: Information entropy H = -Σp×log₂(p), measured in bits
- - Finance: Doubling time t = ln(2)/ln(1+r)
Three Common Logarithms Compared
Natural logarithm (ln, base e): The most "natural" choice in mathematical analysis, because d/dx(ln x)=1/x has the simplest derivative form. e itself is defined as the unique positive number where ln(e)=1.
Common logarithm (lg, base 10): Based on our everyday counting system, commonly used in engineering for order-of-magnitude notation (e.g., kHz, MHz, GHz are powers of 10).
Binary logarithm (log₂, base 2): The foundation of computer science, directly related to bits. The log in algorithm time complexity O(log n) typically refers to log₂.
All three can be converted using the change of base formula. Mastering one allows you to derive results for the other two.