Smart Unit ConvertersSmart Unit Converters

Logarithm Calculator

Calculate logarithms in any base, including common (log10), natural (ln), and binary (log2).

?What is the Logarithm Calculator?

A logarithm calculator computes logarithms in any base, including the common logarithm (base 10), the natural logarithm (base e ≈ 2.71828), and the binary logarithm (base 2). Logarithms are the inverse of exponentiation — they answer the question 'to what power must the base be raised to get this number?'. They appear throughout mathematics, science, engineering, and computer science: earthquake magnitudes (Richter scale), sound intensity (decibels), acidity (pH), algorithm complexity (log n time), and any problem involving exponential growth or decay.

The Formula

log_b(x) = ln(x) ÷ ln(b). Common: log(1000) = 3 because 10^3 = 1000. Natural: ln(e^5) = 5.

A logarithm log_b(x) is the number y such that b^y = x. The change-of-base formula log_b(x) = ln(x) / ln(b) lets you compute a logarithm in any base from natural logarithms — useful because ln is a standard built-in function in virtually every calculator and programming language. Each one-unit increase on a logarithmic scale corresponds to one multiplication by the base, which is why logarithmic scales compress huge ranges into manageable numbers (the Richter scale goes from 1 to 10, but a magnitude-10 earthquake is a billion times more powerful than a magnitude-1 tremor).

Practical Examples

1

log10(1000) = 3 because 10^3 = 1000 — the common logarithm tells you roughly how many digits a number has.

2

ln(e) = 1 because e^1 = e — the natural logarithm's simplest identity.

3

log2(1024) = 10 because 2^10 = 1024 — used constantly in computer science for memory sizes and algorithm complexity.

4

log5(125) = 3 because 5^3 = 125 — a custom-base example.

5

pH 7 means log10([H+]) = −7, i.e., [H+] = 10^(−7) moles/liter — the defining property of pure water.

6

A Richter 7.0 earthquake has 10 times the ground motion of a 6.0 and releases about 32 times the energy — the logarithmic scale in action.

Frequently Asked Questions

'log' without a specified base usually means log base 10 (the common logarithm), especially in engineering and science contexts. 'ln' means log base e ≈ 2.71828 (the natural logarithm). In pure mathematics, 'log' sometimes defaults to natural log — always check the context. On scientific calculators, log and ln are separate buttons for clarity.