UnitCompiler
🪵

Log (Logarithm) Calculator

Evaluate logarithms for any base using the change-of-base formula.

Logarithm Calculator —logb(x)

Solve common logarithm log₁₀, natural logarithm ln (logₑ), binary log₂, and arbitrary custom bases.

🪵
Standard Bases:
log10(1000) = 3 ⟺ 103 = 1000
Calculated Valuey = logb(x)
3
log10(1000) = 3  ⟺  103 = 1000
Common Log (log₁₀)
3.0000
Natural Log (ln)
6.9077
Binary Log (log₂)
9.9658

📐 Fundamental Logarithm Identities & Laws

Change of Base Rule
logb(x) = ln(x) / ln(b) = log₁₀(x) / log₁₀(b)

Allows computing arbitrary base logarithms using standard natural or base-10 functions.

Product Rule
logb(x · y) = logb(x) + logb(y)

The log of a product equals the sum of the individual logarithms.

Quotient Rule
logb(x / y) = logb(x) − logb(y)

The log of a ratio equals the numerator log minus denominator log.

Power Rule
logb(xn) = n · logb(x)

Exponents on the argument can be brought to the front as multipliers.

How This Calculation Works

A logarithm answers the inverse question of exponentiation: to what power y must a positive base b (b ≠ 1) be raised to produce x? Common logarithms use base 10, natural logarithms (ln) use Euler’s constant e ≈ 2.71828, and binary logarithms (log₂) quantify bits in computer science. Arbitrary bases are evaluated cleanly through the change-of-base identity.

Core Formulas & Identities

Log Definition
y = log_b(x) ⇔ b^y = x (x > 0)
Change of Base
log_b(x) = ln(x) / ln(b) = log₁₀(x) / log₁₀(b)
Product & Power Laws
log(xy) = log(x) + log(y) | log(x^k) = k·log(x)

Variable Legend:x > 0 is the argument, b > 0 (b ≠ 1) is the base, and e ≈ 2.718281828 is Euler’s number.

Step-by-Step Worked Examples

Example1

Evaluate Common Logarithm log₁₀(1000)

  1. Ask: 10 to what power equals 1000?
  2. Write 1000 = 10³.
  3. Conclude the exponent equals 3.
Result:3
Example2

Change of Base: log₂(32) via Natural Log

  1. Compute ln(32) ≈ 3.46574 and ln(2) ≈ 0.69315.
  2. Divide ln(32) / ln(2) = 5.
  3. Check with inverse exponent: 2⁵ = 32.
Result:5

Practical Applications & Accuracy Tips

  • Real-valued logarithms exist strictly for positive arguments (x > 0); log(0) is undefined and diverges to −∞.
  • Every logarithm equals 0 at x = 1 regardless of base (b⁰ = 1).
  • Need 4-figure mantissas and characteristic splits? Open UnitCompiler’s interactive Log Table Reference.