Skip to main content

Log Calculator

Calculate logarithms with any base — natural log (ln), common log (log₁₀), binary log (log₂), or custom base.

Advertisement

The number to calculate the logarithm of (must be positive).

The logarithm base to use.

Enter a custom base if you selected "Custom Base" above.

AI Math Assistant

Beta

Ask questions about your calculation results

I can help you understand your results and explore your options. Try asking:

3 free questions per session

AI provides general assistance. Always verify important calculations.

About This Calculator

Logarithms are the inverse of exponentiation and compress vast numerical ranges into manageable scales, which is why they underpin the Richter scale, decibel measurements, and pH levels. This calculator computes common logarithms (base 10), natural logarithms (base e), and logarithms of any custom base. Engineers and scientists use logarithmic transformations to linearize exponential data and solve equations where the unknown is an exponent.

Quick Tips

  • 1 Log base 10 of 1000 is 3 because 10^3 = 1000.
  • 2 Natural log (ln) uses base e (2.718) and appears throughout science.
  • 3 Logarithms turn multiplication into addition — that's why slide rules work.

Example Calculation

Scenario

Find the base-10 logarithm of 50,000.

Result

log10(50000) = 4.6990 | ln(50000) = 10.8198 | Between 10^4 and 10^5

What Are Logarithms?

A logarithm answers the question: "To what power must the base be raised to get this number?" If 10² = 100, then log₁₀(100) = 2. Logarithms are the inverse of exponentiation. They transform multiplication into addition and are essential tools in mathematics, science, and engineering.

Types of Logarithms

Common log (log₁₀): used in pH scales, decibels, and earthquake magnitude. Natural log (ln, base e): used in calculus, continuous growth, and physics. Binary log (log₂): used in computer science and information theory. Each base serves specific applications in different fields.

Logarithm Properties

Key rules: log(a×b) = log(a) + log(b), log(a/b) = log(a) - log(b), log(a^n) = n×log(a), log(1) = 0, log_b(b) = 1. The change of base formula: log_b(x) = log(x) / log(b), which lets you convert between any bases.

Logarithms in Real Life

The Richter scale uses log₁₀ (each step = 10× energy). Decibels use log₁₀ for sound intensity. pH is -log₁₀ of hydrogen ion concentration. In finance, logarithmic returns are used for portfolio analysis. Computer scientists use log₂ to analyze algorithm complexity (O(log n)).

Frequently Asked Questions