Skip to content
Math

Log Calculator

Last updated: July 11, 2026

Calculate logarithms with any base. Supports common log (base 10), natural log (base e), and custom base logarithms with instant results.

How to Use This Log Calculator

  1. Choose the logarithm type: Log₁₀ (common), Ln (natural), or Custom Base.
  2. If using custom base, enter the base value (must be greater than 1).
  3. Enter the number you want to find the logarithm of (must be positive).
  4. Click "Calculate Logarithm" to see the result.

Logarithm Formulas

Common Log (base 10): log₁₀(x) = y means 10^y = x
Natural Log (base e): ln(x) = y means e^y = x where e ≈ 2.71828
Change of Base: log_b(x) = log_a(x) / log_a(b)

Common Logarithm Values

xlog₁₀(x)ln(x)log₂(x)
1000
20.3010.6931
1012.3033.322
10024.6056.644
100036.9089.966

Examples

Example 1: Common Log

log₁₀(1000) = ?
10^3 = 1000, so log₁₀(1000) = 3

Example 2: Natural Log

ln(e²) = ?
ln(e²) = 2 because e^2 = e²

Example 3: Custom Base

log₂(32) = ?
2^5 = 32, so log₂(32) = 5

Frequently Asked Questions

What is the difference between log and ln?

log typically refers to log base 10 (common logarithm), while ln refers to log base e (natural logarithm). Common logs are useful for orders of magnitude, while natural logs appear frequently in calculus and growth/decay problems.

Can you take the log of a negative number?

No, the logarithm of a negative number is not a real number. Logarithms are only defined for positive real numbers. In complex mathematics, log of negative numbers involves imaginary numbers, but this calculator works with real numbers only.

What is log of 0?

The logarithm of 0 is undefined (negative infinity). As x approaches 0 from the positive side, log(x) approaches negative infinity. There is no real number y such that b^y = 0 for any base b.

Disclaimer: This calculator is for educational purposes. Results are approximate for non-exact values.

Rate this calculator