Skip to content

Logarithm Calculator

Free online Logarithm Calculator -- compute common log (base 10), natural log (ln), and logarithms of any base. Includes log rules, formulas, and real-world applications.

Loading calculator

Preparing Logarithm Calculator...

Reviewed & Methodology

Every calculator is built using industry-standard formulas, validated against authoritative sources, and reviewed by a credentialed financial professional. All calculations run privately in your browser - no data is stored or shared.

Last reviewed:

Reviewed by:

Written by:

How to Use the Logarithm Calculator

  1. 1. Enter the number - type the value you want to find the logarithm of (must be positive).
  2. 2. Select the base - choose common log (base 10), natural log (base e), or enter a custom base.
  3. 3. View the result - the logarithm value is displayed instantly with high precision.
  4. 4. Try the inverse - use the antilog function to reverse the calculation (base raised to the power of your result).
  5. 5. Explore different bases - switch between log bases to compare results for the same input.

Logarithm Calculator

Calculate logarithms for any positive number using common log (base 10), natural log (base e), or any custom base you enter. This tool instantly computes the exponent to which the base must be raised to produce your input value. Logarithms appear throughout mathematics, science, engineering, and finance whenever calculations involve exponential growth, very large numbers, or data that spans many orders of magnitude.

How Logarithms Are Calculated

The logarithm base b of a positive number x is the exponent y such that b^y = x, written as log_b(x) = y.

Key cases:

  • log10(1000) = 3 because 10^3 = 1000
  • ln(e) = 1 because e^1 = e (where e ≈ 2.71828)
  • log2(64) = 6 because 2^6 = 64
  • log_b(1) = 0 for any base, because b^0 = 1

The change of base formula converts any logarithm to common or natural log: log_b(x) = log10(x) / log10(b). This is how calculators handle non-standard bases internally.

Worked Examples

Example 1 — doubling time: A savings account earns 5% continuous interest. How many years to double? t = ln(2) / 0.05 = 0.6931 / 0.05 = 13.86 years.

Example 2 — earthquake magnitude: The Richter scale uses base-10 logarithms. An earthquake measuring 6.0 releases 10^(1.5 x 6.0) = 10^9 units of energy. A magnitude-7.0 earthquake releases 10^10.5 units — about 31.6 times more than a 6.0.

Example 3 — bits of information: A system can represent 1,024 distinct values. The number of bits required = log2(1024) = 10. Verify: 2^10 = 1024. So 10-bit encoding handles 1,024 possible states.

Reference Table — Logarithm Values Across Common Bases

Number (x)log10(x)ln(x)log2(x)
10.0000.0000.000
20.3010.6931.000
50.6991.6092.322
101.0002.3033.322
501.6993.9125.644
1002.0004.6056.644
5002.6996.2158.966
1,0003.0006.9089.966
10,0004.0009.21013.288
1,000,0006.00013.81619.932

When to Use This Calculator

  • When solving exponential equations where the variable is in the exponent, such as 3^x = 243 (x = log3(243) = 5)
  • When calculating doubling time or half-life using the formula t = ln(2) / r
  • When converting between logarithmic scales — decibels, pH, Richter magnitudes — and underlying linear values
  • When analyzing data that spans multiple orders of magnitude and needs a log scale to be readable
  • When working with information theory, binary encoding, or computer science problems that require log base 2

Common Mistakes

  1. Attempting log of zero or a negative number — log(0) is undefined (approaches negative infinity as x approaches 0), and logarithms of negative numbers require complex arithmetic. This calculator only accepts positive inputs.
  2. Mixing up common log and natural log — log10(100) = 2, but ln(100) ≈ 4.605. These are different functions. In most scientific contexts, “log” without a subscript means log10; in mathematics and many physics equations, “log” often means ln.
  3. Misapplying the product rule — log(A + B) does not equal log(A) + log(B). Only multiplication under the log splits: log(A x B) = log(A) + log(B). Adding values before taking the log gives a completely different result than adding their logs.
  4. Forgetting that the base must be positive and not equal to 1 — log base 1 is undefined because 1^y = 1 for any y, making it impossible to uniquely solve for an exponent.

