All tools
Math & Everyday

Log Calculator

Logarithm of any number in base 10, base e, base 2, or a custom base.

🔒 Runs entirely in your browser — nothing here is ever uploaded

About the Log Calculator

Computes the logarithm of a number in base 10 (common log), base e (natural log), base 2 (binary log), or any custom base you choose.

100% Free Runs in Your Browser No Sign-Up Required
How to use it
  1. Enter x, the number to take the logarithm of.
  2. Choose a base: common (10), natural (e), binary (2), or a custom base.
  3. Read the result.
Formula
log_b(x) = ln(x) ÷ ln(b) (change of base formula), computed via natural log internally regardless of which base is selected.
Worked example

log base 2 of 8 = 3, since 2³ = 8. Log base 10 of 1000 = 3, since 10³ = 1000.

Recommendations
  • Base 2 (binary log) is common in computer science.
  • Natural log (base e) appears throughout calculus, compound growth, and exponential decay formulas.
  • A logarithm undoes exponentiation: log_b(x) answers 'to what power must b be raised to get x?'
Frequently asked questions
No real power of a positive base produces zero or a negative result, so the logarithm is undefined there.
Sources