Skip to content
Return to Calculators Hub

Log Calculator

Math

Calculate logarithms with any custom base, natural log ln(x), common log log10(x), binary log log2(x), and change of base steps.

Base:
log10(1000) =
3
Common Log (log₁₀) 3.000000
Natural Log (ln) 6.907755
Binary Log (log₂) 9.965784

Change of Base Derivation

1. Change of Base Formula
log_10(1000) = ln(1000) / ln(10)

Use natural logarithms to evaluate logs with arbitrary bases.

2. Compute Natural Logs
ln(1000) ≈ 6.907755, ln(10) ≈ 2.302585

Calculate the natural log of numerator and denominator.

3. Divide
6.907755 / 2.302585 = 3.00000000

Therefore, 10^3.0000 = 1000.

How This Calculator Works

A logarithm is the inverse function of exponentiation. The logarithm of a number x to a base b (written as log_b(x)) answers the question: "To what exponent must we raise the base b in order to equal x?" Logarithms measure physical scales spanning immense magnitudes, such as sound decibels (dB), earthquake Richter scales, and chemical pH acidity.

📐 Change of Base & Fundamental Logarithmic Identities
log_b(x) = y ⟺ bʸ = x | log_b(x) = ln(x) / ln(b) = log₁₀(x) / log₁₀(b)
b: Base of the logarithm (must be positive and not equal to 1)
x: Argument of the logarithm (must be strictly positive, x > 0)
ln(x): Natural logarithm with Euler constant base e ≈ 2.71828
log₁₀(x): Common or decadic logarithm with base 10
log₂(x): Binary logarithm used throughout computer science and information theory

Key Mathematical Rules & Properties

Product Rule

The log of a product equals the sum of the logs: log_b(x · y) = log_b(x) + log_b(y).

Quotient Rule

The log of a quotient equals the difference of the logs: log_b(x / y) = log_b(x) - log_b(y).

Power Rule

The log of a power pulls the exponent out as a multiplier: log_b(xᵏ) = k · log_b(x).

Identity & Zero Rules

log_b(b) = 1 for any valid base, and log_b(1) = 0 because b⁰ = 1.

✎

Worked Example: Evaluating log₂(64) & log₅(100)

Evaluate log₂(64) exactly, and approximate log₅(100) using the change of base formula.

  1. For log₂(64): write 64 as a power of 2: 64 = 2⁶. Therefore, log₂(2⁶) = 6.
  2. For log₅(100): apply change of base: log₅(100) = ln(100) / ln(5).
  3. Evaluate natural logs: ln(100) ≈ 4.60517, ln(5) ≈ 1.60944.
  4. Divide: 4.60517 / 1.60944 ≈ 2.86135.
  5. Check: 5^(2.86135) ≈ 100.00.
Final Answer: log₂(64) = 6 | log₅(100) ≈ 2.8614

Frequently Asked Questions

Why cannot the argument of a logarithm be negative or zero?

Because any positive base raised to any real power always produces a strictly positive result (bʸ > 0). No real exponent y can make bʸ equal 0 or a negative number.

What is the natural logarithm ln(x)?

The natural logarithm is the logarithm to the base e (Euler number ≈ 2.718281828459). It arises naturally in calculus, compound interest, physics growth/decay models, and probability.

Why can the base of a logarithm not be 1?

Because 1 raised to any power is always 1 (1ʸ = 1). An equation like 1ʸ = 5 has no solution, and 1ʸ = 1 has infinitely many solutions, so base 1 cannot define a function.

How are logarithms used in the decibel sound scale?

Human ear sensitivity is logarithmic. Sound pressure level in decibels is calculated as dB = 20 · log₁₀(P / P₀), where P is sound wave pressure and P₀ is the threshold of hearing.

Understanding your calculation

Method, example and limitations

How the calculation works

A logarithm answers which exponent produces a value: log base b of x equals y when b^y = x.

Example to check

log base 10 of 1000 is 3 because 10³ = 1000; the natural logarithm uses base e.

Before using the result

For real logarithms, x must be positive and the base must be positive and different from one. Logarithms of sums cannot be split into sums of logarithms.

Calculation methodology · Report a result that needs review