Real-World Applications

Logarithms are built into the measurement scales of everyday life. The decibel scale for sound intensity is logarithmic — a 30 dB difference represents a 1,000-fold change in sound power, not a 30-fold change. The pH scale for acidity uses -log10 of the hydrogen ion concentration: a pH of 3 (vinegar) is 10 times more acidic than a pH of 4. The Richter scale for earthquakes works similarly, so a 7.0 earthquake releases about 31.6 times the energy of a 6.0. In finance, the continuous compounding formula A = P x e^(rt) is solved for time using natural log: t = ln(A/P) / r. In information theory, Shannon entropy — a measure of how much information is in a message — is computed using log base 2, where each bit of information corresponds to a factor of 2 in possible states.

Tips

  • The Rule of 72 offers a quick mental estimate for doubling time: divide 72 by the annual growth rate (72 / 6% = 12 years)
  • When graphing exponential data, applying a log scale to the y-axis converts the curve into a straight line, making trends far easier to identify
  • log(A x B) = log(A) + log(B) — this is how analog slide rules performed multiplication before electronic calculators existed
  • In computer science, log2 tells you how many bits are needed: log2(65,536) = 16, so 65,536 values require 16-bit storage
  • Negative logarithms just mean the input is between 0 and 1: log10(0.001) = -3 because 10^(-3) = 0.001
  • The natural log and base-10 log are proportional: ln(x) = log10(x) x 2.302585, so you can convert between them with a fixed multiplier

Frequently Asked Questions

What is a logarithm and how does it work?
A logarithm answers the question: 'To what power must I raise the base to get this number?' Written as log_b(x) = y, it means b^y = x. For example, log_10(1000) = 3 because 10^3 = 1000, and log_2(8) = 3 because 2^3 = 8. Logarithms are the inverse of exponentiation, just as subtraction is the inverse of addition. They convert multiplication into addition, which made them invaluable for computation before calculators existed.
What is the difference between common log and natural log?
Common log (log or log10) uses base 10 and is used in decibel measurements, pH chemistry, earthquake magnitudes (Richter scale), and any context where powers of 10 are relevant. Natural log (ln) uses the mathematical constant e (approximately 2.71828) as its base and appears naturally in calculus, continuous growth/decay formulas, and physics equations. The change-of-base formula connects them: ln(x) = log10(x) / log10(e), or approximately log10(x) x 2.303.
What are the main logarithm rules and properties?
The three fundamental log rules are: Product Rule: log(A x B) = log(A) + log(B); Quotient Rule: log(A / B) = log(A) - log(B); Power Rule: log(A^n) = n x log(A). Additional properties include: log_b(1) = 0 for any base (because b^0 = 1), log_b(b) = 1 (because b^1 = b), and the change of base formula: log_b(x) = log_c(x) / log_c(b). These rules are essential for simplifying and solving logarithmic equations.
Where are logarithms used in real life?
Logarithms appear in many fields: the Richter scale measures earthquake magnitude logarithmically (each whole number is 10x more ground motion), the decibel scale measures sound intensity (every 10 dB is perceived as roughly twice as loud), pH measures acidity (pH = -log[H+]), and the entropy formula in information theory uses log base 2 to measure bits of information. In finance, logarithms calculate the time to double an investment: t = ln(2) / r, where r is the continuous rate.
What is the relationship between logarithms and exponents?
Logarithms and exponents are inverse operations: if b^y = x, then log_b(x) = y. This means the log function 'undoes' the exponential function and vice versa. Applying a logarithm to an exponential gives back the exponent: log_b(b^y) = y. Applying an exponential to a logarithm gives back the number: b^(log_b(x)) = x. This inverse relationship is why logarithms are used to solve equations where the variable is in the exponent, such as 2^x = 64 (solution: x = log_2(64) = 6).
Calculators