Calculate logarithms with any base, natural logs, common logs, and solve exponential equations. Perfect for students, engineers, scientists, and anyone working with logarithmic functions.
Calculate the logarithm of a number x with a custom base b. The result y satisfies by = x.
Given a base b and a result x, find the exponent y such that by = x. This is equivalent to y = logb(x).
Calculate the natural logarithm ln(x), which is the logarithm with base e (Euler's number, approximately 2.71828).
The Richter scale uses base-10 logarithms. An earthquake measuring 6.0 is log₁₀(106) = 6.
A 6.0 earthquake is 10 times more powerful than a 5.0 earthquake because log₁₀(10⁶ ÷ 10⁵) = log₁₀(10) = 1
Each whole number increase on the Richter scale represents a tenfold increase in amplitude.
pH = -log₁₀[H⁺], where [H⁺] is hydrogen ion concentration.
If [H⁺] = 1.0 × 10⁻⁷ M (pure water): pH = -log₁₀(1.0 × 10⁻⁷) = 7.0
The pH scale is logarithmic, so a pH of 3 is 10,000 times more acidic than a pH of 7.
To find how long it takes for an investment to double at 5% annual interest compounded continuously: t = ln(2) / 0.05
ln(2) = 0.6931, so t = 0.6931 / 0.05 = 13.86 years
Natural logarithms are essential in continuous growth and decay calculations.
Decibels (dB) = 10 × log₁₀(I / I₀), where I is sound intensity and I₀ is the reference threshold.
If a sound is 1000 times more intense than the threshold: dB = 10 × log₁₀(1000) = 10 × 3 = 30 dB
Every 10 dB increase represents a tenfold increase in sound intensity.
A bacterial culture doubles every hour. Starting with 100 bacteria, after t hours: N = 100 × 2t.
To reach 12,800 bacteria: log₂(12,800 ÷ 100) = log₂(128) = 7 hours
Binary logarithms (base 2) are commonly used in population growth models.
Base e (≈ 2.71828). Used in calculus, compound interest, population growth, and physics.
Base 10. Used in the Richter scale, pH, decibels, and scientific notation.
Base 2. Used in computer science, information theory, and data structures (binary search).
A logarithm is the inverse operation of exponentiation. If by = x, then the logarithm of x with base b is y, written as logb(x) = y. In simple terms, a logarithm tells you what exponent you need to raise a base number to in order to get another number.
For example, since 23 = 8, we know that log₂(8) = 3. This means the logarithm of 8 with base 2 is 3, because 2 raised to the power of 3 equals 8. Logarithms are the key to understanding how numbers grow exponentially and are essential in fields ranging from acoustics to astronomy.
There are three commonly used logarithms: natural logarithms (ln, base e ≈ 2.71828), common logarithms (log₁₀, base 10), and binary logarithms (log₂, base 2). Each has its own domain of application, but they all share the same fundamental properties and rules.
Logarithms are one of the most powerful tools in mathematics because they transform exponential relationships into linear ones. This makes complex calculations involving growth, decay, and scaling much more manageable. In science and engineering, logarithms appear in formulas for earthquake magnitude (Richter scale), sound intensity (decibels), acidity (pH), radioactive decay, and population growth models. In finance, natural logarithms are used to calculate continuous compound interest and investment growth rates.
Understanding the properties of logarithms is essential for simplifying complex logarithmic expressions and solving logarithmic equations. These properties follow directly from the laws of exponents and form the foundation of all logarithmic calculations.
The change of base formula is perhaps the most practical property: logb(x) = ln(x) / ln(b) = log₁₀(x) / log₁₀(b). This formula allows you to calculate logarithms with any base using only natural or common logarithms, which is exactly how our calculator computes your results. For example, to calculate log₃(81), you can compute ln(81) / ln(3) = 4.389 / 1.099 = 4, confirming that 3⁴ = 81.
Logarithms appear in nearly every scientific and technical field. Here are some of the most important real-world applications:
The Richter scale uses base-10 logarithms to measure earthquake energy. A magnitude 7 earthquake is 10 times more powerful than a magnitude 6.
Decibels (dB) measure sound intensity on a logarithmic scale. A 20 dB increase means sound intensity has increased by a factor of 100.
The pH scale is the negative logarithm of hydrogen ion concentration. Each pH unit represents a tenfold change in acidity.
Binary logarithms (log₂) are used in algorithm analysis (Big O notation), binary search trees, and information theory (bits).
Natural logarithms model continuous compound interest, investment returns, and economic growth rates over time.
Logarithmic scales help visualize data spanning many orders of magnitude, such as population growth, stock prices, and viral spread.
⚠️ Important Note: Logarithm calculations require positive arguments. The base must be positive and not equal to 1, and the argument (x) must be greater than zero. While our Logarithm Calculator provides accurate mathematical results, always verify critical calculations — especially in scientific, financial, or engineering contexts — with appropriate domain knowledge or professional consultation.